NI 5404 Triggering

NI Signal Generator

NI PXI-5404
Triggering


NI-FGEN allows you to start generation immediately. You can also use a software trigger or an external digital trigger. If you configure the generation to start immediately, the waveform outputs as soon as the niFgen Initiate Generation VI or the niFgen_InitiateGeneration function is called. If you specify a software trigger, the generation does not start as soon as Initiate Generation is called; instead the generation waits until the niFgen Send Software Edge Trigger VI or the niFgen_SendSoftwareEdgeTrigger function is called. If you specify an external trigger, the generation does not begin until a rising edge is detected on the specified source terminal.

You can configure the trigger source by calling the niFgen Configure Trigger (poly) VI or the niFgen_ConfigureDigitalEdgeStartTrigger niFgen_ConfigureSoftwareEdgeStartTrigger functions or by setting the Trigger Source property or the NIFGEN_ATTR_TRIGGER_SOURCE attribute directly. You can change standard function properties or attributes, such as frequency, phase, and amplitude, while generating a waveform. If you configure the generation to trigger immediately, the change takes effect as soon as the property or attribute is changed. If you trigger the generation using software or an external digital trigger, the change does not take effect until the next trigger is received. For example, imagine that the trigger source is a software trigger and a generation is in progress. If you change the Frequency property or the NIFGEN_ATTR_FUNC_FREQUENCY attribute, the output frequency does not actually change until you call the niFgen Send Software Edge Trigger VI or the niFgen_SendSoftwareEdgeTrigger function again.

Trigger Source Description
NIFGEN_VAL_IMMEDIATE No trigger is used. Generation starts and updates happen immediately.
NIFGEN_VAL_SOFTWARE_TRIG The software trigger function call.
NIFGEN_VAL_PFI_0 The PFI 0 connector on the NI 5404 front panel.
NIFGEN_VAL_RTSI_<0..7> One of the RTSI/PXI trigger lines.
NIFGEN_VAL_PXI_STAR The PXI Star trigger line.