LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I read a comment from an lvm?

Solved!
Go to solution

Hello,

I created an lvm using the Write to Measurement File express vi and I added a comment.

To simplify it the line of the lvm created was:

5 test

where 5 is a random value and test the comment I input.

My question is how can I read this comment.

When I use the Read Measurement File express vi, the comment output

returns empty.

Thank you.

0 Kudos
Message 1 of 5
(3,057 Views)

Hi epik78,

 

I am not sure how you are adding your comment to the file, but when I made the simple VI below, I was able to see the comment that I input to the .lvm file in the comment indicator of the Read From Measurement File.

 

 

 

Regards,

Stephen S.

Message Edited by Stephen_S. on 02-25-2009 03:18 PM
National Instruments
Applications Engineering
0 Kudos
Message 2 of 5
(3,027 Views)

Thank you for your reply.

I tried your way but still nothing.

Ive attached a vi that does not do it for me.

Can you check it?

Thank you.

0 Kudos
Message 3 of 5
(3,023 Views)
Solution
Accepted by topic author epik78

Hey epik78

 

When I ran your code I got the same performance your described. Try selecting either "One header only" or "One header per segment" under the Segment Headers section of the Configure Write to Measurement File window and you should be able to retrieve that comment when you read from that file.

 

Hope this helps.

 

-Ben

Applications Engineering

National Instruments

Hope this helps.
-Ben

WaterlooLabs
Message 4 of 5
(3,004 Views)

You are right,it works if you include a header.

Too bad I cant have the files I want to create with a header.

Thanks for the help.

0 Kudos
Message 5 of 5
(3,002 Views)