beautypg.com

ADLINK PCIe-2602 User Manual

Page 58

background image

48

Function Library

The number of the SDI channel, with allowed values from 0

to 31.

Value

1. State of the DI channel if SetDigitalIOSelector chan-

nel is between 0 and 3, with:

0: Low

1: High

2. State of all DI channels if SetDigitalIOSelector chan-

nel is 0xFFFFFFFF, with:

bit n = 0: Low

bit n = 0: High

in which n is 0 to 3 representing the state of DI0 to DI3

respectively.

Return Value

No error occurs if return value ≥ 0; if a negative value, please refer
to Other Functions for return code error information.

DO

Retrieves DO channel status.

Syntax

C/C++

int Sdi_SetDO (UINT Number, UINT Value)

int Sdi_GetDO (UINT Number, UINT& Value)

C#

int SetDO (uint Number, uint Value)

int GetDO (uint Number, out uint Value)

VB.Net

SetDO (ByVal Number As UInteger, ByVal Value

As UInteger) As Integer

GetDO (ByVal Number As UInteger, ByRef Value

As UInteger) As Integer