GxAoGetPortBit

Purpose

Returns the digital output bit state.

Applied To

GX1642, GX1648

Syntax

GxAoGetPortBit (nHandle, pbHi, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX1642 or GX1648 board.
pbHi
PBOOL
Digital out bit line state: TRUE for high, FALSE for low.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Example

The following example returns the Digital I/O line state:

 

SHORT nStatus;

BOOL  bHi;

 

GxAoGetPortBit (nHandle, &bHi, &nStatus);

 

See Also

GxAoSetPortBit, GxAoGetErrorString