LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Adding Time to DAQ Assistant data output

I am currently collecting thermocouple data from DAQ Assistant, and am using the 'write delimited spreadsheet' block to output this data to a csv file.  The data has 16 columns (for 16 different thermocouples).  I want to add a column to this output file for time.  I have my project set up to get time from the 'get date/time in seconds' block, and to format it the way I want with 'Format Date/Time String' block.  The issues start when I try to insert this into the data array.  Even when trying to write the string values for time to the 'write delimited spreadsheet block' by itself without the thermocouple data doesn't work.  Any advice would be appreciated. 

 

I've attached the following snippets:

 

-Thermocouple Data Export: exporting thermocouple data by itself.  This works fine

-Attempted Time Export: attempt to export time data.  Does not work, even though format for output is set to %s

-Attempted merge of Time and Data:  attempted to add time as a column to the thermocouple data, after converting thermocouple data to a string.  This did not work.  (Note: converting the thermocouple data to a string by itself and exporting just like the first snippet, but with a %s, worked fine).

 

 

0 Kudos
Message 1 of 3
(3,376 Views)

Update: using 'spreadsheet to string array' I was able to successfully output both time and the data.  The problem now is that time is outputting every second, and the data is outputting at ten times per second (as desired).  Is there a way to get the time to spit out ten times per second?  

0 Kudos
Message 2 of 3
(3,362 Views)

Just use the Export Waveforms to Spreadsheet File VI



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 3 of 3
(3,349 Views)