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


Ignore:
Timestamp:
03/21/12 08:14:49 (13 years ago)
Author:
Don Wilson
Comment:

--

Legend:

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

    v1 v1  
     1= GetDAC =
     2Get a DAC register value.
     3
     4{{{
     5int GetDAC(int dev, DACReg reg, int wait);
     6}}}
     7
     8== Parameters ==
     9
     10 * dev - number of DAC card.
     11 * reg - DAC register to get - dacAD5422Status, dacAD5422Data, dacAD5422Control, dacLowWeight, dacMaxOutput, dacOutputRange, dacScaleAssign, dacHighWeight, or dacGrossNet
     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   int dac = 1; // number of dac card - not number of slot
     26
     27   // This sets the DAC output for manual control
     28   int result = GetDAC(dac, dacAD5422Control, WAIT_ACK);
     29   DisplayText(0, 0, "GetDAC control result = " + IntToStr(result));
     30   
     31}}}
     32
     33
     34== See Also ==
     35
     36 * [http://tech.825spectrum.com/trac/wiki/Docs/Prog/Manual/ApplicationLibraries/lib825ev/DAC/SetDACOutputRange SetDACOutputRange]
     37 * [http://tech.825spectrum.com/trac/wiki/Docs/Prog/Manual/ApplicationLibraries/lib825ev/IO/SetDACTrackScale SetDACTrackScale]