LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot read from Measurement File- What's going on?

Solved!
Go to solution

Hi-

 

I'm having issues reading data from a Measurement File. 28 signals are merged together and saved to an LVM text file. When that file is loaded into the program, all values show up as NaN. I've looked at properties of the Read Measuement File.VI and it is reading values, however there are other things mixed in there as well - time, date, things like that. Basically I want to save a signal and replicate it exactly later on. Can I get some help?

 

Thanks in advance for any help.

0 Kudos
Message 1 of 17
(3,535 Views)

Can you show us how you are writing to the file and how you are reading from the file?

0 Kudos
Message 2 of 17
(3,531 Views)

You might be corrupting 28 signals data when you merge them to write to LVM file (or reading them back incorrectly).  It would be difficult to say without looking at your VI and/or the output file.

--------------------------------------------------------

New Controls & Indicators made using vector graphics & animations? Click below for Pebbles UI


0 Kudos
Message 3 of 17
(3,531 Views)

Attached, Thanks.

 

I've tried saving as seperate signals but that yielded the same result. I aslo figured It would be pretty cumbersome to save and load back 28 seperate files, especially with a file dialog in play.

Download All
0 Kudos
Message 4 of 17
(3,517 Views)

What happens if you uncheck "read generic text files"?

0 Kudos
Message 5 of 17
(3,499 Views)

It greys out that whole lower half labeled "Generic Text File," including the Sample data chart.

0 Kudos
Message 6 of 17
(3,492 Views)

@tidalwave62 wrote:

It greys out that whole lower half labeled "Generic Text File," including the Sample data chart.


 

... but does it read the data correctly? Have you tried?

 

(Note that you write it as lvm with a header, but read it as generic text file.  This seems inconsistent)

0 Kudos
Message 7 of 17
(3,489 Views)

Either way, data is not correct. I've tried it with and without headers, and tweaked other settings many many times.

0 Kudos
Message 8 of 17
(3,465 Views)

Can you attach a typical lvm file? How does it look like in e.g. notepad?

0 Kudos
Message 9 of 17
(3,454 Views)
0 Kudos
Message 10 of 17
(3,420 Views)