GxAoDioSetData

Purpose

Sets the output level of static digital channels.

Applies

GX1632e

Syntax

GxAoDioSetData (nHandle, nDioGroup, dwOutputData, 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
dwOutputData
DWORD
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 control digital channels operated by software which are static and do not make used of memory for playback.  A digital channels set to input will not be affected by this command.

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 causes the card to write a high output level to every other channel:

 

SHORT nStatus;

 

GxAoDioSetData (nHandle, 0xAAAAAAAA, &nStatus)

 

See Also

GxAoDioGetData, GxAoDioGetDirection, GxAoDioSetDirection, GxAoGetErrorString