36
•
C/C++ Libraries
5.6 Configuration
Port
@ Description
This function is used to configure the Input or Output of each Port. Each I/O
Port of PCI-7224/7248/7296 is either input or output, so it has to configure as
input or output before I/O operations are applied.
@ Syntax
C/C++ (DOS)
U16 _7248_Config_Port (U16 cardNo, U16 channelPort,
U16 direction);
U16 _7249_Config_Port (U16 cardNo, U16 channelPort,
U16 direction);
U16 _7296_Config_Port (U16 cardNo, U16 channelPort,
U16 direction)
C/C++ (Windows 95)
U16 W_7248_Config_Port (U16 cardNo, U16 channelPort,
U16 direction);
U16 W_7249_Config_Port (U16 cardNo, U16 channelPort,
U16 direction);
U16 W_7296_Config_Port (U16 cardNo, U16 channelPort,
U16 direction)
Visual Basic (Windows 95)
W_7248_Config_Port (ByVal cardNo As Integer, ByVal
channelPort As Integer, ByVal direction As
Integer) As Integer
W_7249_Config_Port (ByVal cardNo As Integer, ByVal
channelPort As Integer, ByVal direction As
Integer) As Integer
W_7296_Config_Port (ByVal cardNo As Integer, ByVal
channelPort As Integer, ByVal direction As
Integer) As Integer
@ Argument
cardNo:
card number to select board
channelPort:
The same as channelPort in section 5.5.
direction:
port I/O direction
INPUT_PORT:
the port is configure as INPUT
OUTPUT_PORT:
the port is configure as OUTUT
@ Return Code
ERR_NoError
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com