5.5_9111_DO_Channel
@Description
This function is used to write data to digital output ports. There are 16 digital output channels on PCI_9111. You can control each digital output channel by this function directly. When performing this function, the digital output port is written and the output status will be changed to the value you had specified to do_data.
@ Syntax
C/C++ (DOS)
U16 _9111_DO_Channel (U16 cardNo, U16 do_ch_no , Boolean do_data)
C/C++ (Windows 95)
U16 W_9111_DO_Channel (U16 cardNo, U16 do_ch_no , Boolean do_data)
Visual Basic (Windows 95)
W_9111_DO_ByVal cardNo As Integer, ByVal do_ch_no As Integer, ByVal do_data As Byte) As Integer
@ Argument |
|
cardNo: | The card number of |
do_ch_no: The channel number to perform digital output, the value has to be set from 0 to 15.
do_data: The value will be written to digital output port, either 0 or 1.
@Return Code
ERR_NoError
ERR_InvalidDOChannel
5.6_9111_DI
@Description
This function is used to read data from digital input ports. There are 16 digital input channels on PCI_9111. The digital input status can be accessed by this function directly.
@ Syntax
C/C++ (DOS)
U16 _9111_DI (U16 cardNo, U16 *DIData)
C/C++ (Windows 95)
U16 W_9111_DI (U16 cardNo, U16 *DIData)
Visual Basic (Windows 95)
W_9111_DI (ByVal cardNo As Integer, DIData As Integer) As Integer
@ Argument
C/C++ Library ∙39