Changes between Initial Version and Version 1 of Docs/Prog/Manual/ApplicationLibraries/lib825ev/DAC/SetDACOutputRange


Ignore:
Timestamp:
03/21/12 07:50:13 (13 years ago)
Author:
Don Wilson
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Docs/Prog/Manual/ApplicationLibraries/lib825ev/DAC/SetDACOutputRange

    v1 v1  
     1= SetDACOutputRange =
     2Set a DAC output range.
     3
     4{{{
     5int SetDACOutputRange(int dev, DACOutputRange range, int wait);
     6}}}
     7
     8== Parameters ==
     9
     10 * dev - number of DAC card.
     11 * range - dacOutput0to5V, dacOutput0to10V, dacOutput4to20mA, dacOutput0to20mA, dacOutput0to25mA
     12 * wait - WAIT_ACK Wait for acknowledgement, NO_WAIT_ACK do not wait for acknowledgement
     13
     14== Return Value ==
     15
     16 * Returns the result - OK success (If WAIT_ACK may be TIMEOUT)
     17
     18== Remarks ==
     19
     20The 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.
     21
     22== Examples ==
     23
     24{{{
     25   DACOutputRange outRange = dacOutput0to10V;
     26
     27   // This sets the DAC output range
     28   if(SetDACOutputRange(dac, outRange, WAIT_ACK) != OK)
     29   {
     30       DisplayText(0, 0, "SetDACOutputRange Error");
     31   }
     32
     33   
     34}}}
     35
     36
     37== See Also ==
     38
     39 * [http://tech.825spectrum.com/trac/wiki/Docs/Prog/Manual/ApplicationLibraries/lib825ev/DAC/SetDACOutputRange SetDACReg]
     40 * [http://tech.825spectrum.com/trac/wiki/Docs/Prog/Manual/ApplicationLibraries/lib825ev/IO/SetDACTrackScale SetDACTrackScale]