GxAoDioGetDirection

Purpose

Returns the direction of static digital channels.

Applies

GX1632e

Syntax

GxAoDioGetDirection (nHandle, nDioGroup, pdwDirection, 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
pdwDirection  
PDWORD
The specified group’s direction.  Model dependent.
GX1632e:
0.      GXAO_1632_DIO_DIRECTION_OUTPUT
1.    GXAO_1632_DIO_DIRECTION_INPUT
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

Example

The following example gets the direction of the low channels:

 

SHORT nStatus

DWORD dwLow;

 

GxAoDioGetDirection (nHandle, GXAO_1632_DIO_CH0_3, &dwLow, &nStatus);

 

See Also

GxAoDioGetData, GxAoDioSetData, GxAoDioSetDirection, GxAoGetErrorString