GxPsSetStandby

Purpose

Returns the specified channel’s state (Standby/On).

Syntax

GxPsSetStandby (nHandle, nChannel, bStdby, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
GX7400 slot number.
nChannel
SHORT
Specifies the Channel number:
1 – Channel A
2 – Channel B
nStdby
SHORT
Operation to perform.
0. The channel is in “On” mode.
1. The channel is in “Standby” mode.
pnStatus
LPSHORT
Returned status: 0 on success, negative number on failure.

Comments

In Standby mode, board voltages and current limits can be set; however, outputs are disconnected.

Example

The following example returns the standby status of channel A.

 

SHORT nHandle, nStatus, nStdby;

GxPsGetStandby (nHandle, 1, &nStdby, &nStatus);

 

See Also

GxPsGetStandby, GxPsGetErrorString, GxPsInitialize