LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Giving names to X Value Columns using Write LabVIEW measurement file

I am trying to use Write LabVIEW measurement file express VI to write several measurements along with the name of the measurement to a file. I have several measurements in a 1-D array, but instead of x_value I would like to write the name of the measurement to the file (i.e. Distance to the center then in the next column have the number)? What is the easiest way to do this. I don't require anything fancy, so maybe there might be something simpler than this? Thank you in advance.

Kevin Baker
0 Kudos
Message 1 of 2
(2,862 Views)
It sounds like instead of a 1D array of values, you want a 2D array of key/value pairs or description and value pairs. I don't know of an easy way to do this in the Write LVM Express VI - I was only able to find the option to eliminate the X column values. The "easiest" way I can think of to do this and still use the Express VI is to create the file, and then add the headers, but it'd probably be easier just to use the "Write Characters to a File" VI. When getting your data in LabVIEW, do some conversion into a string, and make an array of strings, with one column containing your titles, and the other column containing your values, make it into a string and you pass it into the VI and you're on your way. This is just one way to do it, and there are probably hundreds of other ways. See attached.
Message 2 of 2
(2,860 Views)