LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read From Measurement File doesn't work

I am using LV 8.0 and have a daq program that writes data to a .lvm file every two seconds.  When I use the Read From Measurement File block the resulting waveforms have dt set to 0 rather than 2 as it says in the file.  All the y values are good but I have to ue the Build Waveform function to set dt to 2 but I should not have to do that right?  I can see dt is 0  using a probe on the output of the Read Measurement Function..   I have attached a sample .lvm file but I have changed the extension because this site would not accept a .lvm file!
Phil
0 Kudos
Message 1 of 6
(3,226 Views)
One more piece of information.  If I change Channels from 2 to 1 in the .lvm file, Read From Measurement File works correctly (but, of course it reads only the first column of data and dt is set to 2 as it should be.
Phil
0 Kudos
Message 2 of 6
(3,222 Views)

Hi Perge,

Thanks for contacting National Instruments.  I was able to reproduce your issue on my machine and I am noticing the same thing.

This was reported to R&D (# 4DQGAMQU) for further investigation. Thanks for the feedback!

 

Regards

Noah R
Applications Engineering
National Instruments
0 Kudos
Message 3 of 6
(3,192 Views)
In your provided data file, the row labeled "Samples" (line 14) is missing a required trailing delimiter (tab).  Do you have any ideas as to how the file might have gotten that way?  Is this file a direct result of your data acquisition program, or might it have been modified outside LabVIEW?  It would be helpful if you could provide a simplified version of a VI that creates a data file like this.  Thanks.
0 Kudos
Message 4 of 6
(3,173 Views)
Incidentally, the document ID number provided above appears to have a typo in it.  As a correction, this was reported to R&D (4DQGI4QU) for further investigation, however, I currently believe this to be a problem with the data file and not the Read From Measurement File Express VI.  If you are able to provide any additional information regarding how that data file is created, and whether or not it might have been edited outside of LabVIEW as I mentioned in my last post, then we should be able to investigate further.
0 Kudos
Message 5 of 6
(3,155 Views)
Jeff B,
Sorry for the delay, I have been travelling for a couple of weeks.  I took a look at the profile and your are right, it was modified incorrectly.  When the data are taken and stored as a CSV file using Write to Labview Data file, the program always sets the sample number to 1 because it is being called to append one sample each time through the timing loop.  Since the number of samples is wrong, I was modifying the number aftewards to get the read to work.  After your comment, I used jedit to modify it rather than excel and it worked.   I could change the program to store the data only once after the run is finished to eliminate having to mess with the data.  I don't know how else to fix it.
Thanks,
Phil
0 Kudos
Message 6 of 6
(3,123 Views)