12-09-2008 12:38 AM - edited 12-09-2008 12:41 AM
Hello there.
I'm using the Write Measurement File-Express VI to save my measured data to a lvm file.
The thing is, that I want to change the headers in the lvm file and also change the header.
I attached a screenshot of a part of my code.
As you can see, there's one big wire for the signal, consisting of different doubles and I want to name each of them in the lvm correctly.
I also want to add the content of the string parts to the heading of the lvm file.
I already read, that there's a way to do that by conventional file I/O, without using an express vi. But I'm still a bloody beginner for LV and don't really know how to accomplish that.
Can anyone help me?
Thanks in advance!
Solved! Go to Solution.
12-09-2008 04:45 AM
Hi,
This forum post uses a write to spreadsheet lower level function to save data to a file with every iteration of the loop. If you scroll down there is an add-on to the code which shows how to put some headers onto the file by the use of an array.
I hope this helps.
Mike
12-09-2008 07:45 AM
Express VIs were designed to make life easier, but the LVM ones, in particular, are not that easy to modify. That said, you can change your column headers using the information in this post. You can add text information using the Comment input, but this is a single line of text. You could possibly add a Special Block, but this would require writing it to a file and then using the LVM VI to append to that file. If you are interested in pursuing the special block, check out the LVM Specification for how to construct it.
I realize I have just given a sketchy outline. If you are interested in pursuing any of the methods, let us know and we can post more details.
12-09-2008 08:35 AM
Thanks for your replies! I really appreciate your support!
thank to your posts, I've found a way to do what I wanted.
I create the lvm file and write the header in an additional step now, and append the measurement data afterwards!
I guess that's the easiest way. 🙂