beautypg.com

ADLINK PCI-7396 User Manual

Page 44

background image

36

• C/C++ Libraries

5.5 _7396_DO

@ Description

This function is used to write data to digital output ports. There are 6 ports
(P1A, P1B, P1C, P2A, P2B, P2C) could be configured as digital outputs on
the PCI-7348. And there are totally 12 digital output ports (P1A, P1B, P1C,
P2A, P2B, P2C, P3A, P3B, P3C, P4A, P4B, P4C) could be configured as
digital outputs on the PCI-7396.

@ Syntax

C/C++ (DOS)

U16 _7396_DO (U16 cardNo, U16 channelPort, U32 doData)

C/C++ (Windows 95)

U16 W_7396_DO (U16 cardNo, U16 channelPort, U32 doData)

Visual Basic (Windows 95)

W_7396_DO (ByVal cardNo As Integer, ByVal channelPort As Integer,

ByVal doData As Integer) As Integer

@ Argument

cardNo :

The card number of PCI7396 card initialized.

channelPort: The same as the arguments in the previous section.
doData : value will be written to digital output port

@ Return Code

ERR_NoError