10-28-2005 05:38 AM
11-01-2005 10:46 AM
Hello Sergy,
The reason you are getting Error 4 is due to the way that the Read LabVIEW Measurement File works; when you read a lvm file more than once it continues to read the file from the point it finished reading the previous time. So as you are reading the entire file the first time, when you attempt to read the second time it is already at the end of the file.
I have attatched a forum link which you may find helpful:
http://forums.ni.com/ni/board/message?board.id=170&message.id=144498&requireLogin=False
Regards
Emma R,
NIUK &Ireland
11-02-2005 03:47 AM
11-03-2005 03:51 AM
11-03-2005 10:19 AM
Of course I can post my code example. At the moment it works only once and then shows Error 4 again.
I would like to have it as a part of another more complex program where in one window I can see my current measurements and in another I can take a look at previous measurements. But for beginning let's make it work as a separate program.
Sergey.
11-04-2005 06:00 AM
Hi Sergey,
When bulding a specific task you need to use low level VI's rather than adapt high level VI's.
I have written you this basic piece of code which opens the data file you posted and plots it iteratively until you press stop. It will preform the task each time you run it. This is a better way to read files.
Hope this is helpful.
Emma R
NIUK & Ireland
11-07-2005 10:26 AM
11-08-2005 04:14 AM
Hi Sergey,
The sequence that I wrote for you only asks for a file to open if you have not populated the "path" field on the front panel. If you populate this box before you run your program then it should not ask for a file location when running.
Hope this helps
Emm R
NIUK & Ireland
11-08-2005 09:06 AM
Thanks Emma R,
it really helped.
I do need to learn "good manners" in LabView programming but I do not know another way than starting to create something by myself and ask for the help if the problem appears. Sorry if my questions were silly.
Thanks a lot.
Sergey.
11-11-2005 05:54 AM
Emma R,
I have one more question about sample you have built for me: This 100 ms timer, does that mean that program will read the same file every 100 ms? I am asking about it because measurement file created by my program are quite big so it will take a lot of PC resources on each reading of the file.
If it does read the file every 100 ms is there a way to do it only once on a button pressed moment?
Thanks. Sergey.