Returns the specified group’s channel rail connection.
Gx1838GetChannelRail (nHandle, nGroup, nChannel, pnRail, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a GX3348 board. |
nGroup |
SHORT |
Channel Group to measure0. GX3348_GROUP_A1. GX3348_GROUP_B2. GX3348_GROUP_C3. GX3348_GROUP_D |
nChannel |
SHORT |
Specified group’s channel number 0-15. |
pnRail |
PSHORT |
Returned Rail connections are as follow:0. GX3348_RAIL_A: connect to rail A1. GX3348_RAIL_B: connect to rail B2. GX3348_RAIL_C: connect to rail C3. GX3348_GROUND: : connect to ground-1 GX3348_RAIL_NONE: no rail is connected. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
The Gx3348 has two models: Gx3348-1 with 48 channels or Gx3348-1 with 64 channels. The channels are divided into 4 groups, with each group consisting of 16 channels. Each channel can be connected to one of three DAC rails or to a Ground rail or disconnected from all rails (GX3348_RAIL_NONE).
The following example returns the rail connection for group A channel 2:
SHORT nRail, nStatus;
Gx3348GetChannelRail(nHandle, GX3348_GROUP_A, 2, &nRail, &nStatus);
Gx3348SetChannelRail, Gx3348SetDac, Gx3348SetDigitalOutputs, Gx3348SetRailSource, GxPdoGetErrorString