05-22-2017 01:07 PM
Hi All,
I have USB DAQ device which I am using to acquire analog voltage from 4 channels (though different sampling rate). I am having trouble in saving the data to spreadsheet/csv file. I need to add timestamp as first column and have 4 other columns of data with different headings and also need to make a new file for every day.
Please see my attached try, I tried to use build array but all I get is a single string from get time and date function inside loop. how can I add time stamp to the file.
Thank you.
Solved! Go to Solution.
05-24-2017 06:21 AM - edited 05-24-2017 06:50 AM
Hello AnkitG,
if you are using one device, then only one sample rate can be used for all channels normally set the fastest rate.
Do you want the timestamp for each sample?
If you are using waveform instead of double, you get the start timestamp and the delta t.
Attached an example not tested. I also recommend to split the acquisition from write to spreadsheet with a queue.
05-24-2017 10:29 AM
@Duffy2007 wrote:
Hello @AnkitG
if you are using one device, then only one sample rate can be used for all channels normally set the fastest rate.
Do you want the timestamp for each sample?If you are using waveform instead of double, you get the start timestamp and the delta t.
Attached an example not tested. I also recommend to split the acquisition from write to spreadsheet with a queue.
Hi Alexander,
Thank you very much for the help but xls file generated by the program now have all the data in one column and time stamp in one. how can I have separate column for each channel data and timestamp ( I only need one timestamp column)
you mentioned to split the acquisition with queue how can I do that.
Thanks for the help,
05-26-2017 01:38 AM - edited 05-26-2017 01:41 AM
Hello AnkitG,
attached a modified example not fully tested.
Please also save the file as .csv instead of .xls and separate the values with ; instead of ,
05-26-2017 12:08 PM
thank you very much alexander, though " ," worked rather then " ; " for csv file
04-02-2018 01:53 PM
Hi there,
Can you guys please upload your vi again for labview 2015 or earlier.