ADLINK cPCI-6208V User Manual
Page 37

C/C++ Library
•
29
5.7 _6208_DI
@ Description
This function is used to read data from the digital input ports. There are
4 digital input channels on the 6208 series cards. The retrieved value is
stored in DIData. However the returned value needs to be further
process by including the following code in your program: DIData =
(DIData & 0xF0) >> 4
@ Syntax
C/C++ (DOS)
U16 _6208_DI (U16 cardNo, U16 *DIData)
C/C++ (Windows 95)
U16 W_6208_DI (U16 cardNo, U16 *DIData)
Visual Basic (Windows 95)
W_6208_DI (ByVal cardNo As Integer, DIData As
Integer) As Integer
@ Argument
cardNo: The card number of the 6208 card
initialized. (The first card in the most
significant PCI slot is assign cardNo = 0).
DIData: the value read from the digital input
port, please refer to the above descriptive
paragraph to obtain the correct DI data
@ Return Code
ERR_NoError