LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Trying to set up multiple data inputs from analog and serial devices, each have different data rates

You are getting there.  I would put all of the marker data code inside of its case structure though (move the TDMS writes inside of the data marker case structure).



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 31 of 33
(885 Views)

@crossrulz wrote:

You are getting there.  I would put all of the marker data code inside of its case structure though (move the TDMS writes inside of the data marker case structure).


Your method seems to work and I get columns for all of my data inputs in the data file but  when I open it in excel, but there are several issues:

 

1. How do I order the excel columns? they seem random at this point. Is this unavoidable with the

2. none of them are synced to the same timestamp. The columns all have different amounts of data in them (I assume because they are all running at different capture rates) but how do I set it up so it either fills in the gaps in data with an empty cell or just copies the number over and over until a new one appears? I tried to add a timestamp column and write that but nothing lines up except the event marker timestamp.

3. My VI does not seem to run at the 50Hz speed I would expect, if I add in a time column into my tdms write outside of both case structures and before anything else it records time at cpu speed it seems. Why would it not run constrained by the time it takes for the analog DAQ to capture data (set to 50hz?)

0 Kudos
Message 32 of 33
(880 Views)

So I think I figured some of it out, I put all of the TDMS writes, including the timestamp into the DAQ case only using local variables to grab the HR and TC numbers for writing. It seems to do what I need it to as far as data recording. I also moved my event markers into the same DAQ case in the structure.

 

The issue I am still having though is overall VI timing. It does not seem to run at 50Hz, since if I divide the iterations count by 0.02 i don't get a 1sec counter. Should I also move all of my timing into the same case like I did the TDMS?

0 Kudos
Message 33 of 33
(876 Views)