C/C++ Libraries •• 25
5.5 _7250_DI, _7252_DI
@ Description
This function is used to read data from digital input port. There are 8-
bit digital inputs on the PCI-7250 or PCI-7251 extended board. You can
get all 32 input data from _7250_DI by using this function.
@ Syntax
C/C++ (DOS)
U16 _7250_DI (U16 cardNo, U16 diPortNo, U16 *diData)
U16 _7252_DI (U16 cardNo, U16 *diData)
C/C++ (Windows 95)
U16 W_7250_DI (U16 cardNo, U16 diPortNo, U16 *diData)
U16 W_7252_DI (U16 cardNo, U16 *diData)
Visual Basic (Windows 95)
W_7250_DI (ByVal cardNo As Integer, ByVal diPortNo As
Integer, diData As Integer) As Integer
W_7252_DI (ByVal cardNo As Integer, diData As Integer) As
Integer
@ Argument
cardNo : card number to select borad
diPortNo : Digital Input Channel No, the constant is
(Note: This argument is not necessary for cPCI-7252)
DI_PORT0 0x00 Access the 8 Digital Input of PCI-7250
DI_PORT1 0x01 Access the 8 Digital Input of
Expansion Board PCI-7251#1
DI_PORT2 0x02 Access the 8 Digital Input of
Expansion Board PCI-7251#2
DI_PORT3 0x03 Access the 8 Digital Input of
Expansion Board PCI-7251#3
diData : return 8-bit value from digital port.
@ Return Code
ERR_NoError
ERR_BoardNoInit