Sets the switch matrix configuration.
Gx6384GetConfiguration (nHandle, pnConfig, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Handle to a GX6384 board. |
pnConfig |
PSHORT |
Switch matrix configurations are:0. GX6384_MATRIX_CONFIG_TWO_GROUPS_2X16: The Switch Matrix configured as two groups with 32 columns.1. GX6384_MATRIX_CONFIG_ONE_GROUP_2X32: The Switch Matrix configured as one group with 64 columns. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
The Switch Matrix can be configured via software as two groups with 32 columns or one group with 64 columns.
Note: 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 Gx6384GetRow function to retrieve the state of all relays in the specified row and group.
The following example return the switch matrix configuration:
SHORT nConfig;
Gx6384GetConfiguration (nHandle, &nConfig, &nStatus);
Gx6384SetGroupRow32Columns, Gx6384SetGroupRow64Columns, Gx6384GetChannel, Gx6384Close, Gx6384Open, Gx6384SetGroupsConfiguration, GxSWGetErrorString