LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Trouble with reading a lvm file

Hello.
Using the "lvm write" Express VI I want to write data to the same lvm file each time each run the VI. Displaying the lvm file in Excel verifies that the VI works properly. Two columns are created and new data is added to the corresponding column each time I run the VI.
In another VI I want to read the saved data with the "lvm read" Express VI. Unfortunately only the first row is displayed. Why doesn't the VI read the whole lvm file?
I've attached two VIs, one for writing and one for saving the data. Please run them one after another. Of course they are very very simple but they demonstrate the problem.
Thank you for help!
Download All
0 Kudos
Message 1 of 6
(3,167 Views)
The reason is the way you have configured trhe read from LVM.

Notice that you have the "Segment Size" set to retrieve segments of the original size. Well you alnot wrote 1 point at a time so it will only retrieve one at a time.

Notice that if you change your writter VI to save 3 points at a time it will read in 3 points, rather than the 1 point.

Therefore you just need to change how you read or how you write, depending on what you need.
0 Kudos
Message 2 of 6
(3,167 Views)
Hello again.
Now I want to add a comment to each set of data using the comment input of the lvm write Express VI.
The lvm read Express VI has a comment output. But when reading the saved lvm file the comment is not displayed. What mistake has slipped in?
Thanks for help!
0 Kudos
Message 3 of 6
(3,167 Views)
I forgot to attach the example files. Sorry. 🐵
Download All
0 Kudos
Message 4 of 6
(3,167 Views)
Sorry it took me so long to get back to you I have been swamped.

I took a look at your code and I can not see what you are doing wrong. Anybody have any ideas?

If not I would contact NI support.
0 Kudos
Message 5 of 6
(3,167 Views)
Subastian has the answer for you on the other post.

I just wanted to put the link here incase someone finds this thread.

Trouble with reading a lvm file
0 Kudos
Message 6 of 6
(3,167 Views)