04-02-2017 01:00 PM
When recording data I have two separate DAQ systems each recording data in synchronization. Everything is functioning well, except for the fact that one data output will skip about 50ms worth of data every thousand samples. When operating at 1000 Hz, this makes data correlation impossible. Is there something easy I'm missing that's causing the delay?
Below, example of data time jump and Code.
04-02-2017 01:14 PM - edited 04-02-2017 01:21 PM
How often do the file paths change. Reading them with a value property nodes at every iteration is not right. (A local variable, or the control terminal itself would be more efficient). If they never change, place the data source before the loop.
I don't quite see anything that enforces much synchronization. What are the required specifications? What is the daq hardware? Is this running on a RT system or plain windows?
Having file IO in the DAQ loop is bad. Use queues and write to the files asynchronously in a parallel loop.
04-02-2017 04:05 PM
The file path is set before the program begins running. I use the file create or overwrite VI with that initially.
Essentially, I have two inputs that I need to read in and write to an excel file at 1000 Hz. To accomplish this, I had both of the DAQ systems acquire 1000 data points for each cycle, where each cycle is a second long. I have Access to 2 myDAQ systems and one NI 9205 CompactDAQ, and I'm running LabVIEW 2015 on Windows 10.
Even when I try running it with a Producer-Consumer loop, I still run into the same problem.
04-03-2017 02:04 AM
@StandardIssue wrote:
Even when I try running it with a Producer-Consumer loop, I still run into the same problem.
Unless you show us what you are doing and how you are doing it, we cannot help. Please attach your VI.
04-04-2017 03:30 AM
You will need to sync your two DAQs. Both run with different clocks.
on the long run one will be faster and one slower. after the slow one has finished, the faster one lags some ms of data??
04-04-2017 10:41 AM
Forgive me, this is my first time working with multiple DAQs. What would be a good way of synchronizing the systems? I've been looking at the synchronization stuff offered by LabVIEW, but nothing stuck out as particularly useful.
04-07-2017 02:38 PM - last edited on 11-26-2024 05:36 PM by Content Cleaner
have you checked the examples on this one
Timing and Synchronization Features of NI-DAQmx
https://www.ni.com/en/support/documentation/supplemental/06/timing-and-synchronization-features-of-n... ?