Signal Generators

cancel
Showing results for 
Search instead for 
Did you mean: 

stepped trigger mode for PXI 5412

Hi Professionals,
Here is the problem: using 3 digital triggers to tigger 3 waveforms loaded onto PXI 5412 separately with the stepped trigger mode, it only let the first waveform out.
background information:
(1) the 3 waveform output correctly with the  mode of NIFGEN_VAL_SINGLE.
(2) in the AWG preparation the setup like this:
...
err=niFgen_ConfigureOutputMode(m2sAwgwaveTask,NIFGEN_VAL_OUTPUT_SEQ);
err = niFgen_CreateWaveformF64(..);
...
err = niFgen_ConfigureTriggerSource (m2sAwgwaveTask, "0", NIFGEN_VAL_RTSI_5);
err = niFgen_ConfigureTriggerMode(m2sAwgwaveTask,"0",NIFGEN_VAL_STEPPED);
..
(3)setup trigger as follows:
....
DAQmxExportSignal (m2sCounter5, AQmx_Val_CounterOutputEvent, "/TimingIO/PXI_Trig5");
DAQmxExportSignal (m2sCounter6, AQmx_Val_CounterOutputEvent, "/TimingIO/PXI_Trig5");
DAQmxExportSignal (m2sCounter7, AQmx_Val_CounterOutputEvent, "/TimingIO/PXI_Trig5");
.....
after trigger turn on, only the first waveform cames out.
The question is : is it possible to output three counter pulse to one realtime buse line like RTSI5? or is there anyway to let the PXI 5412 see a 3 triggers without sofware involved( not using callback in that the timing is a problem)?
one way I tried is using one counter to output pulse traina nd route signals to RTSI5, this works, however it is not satisfied with requirement.

Thanks in advance. any suggestion is  a help.
TF
0 Kudos
Message 1 of 2
(6,447 Views)

Hello TF,

It is not possible to output three counters onto one RTSI line.  An error should be thrown in this case.  One counter output task will reserve the RTSI5 resource.   If another counter task attempt to export onto the same RTSI5 line, error 89137 “Specified route cannot be satisfied, because it requires resources that are currently in use by another route” will occur. 

You are correct to be using the trigger mode stepped, however this trigger will only work with one resource to provide the start trigger.  Please reference the NI Signal Generators Help to view the topic titled NI 5412/5421/5422/5441/5442 Arbitrary Sequence Trigger Modes.  Please note that if a trigger occurs while a waveform is being generated it will be ignored with this trigger mode. 

You mentioned that you wanted to use three physically different lines to trigger three different waveforms.  The NI 5412 does not support multiple trigger in this manner.  Other NI Arbitrary Waveform Generators support Scripting.  Scripting will allow for up to four separate triggers.  The Signal Sources that currently support scripting are the NI 5421, 5422, 5441, and 5442.

Samantha
National Instruments
Applications Engineer
0 Kudos
Message 2 of 2
(6,429 Views)