GxAoDioGetData

Purpose

Returns the level of static digital channels.

Applies

GX1632e

Syntax

GxAoDioGetData (nHandle, nDioGroup, pdwData, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX1632e  board.
nDioGroup
SHORT
Specifies the DIO group.  Model dependent.
GX1632e:
0.      GXAO_1632_DIO_CH0_3
1.   GXAO_1632_DIO_CH4_7
pdwData
PDWORD
Digital double word value: 0-0xFFFFFFFF. Where bit 0 corresponds to channel 0 and bit 31 to channel 31.  See comments for card limitations.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

This API is used to query digital channels operated by software which are static and do not make used of memory for playback.  This channel will read back the digital level of channels in both input and output

This command supports up to 32 digital channels, but individual board capabilities will limit the number of channels available.

The GX1632e has digital channels 0 to 7 organized into 2 groups of 4 channels.

Example

The following example reads back the input and output data of all channels:

 

SHORT nStatus;

DWORD dwData;

 

GxAoDioGetData (nHandle, GXAO_1632_DIO_CH0_3, &dwData, &nStatus)

 

See Also

GxAoDioGetDirection, GxAoDioSetData, GxAoDioSetDirection, GxAoGetErrorString