CyberResearch PCIDIO 24H Manual Do Utilizador

Página de 59
 
C/C++ Libraries 
• 37 
5.7 Configuration 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.