LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Synchronized Start of a Easy I/O DAQ application using External Trigger or RTSI

I have a PXI and 4 PXI6025.

I need to synchronize start of data acquisition of 4 DAQ cards.

I try to do it using an external digital input connected to PFI0 pin, but the application crashes at 4 seconds.

Can I synchronize these cards using RTSI with a Easy I/O DAQ application (Select_Signal doesn�t work) ?

This is a code peace of the application:

// Init Task
nidaqAICreateTask ("daq::1!(0:9)", kNidaqWaveformCapture, &iChan, &aaig.iTask[0]);
nidaqAICreateTask ("daq::2!(0:9)", kNidaqWaveformCapture, &iChan, &assaig.iTask[1]);

// Configure DAQ using PFI0 Trigger
nidaqAIConfigDigitalTrigger (assaig.iTask[0], "daq::1!(PFI0)", kNidaqTriggerOnRisingEdge, 0);
nidaqAIConfigDigitalT
rigger (assaig.iTask[1], "daq::2!(PFI0)", kNidaqTriggerOnRisingEdge, 0);

// Configure Continuous buffer
nidaqAIConfigBuffer (assaig.iTask[0], 20000, kNidaqContinuous);
nidaqAIConfigBuffer (assaig.iTask[1], 20000, kNidaqContinuous);

// Configure Clock RAte
nidaqAIConfigScanClockRate (assaig.iTask[0], 1000, &DAQ_ScanRate);
nidaqAIConfigScanClockRate (assaig.iTask[1], 1000, &DAQ_ScanRate);

nidaqAIStart (assaig.iTask[1]);
nidaqAIStart (assaig.iTask[0]);

// To start PFI0
DIG_Out_Line (1, 0, 0, 1);
0 Kudos
Message 1 of 3
(3,187 Views)
Greetings,

To use the RTSI bus to synchronize the start of analog input operations on multiple E-Series DAQ boards, you will need to use Select_Signal(). This function will allow you to route the ND_IN_START_TRIGGER signal from one of the boards to the RTSI bus. Thus, you will first want to configure three of your boards as slaves, being triggered by one of the RTSI lines, and then you should start the fourth board as the master, providing the ND_IN_START_TRIGGER signal.

Good luck with your application.

Spencer S.
0 Kudos
Message 2 of 3
(3,187 Views)
Select_Signal() works with standard DAQ functions, but it doesn't work with EasyIO DAQ Functions, I don't know why :(.

I do an example using EasyIO and DAQ Functions with same Select_Signal() instruction, and it only works with DAQ standard.

How can I synchronize EasyIO Functions?
0 Kudos
Message 3 of 3
(3,187 Views)