01-08-2010 09:22 AM
Solved! Go to Solution.
01-08-2010 09:29 AM
01-08-2010 09:34 AM
01-08-2010 09:45 AM
I'm interested in this function, but I can't open your VIs because I run LV8.5: was it introduced in LV2009?
Thanks
01-08-2010 09:51 AM
01-11-2010 02:42 AM - edited 01-11-2010 02:43 AM
I can open them now, thanks a lot.
Unfortunately, after updating the file paths, I get the same error as you...
FYI, in order to log front panel data, I usually refer to this method proposed by dippi:
http://forums.ni.com/ni/board/message?board.id=170&thread.id=378313&view=by_date_ascending&page=1
01-11-2010 02:51 AM
Well, I'm not an expert on autolog function, so I hope I'm not writing nonsense...
But the autolog.atfinish function should log data AFTER the vi has finished executing. So... you can't delete the file DURING vi execution, because of course you're going to get a "vi already open" error.
Just an idea...
01-11-2010 04:46 AM
The second metod is very similar to what I have used in the past and works well.
re the datalog, what you say sounds sesnisble - maybe the route is therefore to call the vi with a server and then close it once used to free up the file. I haven't tried this before so if I get time it'll be an interesting exercise...
Thanks for taking a look.
01-11-2010 05:07 AM
Here's a version using a vi server - I thought this might help with the datalog file deletion by removing the vi from memory after use....it doesn't.
01-11-2010 06:35 AM
...and here's my final vi's
Getdatalogs3.vi: programmatically opens simplesine.vi, sets logging on and sets the log file name, calls the vi in hidden mode, runs the vi and then closes the ref. log.vi is then also called programatically which in turn calls simplesine.vi in database mode to get the log file data.
log.vi could be replaced with a vi to translate the log file data but it's already done with database function so why bother...