Functions Reference
37
Gx6377MatrixSetConfiguration
Purpose
Sets the switch matrix configuration.
Syntax
Gx6377MatrixSetConfiguration
(
nHandle, nConfig, pnStatus
)
Parameters
Name
Type
Comments
nHandle
SHORT
Handle to a GX6377 board.
nConfig
SHORT
Switch matrix configurations are:
0 = GX6377_MATRIX_CONFIG_TWO_GROUPS_2X16
1 = GX6377_MATRIX_CONFIG_ONE_GROUP_2X32
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.
Comments
The Switch Matrix can be configured via software as two groups of 2x16 or one group of 2x32. All the Switch
Matrix channels will be opened prior to applying the new configuration settings. Applying the same configuration
settings will not change the current group’s channels settings.
Use the
Gx6377MatrixGetRow
function to retrieve the state of all relays in the specified row and group.
Example
The following example sets the switch matrix configuration as one group of 2x32:
Gx6377MatrixSetConfiguration (nHandle, GX6377_MATRIX_CONFIG_ONE_GROUP_2X32, &nStatus);
See Also
Gx6377MatrixGetConfiguration, Gx6377MatrixGetRow, Gx6377MatrixSetRow, Gx6377MatrixClose,
Gx6377MatrixOpen
,
GxSWGetErrorString
Summary of Contents for GX6377
Page 2: ......
Page 8: ...vi GX6377 User s Guide ...
Page 22: ...14 GX6377 User s Guide ...
Page 34: ...26 GX6377 User s Guide ...
Page 56: ...48 GX6377 User s Guide ...