GxAoSetPortBit

Purpose

Sets the digital output bit state.

Applied To

GX1642, GX1648

Syntax

GxAoSetPortBit (nHandle, bHi, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX1642 or GX1648 board..
bHi
BOOL
Digital out bit state one for high, 0 for low.
pnStatus
LPSHORT
Returned status: 0 on success, negative number on failure.

Example

The following example sets Digital Output line high:

 

SHORT nStatus;

 

GxAoSetPortBit (nHandle, TRUE, &nStatus);

 

See Also

GxAoGetPortBit, GxAoGetErrorString