GxSmuTrigGetStarTriggerToGroup

Applies To

GX3116e

Purpose

Returns the star triggers that are currently connected to the specified group.

Syntax

GxSmuTrigGetStarTriggerToGroup (nHandle, nGroup, pnStarTiggers, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX3116e board.
nGroup
SHORT
Specifies the group number, group number can be as follows:
0.      GX3116_GROUP_A_CHANNELS_1_TO_8: Group a contains channel 1 through 8
1.    GX3116_GROUP_B_CHANNELS_9_TO_16: Group a contains channel 9 through 16  
pnStarTiggers
PSHORT
Specifies the Star trigger:
1.      GXSMU_ENABLE_STAR_TRIGGER_TO_GROUP: Enables the single ended star trigger to the specified group.
2.      GXSMU_ENABLE_STAR_TRIGGER_A_TO_GROUP: Enables the differential star trigger A to the specified group.
4.    GXSMU_ENABLE_STAR_TRIGGER_B_TO_GROUP: Enables the differential star trigger B to the specified group.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

The function returns the star triggers that are currently connected to the specified group. Star trigger sources can be ORed together to have multiple star trigger sources.

Example

The following example sets differential star trigger A an B to group B channels 9-16, and returns the star triggers that are currently connected to the group:

 

SHORT nStatus;

SHORT nGroup, nStarTiggers;

 

GxSmuTrigSetStarTriggerToGroup (nHandle, GX3116_GROUP_B_CHANNELS_9_TO_16, GXSMU_ENABLE_STAR_TRIGGER_A_TO_GROUP | GXSMU_ENABLE_STAR_TRIGGER_B, &nStatus);

GxSmuTrigGetStarTriggerToGroup (nHandle, GX3116_GROUP_B_CHANNELS_9_TO_16, &nStarTiggers, &nStatus);

 

See Also

GxSmuTriggerGroup, GxSmuTrigGetTriggerStatus, GxSmuTrigSetTriggerToPxiBusLine, GxSmuTrigSetAnyTriggerToAllGroups,  GxSmuTrigSetAnyTriggerToConnector, GxSmuTrigSetExternalTriggerToGroup, GxSmuTrigSetPxiTriggerBusLineToGroup, GxSmuTrigSetStarTriggerToGroup, GxSmuTrigSetTriggerToPxiBusLine, SmuGetErrorString