PXI

cancel
Showing results for 
Search instead for 
Did you mean: 

Basic syncronization among modules

Solved!
Go to solution

I have recently inherited a 20-year old application that I have running in LV2020 (64-bit) on Windows 10. The application was upgraded a couple years ago to use PXI (rather than SCXI). It uses PXIe-4303 and PXIe-4353 modules, frequently multiples of each type in a single input operation (single chassis). Acquisition speeds are 1-50 Hz. Recently, while investigating a related anomaly, it dawned on me that there is no explicit code to sync the AI Start operation when multiple modules are used.  

 

I built some prototype code to test this situation. When I measure the first 2 channels on 7 separate DAQ boards (of the 2 types listed), the data that are returned (waveform type) show T0 values that are identical, to the millisecond. Repeatably. This seems improbable if they were software started without under-the-hood effort to synchronize the starts. I also notice that the Start DAQ call seems to take a long time, several seconds to execute, before data are returned.

 

Am I being fooled by the identical T0 values? Is there some effort under-the-hood to synchronize these devices that does not show up explicitly in LabVIEW? In the past, I thought explicit RTSI calls had to be made to configure all devices to use a single trigger line, and then assert that line. Is there a good description of how NIDAQ operates in this situation?

 

Many thanks,

Derek

0 Kudos
Message 1 of 3
(1,066 Views)
Solution
Accepted by topic author LabVU_Dog

The easiest synchronization you can do on DAQmx is by channel expansion. DAQmx driver is intelligent to route the sample clocks and triggers among the instruments part of the task.

 

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P8XiSAK&l=en-IN

 

Please share the VI you prototyped. The timestamp t0 is populated at the DAQmx driver layer and does not say anything about when the sample was captured in the hardware.

 

This is a good article to learn about synchronization - https://www.ni.com/en-us/support/documentation/supplemental/10/synchronization-explained.html

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
Message 2 of 3
(1,048 Views)

Those links answered my questions. I've mostly worked with cRIO these last 10 years, so I didn't realize SC Express had come so far. It's great, makes my application much simpler.

 

Thank you!!

0 Kudos
Message 3 of 3
(1,026 Views)