GxPsGetState

Purpose

Returns the channel’s state (Inhibit/Fail).

Syntax

GxPsGetState (nHandle, nChannel, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
GX7400 slot number.
nChannel
SHORT
Specifies the Channel number:
1 – Channel A
2 – Channel B
pnStatus
LPSHORT
Returned status is as follow:
0. GT_NO_ERROR - If neither failed nor inhibited
1. GXPS_CHANNEL_FAIL - Channel’s status is FAIL
2. GXPS_CHANNEL_INHIBIT - Channel’s status is INHIBIT

Example

The following example gets channel A’s status.

 

SHORT nHandle, nStatus;

GxPsGetState (nHandle, 1, &nStatus);

 

See Also

GxPsGetErrorString, GxPsInitialize