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


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

--

Legend:

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

    v1 v1  
     1= SetDACFloat =
     2Set a DAC register to a floating point value.
     3
     4{{{
     5int SetDACFloat(int dev, DACReg reg, float val, int wait);
     6}}}
     7
     8== Parameters ==
     9
     10 * dev - number of DAC card.
     11 * reg - DAC register to set - dacAD5422Status, dacAD5422Data, dacAD5422Control, dacLowWeight, dacMaxOutput, dacOutputRange, dacScaleAssign, dacHighWeight, or dacGrossNet
     12 * val - value to assign to the register
     13 * wait - WAIT_ACK Wait for acknowledgement, NO_WAIT_ACK do not wait for acknowledgement
     14
     15== Return Value ==
     16
     17 * Returns the result - OK success (If WAIT_ACK may be TIMEOUT)
     18
     19== Remarks ==
     20
     21The 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.
     22
     23== Examples ==
     24
     25{{{
     26   int dac = 1; // number of dac card - not number of slot
     27   float val = 120.5;
     28
     29   // This sets the DAC high weight value
     30   if(SetDACFloat(dac, dacHighWeight, val, WAIT_ACK) != OK)
     31   {
     32       DisplayText(0, 0, "SetDACFloat Error");
     33   }
     34
     35   
     36}}}
     37
     38
     39== See Also ==
     40
     41 * [http://tech.825spectrum.com/trac/wiki/Docs/Prog/Manual/ApplicationLibraries/lib825ev/DAC/SetDACOutputRange SetDACOutputRange]
     42 * [http://tech.825spectrum.com/trac/wiki/Docs/Prog/Manual/ApplicationLibraries/lib825ev/IO/SetDACTrackScale SetDACTrackScale]