4 digital input – ADLINK PCI-7224 User Manual
Page 44
36
• C/C++ Libraries
5.4 Digital
Input
@ Description
This function is used to read 8-bit digital input data from digital input ports.
You can get the 8-bit data from _7248_DI by using this function. The written
data and read-in data is 8-bit data. Each data is mapped to a signal as shown
below.
D7 D6 D5 D4 D3 D2 D1 D0
PA7 PA6 PA5 PA4 PA3 PA2 PA1
PA0
PB7 PB6 PB5 PB4 PB3 PB2 PB1
PB0
PC7 PC6 PC5 PC4 PC3 PC2 PC1 PC0
@ Syntax
PCI-7224/7248, cPCI-7248, cPCI-7249R:
C/C++ (DOS)
U16 _7248_DI (U16 cardNo, U16 channelPort, U8 *diData)
U16 _7249_DI (U16 cardNo, U16 channelPort, U8 *diData)
U16 _7296_DI (U16 cardNo, U16 channelPort, U8 *diData)
C/C++ (Windows 95)
U16 W_7248_DI (U16 cardNo, U16 channelPort, U16
*diData)
U16 W_7249_DI (U16 cardNo, U16 channelPort, U16
*diData)
U16 W_7296_DI (U16 cardNo, U16 channelPort, U16
*diData)
Visual Basic (Windows 95)
W_7248_DI (ByVal cardNo As Integer, ByVal channelPort
As Integer, diData As Integer) As Integer
W_7249_DI (ByVal cardNo As Integer, ByVal channelPort
As Integer, diData As Integer) As Integer
W_7296_DI (ByVal cardNo As Integer, ByVal channelPort
As Integer, diData As Integer) As Integer
@ Argument
cardNo:
Card number to select board
diData: Returns a 8-bit value from digital port.
channelPort: Port of each channel
PCI_CH0_PA: CH1’s Port A
PCI_CH0_PB: CH1’s Port B
PCI_CH0_PC: CH1’s Port C
PCI_CH0_PCU: CH1’s Port C Upper Nibble
PCI_CH0_PCL: CH1’s Port C Low Nibble
PCI_CH1_PA: CH2’s Port A
PCI_CH1_PB: CH2’s Port B
PCI_CH1_PC: CH2’s Port C
PCI_CH1_PCU: CH2’s Port C Upper Nibble
PCI_CH1_PCL: CH2’s Port C Low Nibble
PCI_CH2_PA: CH2’s Port A