03-11-2010 10:00 AM
I would like to create a new data file every five seconds. I have tried to program the vi in such a way that it automatically renames and creates the data file. If i move the Open/Create/Replace File and Write to binary file to the outside of the loop my path local variable does not update. If i move those two inside the loop my vi creates multiple files but the files only have one data point in them.
I have attached the vi. I appreciate any help you can give.
Thanks
Solved! Go to Solution.
03-11-2010 10:05 AM
You've sure accomplished a lot of work there! I would even nominate this VI for the anti-Rube Goldberg thread, because you sure haven't done anything that would be considered excessive.
(What does a blank VI show us?)
What you want to do is store your file path in a shift register. When you want to write to the same file, use that file path. When you want to create a new file, create a new file name and store that in the shift register instead. Now you just need to add your logic as to when you want to use the previous filename and when you want to create a new filename.
03-11-2010 10:26 AM
03-11-2010 10:27 AM
03-11-2010 11:19 AM
Try this.
A bunch of other things were fixed as well.
03-11-2010 11:23 AM
Thanks a lot for the help.
I am running lv 8.6 would you be able to save it for backwards compatibility?
03-11-2010 12:07 PM
03-11-2010 12:11 PM