XGraphPopup
- Updated2023-02-21
- 2 minute(s) read
int XGraphPopup (char title[], void *xArray, size_t numberOfPoints, int xDataType);
Purpose
Plots an array of x values against its indices along the y-axis on a graph control in a dialog box.
Parameters
Input | ||||||||||||||||||||||||||||||||
Name | Type | Description | ||||||||||||||||||||||||||||||
title | char [] | Title of the dialog box. | ||||||||||||||||||||||||||||||
xArray | void * | Array that contains the values to plot along the x-axis. The data type must be of the type you specify in xDataType. | ||||||||||||||||||||||||||||||
numberOfPoints | size_t | Number of points to plot. This value controls the number of points to plot even if the number of elements in xArray is greater than the numberOfPoints. numberOfPoints must be greater than zero and not greater than INT_MAX. |
||||||||||||||||||||||||||||||
xDataType | int | The data type of the x array. The following table lists the valid data types.
|
Return Value
Name | Type | Description |
status | int | Return value indicating whether the function was successful. A negative number indicates that an error occurred. |
Additional Information
Library: User Interface Library
Include file: userint.h
LabWindows/CVI compatibility: LabWindows/CVI 3.0 and later
Example
Refer to userint\popups.cws for an example of using the XGraphPopup function.