FlexLogger

cancel
Showing results for 
Search instead for 
Did you mean: 

CSV config sample rate, time&date

Hey,

 

I'm recording pressures from a pressure transducer over time using a DAQ and Flexlogger. It's supposed to record about 500 samples per second. 

 

The long history graph shows my transducer data really accurately, but when it comes to saving a CSV file for my test, there are lots of rows of data, sure, but the actual pressure reading isn't changing from one row to another. And when the pressure reading does eventually change, it's about 500+ rows down. The same transducers were used for another test and were read very accuraetely so I don't think its a sensor limitation. The shock waves I want to measure are over miliseconds, so the logger seems to miss the event. I've tried playing around with the counter and data rates but I'm not sure how to manipulate them so that I can log data 500 samples per second onwards.

 

vicdav1023_0-1649080421449.pngvicdav1023_1-1649080466770.png

 

 

There is also an issue reading the time in excel. Does anyone know how I could configure the CSV file or flexlogger software to plot my readings at a higher sample rate so that all readings are recorded per sample, and display them with a more suitable time stamp e.g miliseconds? Happy to discuss it further.

 

Thanks.

0 Kudos
Message 1 of 4
(1,651 Views)

Make sure in FlexLogger, you specify the CSV file data rate at 500Hz on the "Logging Specification" tab:

Brad_0-1649169545856.png

If you view the TDMS file, does it have the expected data?


To display more accurate time info in Excel, right click on the time column and "Format Cells...". Under the Number tab, select Custom for the Type, and specify something like this for the "Type":
h:mm:ss.000 AM/PM (which will give you three decimal places after the second).

 

0 Kudos
Message 2 of 4
(1,624 Views)

Hey, the date and time issue is fixed thanks. Below are some images of my data/counter/excel rates and then attached is the excel file for the recorded data. You can see in 1 second I only get 2 pressure readings (highlighted)

 

Thx.

vicdav1023_0-1649238224803.pngvicdav1023_1-1649238241123.png

 

0 Kudos
Message 3 of 4
(1,615 Views)

I posted a plugin here that converts TDMS to CSV with more formatting options:
https://forums.ni.com/t5/FlexLogger/Changing-Time-Logs/m-p/4395317#M878

This allows you to log all TDMS data so it's not resampled. If you do resample the data, there isn't a limit on how on the max sample rate. You can also use relative time and choose the time/date formatting.

 

Hope this helps,

Brad

0 Kudos
Message 4 of 4
(282 Views)