Gx3348SetChannelRail

Purpose

Sets the specified group’s channel rail connection.

Syntax

Gx3348SetChannelRail (nHandle, nGroup, nChannel, nRail, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX3348 board.
nGroup
SHORT
Channel Group to measure
0. GX3348_GROUP_A
1. GX3348_GROUP_B
2. GX3348_GROUP_C
3. GX3348_GROUP_D
nChannel
SHORT
Specified group’s channel number 0-15.
nRail
SHORT
Returned Rail connections are as follow:
0. GX3348_RAIL_A: connect to rail A
1. GX3348_RAIL_B: connect to rail B
2. GX3348_RAIL_C: connect to rail C
3. GX3348_GROUND: connect to ground
-1 GX3348_RAIL_NONE: no rail is connected.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

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).

Example

The following example returns the rail connection for group A channel 2:

 

SHORT nRail, nStatus;

Gx3348GetChannelRail(nHandle, GX3348_GROUP_A, 2, &nRail, &nStatus);

See Gx3348SetRailSource API for a cmprehansive C example.

 

See Also

Gx3348GetChannelRail, Gx3348SetDac, Gx3348SetDigitalOutputs, Gx3348SetRailSource, GxPdoGetErrorString