Gx6264GetGroupMode

Purpose

Returns the specified Group operation mode.

Syntax

Gx6264GetGroupMode (nHandle, nGroup, pnOpMode, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to the board.
nGroup
SHORT
Group number 0-7. Corresponds to groups A-H as follow:
0 GX6264_GROUP_A
1 GX6264_GROUP_B
2 GX6264_GROUP_C
3 GX6264_GROUP_D
4 GX6264_GROUP_E
5 GX6264_GROUP_F
6 GX6264_GROUP_G
7 GX6264_GROUP_H
pnOpMode
LPSHORT
Returns the operation mode:
0 GX6264_GROUP_MODE_SCANNER: Group is set to operate in Scanner mode (default).
1 GX6264_GROUP_MODE_MATRIX: Group is set to operate in Matrix mode.
pnStatus
LPSHORT
Returned status: 0 on success, negative number on failure.

Comments

The operation mode can be 0-1 where:

0 GX6264_GROUP_MODE_SCANNER: The Group is set to operate in Scanner mode (default).

1 GX6264_GROUP_MODE_MATRIX: Group is set to operate in Matrix mode. In this mode each of the specified Group’s channel can be connected.

Caution - When closing a relay, verify that all other relays on the same circuit that may cause a short are disconnected (a delay may be required between switching commands). Low Impedance sources such as power supplies may cause irreversible damage to this product when shorted to other signals.

Example

The following example returns group A operation mode:

 

SHORT nOpMode;

Gx6264GetGroupMode (nHandle, GX6264_GROUP_A, &nOpMode, &nStatus);

if (nOpMode==GX6264_GROUP_MODE_SCANNER)

printf(“Group is set to operate in Scanner mode”);

else if (nOpMode==GX6264_GROUP_MODE_MATRIX)

printf(“Group is set to operate in Matrix mode”);

 

See Also

Gx6264ResetBus, Gx6264SetBusMode