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


Ignore:
Timestamp:
09/20/18 07:46:17 (6 years ago)
Author:
Don Wilson
Comment:

--

Legend:

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

    v4 v5  
    55== Example - Application manually setting DAC output voltage ==
    66{{{
    7 
    87const int nDAC = 1;  // First DAC card
    98
     
    1312    // Setup DAC to not track gross or net weight but be controlled manually
    1413   DACOutputRange outputrange = dacOutput0to10V;
    15 
    1614   if(SetDACReg(nDAC, dacAD5422Control, 0x3FF0 | (uint16)outputrange, WAIT_ACK) != OK)
    1715       printf("\n\nSetDACOutputRange error\r\n");
    1816
    1917   float fMaxOutput = 10.0; // Maximum output 10 volts
    20 
    2118   if(SetDACFloat(nDAC, dacMaxOutput, fMaxOutput, WAIT_ACK) != OK)
    2219       printf("\n\nSetDACFloat max output error\r\n");
    23 
    24 
    2520}
    2621