LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

read from measurement file error

Hello!!

I have a problem with the read measurement file. I have read some of the posts regarding this topic, and seen this page:
http://digital.ni.com/public.nsf/websearch/0576444C8FD4DC0F86256E83007FA540?OpenDocument.

The problem accure when i want to read the file more than once, as many of the topics are regarding. Then I get an error that say`s "end of file encountered". But I have noticed one thing. I have posted two vi`s here, one is working if I press "run contiuosly", and the other, which basicly is the same don`t when I only press "run". I need to have an program that starts just by pressing the Run button.

If there`s no solution to this, how is it possible to programming it using other elements??

The program is pretty self explaining so I think you all will understand it. Just upload th lvm file (text-flile)when the program ask you to.


I`m using LabView 8.0.

Thanx, Tommy
0 Kudos
Message 1 of 3
(2,774 Views)

Hi,

In the main loop you need to OR the Stop button with the open from the EOF of the inner loop.

That way the Outer loop can stop with the Stop Button Or the EOF.

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 2 of 3
(2,767 Views)

Hi,

I have made a few changes to your VI's and to the Express VI's. I hope this works for you. I have made copies of the ExpressVI's and rename them so that they will not affect the NI supplied ones.

The trouble appears to be in the ex_subFleRead.vi, it uses the First Call? function. This is ok if it the first time the vi is loaded in to memory and called. This sets the the control Ist Call to true, which later gets set to false, then remains false.

Unfortunately, you need to have this control set back to True so that it reads the header of the file. So I have brought this control out of the vi and out of the Read Measurement Vi so that it can be controled from your while loop in the main VI.

This appears to read the file everytime you press the start button.

Hope this helps

Regards

Ray Farmer

 

Regards
Ray Farmer
0 Kudos
Message 3 of 3
(2,763 Views)