beautypg.com

Do_readline – ADLINK MXC-6300 Series User Manual

Page 113

background image

Digital Input/Output Function Library

101

MXC-6300

DO_WriteLine(ByVal Line As Integer, ByVal State

As Integer) As Integer

Parameter(s)

Line

Digital line to be read.

Valid values include: MXC-6300 0 to 15

State

New digital logic state 0 or 1.

Return codes

NoError

ErrorInvalidCardNumber

ErrorCardNotRegistered

ErrorFuncNotSupport

ErrorInvalidIoChannel

DO_ReadLine

Reads back the digital logic state of the specified digital output
line of the specified port.

Syntax

C/C++ and Borland C++

I16 DO_ReadLine (U16 Line, U16 *State)

Visual Basic

DO_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, 0 or 1, of the specified line