User`s guide
66 • C/C++ Library
5.20 _9111_AD_Set_Mode
@ Description
This function is used to set AD trigger and channel scan mode. Please
refer to section 5.1.3 for the detailed description of AD trigger modes and
section 5.1.5 for the description of Pre-Trigger mode control.
@ Syntax
C/C++ (DOS)
U16 _9111_AD_Set_Mode (U16 cardNo, U16 ADMode)
C/C++ (Windows 95)
U16 W_9111_AD_Set_Mode (U16 cardNo, U16 ADMode)
Visual Basic (Windows 95)
W_9111_AD_Set_Mode (ByVal cardNo As Integer, ByVal ADMode As
Integer) As Integer
@ Argument
cardNo: The card number of PCI-9111 card initialized
ADMode: The value of AD mode. The mode could be one or a
combination of the following modes:
A_9111_AD_Clear_TRGEVENT
A_9111_AD_PostTrg_ON
A_9111_AD_PostTrg_OFF
A_9111_AD_PreTrg_ON
A_9111_AD_PreTrg_OFF
A_9111_AD_External_SRC
A_9111_AD_Internal_SRC
A_9111_AD_TimerTrig
A_9111_AD_SoftTrig
A_9111_AD_AutoScan
@ Return Code
ERR_NoError