![NuDAQ ACL-8112 Series User Manual Download Page 67](http://html1.mh-extra.com/html/nudaq/acl-8112-series/acl-8112-series_user-manual_1716414067.webp)
C Language Library
•
59
Argument:
da_ch_no:
D/A channel number, DA_CH_1 or DA_CH_2.
data:
D/A converted value, if the value is greater
than
4095, the higher 4-bits are negligent.
Return Code:
ERR_NoError
ERR_BoardNoInit
ERR_InvalidDAChannel
Example:
#include “8112.h”
main()
{
_8112_Initial( CARD_1, A8112B_DG, 0x220 );
/* Assume NoError when Initialize ACL-8112 */
/* if the hardware setting for DA output range is
0~5V */
_8112_DA( DA_CH_1 , 0x800 );
printf( "The output voltage of CH1 is 2.5V \n" );
_8112_DA( DA_CH_2 , 0xFFF );
printf( "The output voltage of CH2 is 5V \n" );
}
A more complete program is provided in this software.
'DA_DEMO.C'
7.7 _8112_AD_Input_Mode
Description
This function is only useful for ACL-8112 ver B series.
The ACL-8112 can offer either 16 single-ended analog input channels
or 8 differential analog input channels. If you use the ACL-8112 ver B
card, you have to call this function before the A/D operation is
processed.
Summary of Contents for ACL-8112 Series
Page 1: ...NuDAQ ACL 8112 Series Enhanced Multi Functions Data Acquisition Cards User s Guide ...
Page 4: ......
Page 40: ...32 Registers Format 1 1 1 1 1 000 Unipolar N A Table 4 2 1 Function of the Gain Control Bits ...
Page 44: ...36 Registers Format Base 14 DO15 DO14 DO13 DO12 DO11 DO10 DO9 DO8 ...
Page 46: ...38 Registers Format Base 2 Counter 2 Register R W Base 3 8254 CONTROL BYTE ...
Page 71: ...C Language Library 63 ...
Page 81: ...C Language Library 73 Example See Demo Program AD_Demo4 C ...
Page 85: ...C Language Library 77 ERR_AD_INTNotSet Example See demo program AD_Demo2 C ...