User`s guide

C/C++ Library
31
5.9 _6308_DI
@ Description
This function is used to read data from the digital input ports. There are 4
digital input channels on the PCI-6308. The retrieved value is stored in
DIData.
@ Syntax
C/C++ (DOS)
U16 _6308_DI (U16 cardNo, U16 *DIData)
C/C++ (Windows 95)
U16 W_6308_DI (U16 cardNo, U16 *DIData)
Visual Basic (Windows 95)
W_6308_DI (ByVal cardNo As Integer, DIData As Integer)
As Integer
@ Argument
cardNo: the card number of PCI-6308 cards
DIData: the value read from digital input port
@ Return Code
ERR_NoError