LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can i combine a string array with a waveform array and write this to a file.

I am trying to set my VI up so that I can enter test information (notes to myself) and combine that with the time and date then write this as well as the waveform data from the daq to a spreadsheet file.  I am sure this is a simple task but I am new to LabView so any help would be very appreciated.
0 Kudos
Message 1 of 3
(2,766 Views)

Hi

 

You can create a cluster array.

1. Insert an empty cluster control

2. In the cluster control, insert a string control and a waveform control

3. Drag this cluster into an array control

4. When you want to log to file, just convert the array to xml, and save to file

 

Hope this solved you problem!

 

regards

Richard

Message 2 of 3
(2,761 Views)

An XML file is not a spreadsheet-formatted file, so that's not likely to help...

 

Simply call the Write To Spreadsheet File twice. The first time you wire in a 1D array of strings which is your test information. Then, you call it when you're writing out your data. Make sure you wire a True constant to the "append" input for that function.

Message 3 of 3
(2,756 Views)