05-30-2018 04:57 PM
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).
05-30-2018 05:50 PM
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?
05-30-2018
06:47 PM
- last edited on
11-07-2024
03:26 PM
by
Content Cleaner
Just use the Export Waveforms to Spreadsheet File VI