LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LVM File formatting

Solved!
Go to solution

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!

Message Edited by rouven84 on 12-09-2008 12:38 AM
Message Edited by rouven84 on 12-09-2008 12:39 AM
Message Edited by rouven84 on 12-09-2008 12:41 AM
0 Kudos
Message 1 of 4
(3,428 Views)
Solution
Accepted by topic author rouven84

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

Mike W
Applications Engineer
National Instruments UK&Ireland
Message 2 of 4
(3,395 Views)

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.

0 Kudos
Message 3 of 4
(3,388 Views)

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. 🙂

0 Kudos
Message 4 of 4
(3,384 Views)