Gx6377MatrixGetConfiguration

Purpose

Return the switch matrix configuration.

Syntax

Gx6377MatrixGetConfiguration (nHandle, pnConfig, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Handle to a GX6377 board.
pnConfig
PSHORT
Switch matrix configurations are:
  • GX6377_MATRIX_CONFIG_TWO_GROUPS_2X16
  • 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 return the switch matrix configuration:

 

SHORT nConfig;

Gx6377MatrixGetConfiguration (nHandle, &nConfig, &nStatus);

 

See Also

Gx6377MatrixSetConfiguration, Gx6377MatrixGetRow, Gx6377MatrixSetRow, Gx6377MatrixClose, Gx6377MatrixOpen, GxSWGetErrorString