beautypg.com

Di_readline, Do_writeline, Di_readline do_writeline – ADLINK MXC-6300 Series User Manual

Page 112

background image

100

Digital Input/Output Function Library

DI_ReadLine

Reads the digital logic state of the digital line in the specified
port.

Syntax

C/C++ and Borland C++

I16 DI_ReadLine (U16 Line, U16 *State)

Visual Basic

DI_ReadLine (ByVal Line As Integer, State As

Integer) As Integer

Parameter(s)

Line

Digital line to be read.

Valid values include: MXC-6300 0 to 15

State

Returns the digital logic state of the specified line to 0 or 1

Return codes

NoError

ErrorInvalidCardNumber

ErrorCardNotRegistered

ErrorFuncNotSupport

ErrorInvalidIoChannel

DO_WriteLine

Sets the specified digital output line in the specified digital port
to the specified state. Only available for cards supporting DO
readback.

Syntax

C/C++ and Borland C++

I16 DO_WriteLine (U16 Line, U16 State)

Visual Basic