NIFGEN_ATTR_TRIGGER_SOURCE

NI Signal Generators Help (NI-FGEN 18.1)

Edition Date: April 2018

Part Number: 370524V-01

»View Product Info
Download Help (Windows Only)

IviFgenTrigger Attribute

Numeric Value Data Type Access Applies to Coercion High-Level Functions
1250302 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 attribute.

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 of any kind.
NIFGEN_VAL_EXTERNAL External—The signal generator waits for a trigger on the external trigger input.
NIFGEN_VAL_PFI_0 Specifies that the generator use the PFI 0 trigger source.
NIFGEN_VAL_PFI_1 Specifies that the generator use the PFI 1 trigger source.
NIFGEN_VAL_PFI_2 Specifies that the generator use the PFI 2 trigger source.
NIFGEN_VAL_PFI_3 Specifies that the generator use the PFI 3 trigger source.
NIFGEN_VAL_SOFTWARE_TRIG Software Trigger—The signal generator waits until you call the niFgen Send Software Trigger VI.
NIFGEN_VAL_RTSI_0 Specifies that the generator use the RTSI line 0 trigger source.
NIFGEN_VAL_RTSI_1 Specifies that the generator use the RTSI line 1 trigger source.
NIFGEN_VAL_RTSI_2 Specifies that the generator use the RTSI line 2 trigger source.
NIFGEN_VAL_RTSI_3 Specifies that the generator use the RTSI line 3 trigger source.
NIFGEN_VAL_RTSI_4 Specifies that the generator use the RTSI line 4 trigger source.
NIFGEN_VAL_RTSI_5 Specifies that the generator use the RTSI line 5 trigger source.
NIFGEN_VAL_RTSI_6 Specifies that the generator use the RTSI line 6 trigger source.
NIFGEN_VAL_RTSI_7 Specifies that the generator use the RTSI line 7 trigger source.
NIFGEN_VAL_PXI_STAR Specifies that the generator use the PXI star trigger source.
NIFGEN_VAL_TTL0 Specifies that the generator use the PXI TRIG0 or VXI TTL0 trigger source.
NIFGEN_VAL_TTL1 Specifies that the generator use the PXI TRIG1 or VXI TTL1 trigger source.
NIFGEN_VAL_TTL2 Specifies that the generator use the PXI TRIG2 or VXI TTL2 trigger source.
NIFGEN_VAL_TTL3 Specifies that the generator use the PXI TRIG3 or VXI TTL3 trigger source.
NIFGEN_VAL_TTL4 Specifies that the generator use the PXI TRIG4 or VXI TTL4 trigger source.
NIFGEN_VAL_TTL5 Specifies that the generator use the PXI TRIG5 or VXI TTL5 trigger source.
NIFGEN_VAL_TTL6 Specifies that the generator use the PXI TRIG6 or VXI TTL6 trigger source.

Default Value: NIFGEN_VAL_IMMEDIATE

WAS THIS ARTICLE HELPFUL?

Not Helpful