Changes between Version 10 and Version 11 of Docs/Prog/Manual/ApplicationLibraries/lib825ev/DAC/SetDACTrackScale


Ignore:
Timestamp:
07/21/14 11:13:20 (10 years ago)
Author:
Don Wilson
Comment:

--

Legend:

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

    v10 v11  
    3535
    3636{{{
    37 // Set DAC 1 and 2 to track scale 1, gross mode, 0 - 10000 wt, max output 10V.
    38 int n;
     37// Set DAC 1 to track scale 1, gross mode, 0 - 10000 wt, max output 10V.
     38int dac = 1;
    3939int scale = 1;
    40 for(n = 1; n <= 2; n++)
    41 {
    42    SetDACOutputRange(n, dacOutput0to10V, 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 }
     40SetDACOutputRange(dac, dacOutput0to10V, WAIT_ACK);
     41SetDACTrackScale(dac, scale, dacTrackGross, WAIT_ACK);
     42SetDACFloat(dac, dacLowWeight, 0.0, WAIT_ACK);
     43SetDACFloat(dac, dacHighWeight, 10000.0, WAIT_ACK);
     44SetDACFloat(dac, dacMaxOutput, 10.0, WAIT_ACK);
    4845
    4946}}}