beautypg.com

ADLINK PCI-7396 User Manual

Page 42

background image

34

• C/C++ Libraries

5.4 _7396_DI

@ Description

This function is used to read the 24-bit digital inputs data from the input port of
the PCI-7396.The written data and read in data is 24 bits data. Each data is
mapped to a signal as the table below.

D7

D6

D5

D4

D3

D2

D1

D0

PA7

PA6

PA5

PA4

PA3

PA2

PA1

PA0

D15

D14

D13

D12

D11

D10

D9

D8

PB7

PB6

PB5

PB4

PB3

PB2

PB1

PB0

D23

D22

D21

D20

D19

D18

D17

D16

PC7

PC6

PC5

PC4

PC3

PC2

PC1

PC0

@ Syntax

C/C++ (DOS)

U16 _7396_DI (U16 cardNo, U16 channelPort, U32 *diData)

C/C++ (Windows 95)

U16 W_7396_DI (U16 cardNo, U16 channelPort, U32 *diData)

Visual Basic (Windows 95)

W_7396_DI (ByVal cardNo As Integer, ByVal channelPort As Integer,

diData As Integer) As Integer

@ Argument

cardNo:

The card number of PCI7396 card initialized.

channelPort: port of each channel
P1_A : CH1’s Port A
P1_B : CH1’s Port B
P1_C : CH1’s Port C
P1_ABC: CH1’s Port A ,Port B ,Port C
P2_A : CH2’s Port A
P2_B : CH2’s Port B
P2_C : CH2’s Port C
P2_ABC: CH2’s Port A ,Port B ,Port C

(The following items are for PCI-7396 only.)

P3_A : CH3’s Port A
P3_B : CH3’s Port B
P3_C : CH3’s Port C
P3_ABC: CH3’s Port A ,Port B ,Port C
P4_A : CH4’s Port A
P4_B : CH4’s Port B
P4_C : CH4’s Port C
P4_ABC: CH4’s Port A ,Port B ,Port C
diData:

returned 24-bit value from digital port.