« Close

Datasheets and User Guides

App Notes

Software & Driver

 

4.3.4 - Analog Outputs

The IOType to set the voltage on an analog output is:


LJ_ioPUT_DAC

The following are IOTypes used to write/read the enable bit for DAC1:

LJ_ioPUT_DAC_ENABLE  //Ignored on hardware rev 1.30+, as DAC1 always enabled.
LJ_ioGET_DAC_ENABLE

The following is a special channel, used with the get/put config IOTypes, to configure a parameter that applies to all DACs:

LJ_chDAC_BINARY

Following is example pseudocode to set DAC0 to 2.5 volts:


//Set DAC0 to 2.5 volts.
ePut (lngHandle, LJ_ioPUT_DAC, 0, 2.50, 0);