beautypg.com

Di_readport, Do_writeport, Di_readport do_writeport – ADLINK MXC-6300 Series User Manual

Page 110

background image

98

Digital Input/Output Function Library

Parameter(s)

None

Return codes

NoError

DI_ReadPort

Reads digital data from the specified digital input port.

Syntax

C/C++ and Borland C++

I16 DI_ReadPort (U32 *Value)

Visual Basic

DI_ReadPort (Value As Long) As Integer

Parameter(s)

Value

Returns the digital data read from the specified port

Valid values include MXC-6300 16-bit data

Return codes

NoError

CardNotRegistered

ErrorInvalidCardNumber

ErrorCardNotRegistered

ErrorFuncNotSupport

DO_WritePort

Writes digital data to the specified digital output port.

Syntax

C/C++ and Borland C++

I16 DO_WritePort (U32 Value)

Visual Basic

DO_WritePort (ByVal Value As Long) As Integer