11-28-2017 06:13 AM
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).
11-28-2017 10:00 AM
@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?)
11-28-2017 11:11 AM
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?