= 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 == * [http://tech.825spectrum.com/trac/wiki/Docs/Prog/Manual/ApplicationLibraries/lib825ev/DAC/SetDACOutputRange SetDACReg] * [wiki:SetDACTrackScale SetDACTrackScale]