10 _7200_di_channel, Description, Syntax – ADLINK PCI-7200 User Manual

Page 64: Argument, Return code, Description @ syntax @ argument @ return code

Advertising
background image

52

C/C++ Libraries

5.10 _7200_DI_Channel

@ Description

This function is used to read data from digital input channels (bit).
There are 32 digital input channels on the PCI-7200. When this
function is performed, the digital input port is read and the value of
the corresponding channel is returned.

* channel means each bit of digital input port.

@ Syntax

Visual C++ (Windows 95)

int W_7200_DI_Channel (U8 di_ch_no, Boolean

*di_data)

Visual Basic (Windows 95)

W_7200_DI_Channel (ByVal di_ch_no As Byte,

di_data As Byte) As Long

C/C++ (DOS)

int _7200_DI_Channel (U8 di_ch_no, Boolean

*di_data)

@ Argument

di_ch_no: the DI channel number, the value has to be set

between 0 and 31.

di_data: return value, either 0 or 1.

@ Return Code

ERR_NoError
ERR_InvalidDIChannel

Advertising