SetDACOutputRange
Set a DAC output range.
int SetDACOutputRange(int dev, DACOutputRange range, int wait);
Parameters
- dev - number of DAC card.
- range - dacOutput0to5V, dacOutput0to10V, dacOutput4to20mA, dacOutput0to20mA, dacOutput0to25mA
- wait - WAIT_ACK Wait for acknowledgement, NO_WAIT_ACK do not wait for acknowledgement
Return Value
- Returns the result - OK success (If WAIT_ACK may be TIMEOUT)
Remarks
The option card must already be opened by calling OpenMnBd(dev) first. If the application is using main board communication events these events may be called during the wait for acknowledgement.
Examples
DACOutputRange outRange = dacOutput0to10V; // This sets the DAC output range if(SetDACOutputRange(dac, outRange, WAIT_ACK) != OK) { DisplayText(0, 0, "SetDACOutputRange Error"); }
See Also
Last modified
7 years ago
Last modified on 04/12/18 12:31:21
Note:
See TracWiki
for help on using the wiki.