u Example
#include | “9112.h” |
|
main() |
|
|
{ |
|
|
Int | baseAddr, irqNo; |
|
_9112_Initial( CARD_1, &baseAddr, &irqNo); |
| |
/* Assume NoError when Initialize | */ |
/* if the hardware setting for DA output range is 0~5V */
_9112_DA(CARD_1, DA_CH_1 , 0x800 );
printf( "The output voltage of CH1 is 2.5V \n" );
_9112_DA(CARD_1, DA_CH_2 , 0xFFF );
printf( "The output voltage of CH2 is 5V \n" );
}
A more complete program is specified in Appendix A Demo. Program 'DA_DEMO.C'
5.8_9112_AD_Set_Channel
uDescription
This function is used to set AD channel by means of writing data to the multiplexed scan channel register. There are 16
uSyntax
Visual C++
int W_9112_ AD_Set_Channel (int card_number, int ad_ch_no)
Visual Basic
W_9112_AD_Set_Channel (ByVal card_number As Long, ByVal da_ch_no As Long) As Long
C/C++ ( DOS)
int _9112_AD_Set_Channel (int card_number, int ad_ch_no )
uArgument
card_number : the card number of
ad_ch_no : channel number to perform AD conversion
for
differential mode : channel no. is from