Owner manual

WaveForms™ SDK Reference Manual
Page 54 of 85
FDwfAnalogIOChannelNodeSetInfo(HDWF hdwf, int idxChannel, int idxNode,
double *pmin, double *pmax, int *pnSteps)
Parameters:
- hdwf Open interface handle on a device.
- idxChannel Analog I/O channel index of the device.
- idxNode Node index.
- pmin Minimum settable value.
- pmax Maximum settable value.
- pnSteps Number of steps between minimum and maximum values.
These functions return node value limits. Since a Node can represent many things (Power supply, Temperature
sensor, etc.), the Minimum, Maximum, and Steps parameters also represent different types of values. In broad
terms, the (Maximum Minimum)/Steps = the number of specific input/output values.
FDwfAnalogIOChannelNodeInfo returns the type of values to expect and
FDwfAnalogIOChannelNodeName returns the units of these values.
FDwfAnalogIOChannelNodeSet(
HDWF hdwf, int idxChannel, int idxNode, double value)
Parameters:
- hdwf Open interface handle on a device.
- idxNode Node index.
- idxChannel Analog I/O channel index of the device.
- value Value to set.
The function above is used to set the node value for the specified node on the specified channel.
FDwfAnalogIOChannelNodeGet(
HDWF hdwf, int idxChannel, int idxNode, double *pvalue)
Parameters:
- hdwf Open interface handle on a device.
- idxChannel Analog I/O channel index of the device.
- idxNode Node index.
- pvalue Pointer to variable to return the configured value.
The function above returns the currently set value of the node on the specified channel.