Changes between Version 4 and Version 5 of Docs/Prog/Manual/ApplicationLibraries/lib825ev/DAC/SetDACTrackScale


Ignore:
Timestamp:
07/18/14 14:56:04 (10 years ago)
Author:
Don Wilson
Comment:

--

Legend:

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

    v4 v5  
    3434}}}
    3535
     36{{{
     37// Set DAC 1 and 2 to track scale 1
     38int n;
     39int scale = 1;
     40for(n = 1; n <= 2; n++)
     41{
     42   SetDACReg(n, dacAD5422Control, 0x3FF0 | dacRange0_10V, WAIT_ACK);
     43   SetDACTrackScale(n, scale, dacTrackGross, WAIT_ACK);
     44   SetDACFloat(n, dacLowWeight, 0.0, WAIT_ACK);
     45   SetDACFloat(n, dacHighWeight, 10000.0, WAIT_ACK);
     46   SetDACFloat(n, dacMaxOutput, 10.0, WAIT_ACK);
     47}
     48
     49}}}
     50
    3651
    3752== See Also ==