uSyntax
Visual C++
int W_9112_ AD_Set_Range (int card_number, int ad_range)
Visual Basic
W_9112_AD_Set_Channel (ByVal card_number As Long, ByVal ad_range As Long) As Long
C/C++ ( DOS)
int _9112_AD_Set_Range (int card_number, int ad_range )
uArgument
card_number : the card number of PCI-9112
ad_range : the programmable range of A/D conversion, please refer the the above table for the possible range values.
uReturn Code
ERR_NoError
ERR_BoardNoInit
ERR_AD_InvalidRange
5.10 _9112_AD_Set_Mode
uDescription
This function is used to set the A/D trigger and data transfer mode by means of writing data to the mode control register. The hardware initial state of the
A/D Mode | Description |
|
|
AD_MOD | Software Trigger, Software Polling |
E_0 |
|
|
|
AD_MOD | Timer Trigger, Interrupt Transfer |
E_1 |
|
|
|
AD_MOD | Timer Trigger, DMA ( bus mastering)Transfer |
E_2 |
|
|
|
AD_MOD | External Trigger, Software Polling |
E_3 |
|
AD_MOD | External Trigger, Interrupt Transfer |
E_4 |
|
|
|
AD_MOD | External Trigger, DMA (bus mastering) Transfer |
E_5 |
|
|
|