NIFGEN_ATTR_TRIGGER_SOURCE

NI-FGEN C Function

NIFGEN_ATTR_TRIGGER_SOURCE

IviFgenTrigger Attribute

Data Type Access Applies to Coercion High-Level Functions
ViInt32 R/W Channel None niFgen_ConfigureTriggerSource

Description

Controls which trigger source the signal generator uses.

After you call the niFgen_InitiateGeneration function, the signal generator waits for the trigger that you specify in the triggerSource parameter in the niFgen_ConfigureTriggerSource function. After the signal generator receives a trigger, it produces the number of cycles that you specify in the NIFGEN_ATTR_CYCLE_COUNT function.

This attribute is also the source for the trigger in the other trigger modes as specified by the NIFGEN_ATTR_TRIGGER_MODE attribute.

Defined Values

NIFGEN_VAL_IMMEDIATE Immediate—The signal generator does not wait for a trigger.
NIFGEN_VAL_EXTERNAL External—The signal generator waits for a trigger on the external trigger input.
NIFGEN_VAL_PFI_0 PFI 0
NIFGEN_VAL_PFI_1 PFI 1
NIFGEN_VAL_PFI_2 PFI 2
NIFGEN_VAL_PFI_3 PFI 3
NIFGEN_VAL_SOFTWARE_TRIG Software Trigger—The signal generator waits until you call the niFgen_SendSoftwareEdgeTrigger function.
NIFGEN_VAL_RTSI_0 RTSI 0 or PXI_Trig 0
NIFGEN_VAL_RTSI_1 RTSI 1 or PXI_Trig 1
NIFGEN_VAL_RTSI_2 RTSI 2 or PXI_Trig 2
NIFGEN_VAL_RTSI_3 RTSI 3 or PXI_Trig 3
NIFGEN_VAL_RTSI_4 RTSI 4 or PXI_Trig 4
NIFGEN_VAL_RTSI_5 RTSI 5 or PXI_Trig 5
NIFGEN_VAL_RTSI_6 RTSI 6 or PXI_Trig 6
NIFGEN_VAL_RTSI_7 RTSI 7 or PXI_Trig 7
NIFGEN_VAL_PXI_STAR PXI Star

Default Value: NIFGEN_VAL_IMMEDIATE