Returns the specified Group operation mode.
Gx6264GetGroupMode (nHandle, nGroup, pnOpMode, pnStatus)
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_A1 GX6264_GROUP_B2 GX6264_GROUP_C3 GX6264_GROUP_D4 GX6264_GROUP_E5 GX6264_GROUP_F6 GX6264_GROUP_G7 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. |
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. |
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”);