5.7Configuration Channel

@ Description

This function is used to configure the Input or Output of each Channel. Each I/O Port of PCIDIO 24H/48H/96H 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 _DIO48H_Config_Channel (U16 cardNo, U16 channelNo, U16 ctrlValue)

U16 _DIO96H_Config_ Channel (U16 cardNo, U16 channelNo, U16 ctrlValue)

C/C++ (Windows 95)

U16 W_DIO48H_Config_Channel (U16 cardNo, U16 channelNo, U16 ctrlValue)

U16 W_DIO96H_Config_ Channel (U16 cardNo, U16 channelNo, U16 ctrlValue)

Visual Basic (Windows 95)

W_DIO48H_Config_Channel (ByVal cardNo As Integer, ByVal channelNo As Integer, ByVal ctrlValue As Integer) As Integer

W_DIO96H_Config_ Channel (ByVal cardNo As Integer, ByVal channelNo As Integer, ByVal ctrlValue As Integer) As Integer

@ Argument

cardNo:

card number

to select board

channelNo:

PCI_CH0,

PCI_CH1, PCI_CH2, or PCI_CH3

ctrlValue:

the control value to set up PA, PB, and PC

 

as input

or

output port.

C/C++ Libraries 37