07-09-2013 07:12 AM
Hello,
I am trying to use Labview to make a filing system. When it goes to create a file that already exists, I want a number to be concatinated on to the end of the file. For example if I save Untitled, I want it automatically to create Untitled-1. And if that exists also, I want it to be able to just automatically create Untitled-2. And golly if that exists too, I want this to be able to keep going on for quite a while. Is there an easy way to code this in Labview?
Thanks in advance!
Cassidee
Solved! Go to Solution.
07-09-2013 07:30 AM
shouldnt be too hard, what have you got so far?
07-09-2013 07:37 AM - edited 07-09-2013 07:38 AM
There's a handy VI written by a forum user here.
There's a VI called Check If File Or Folder Exists in the File I/O Palette which spits out a boolean that is true if it finds a match and false if it doesn't. With a case structure built from this, you can do pretty much anything you want.
07-09-2013 07:41 AM - edited 07-09-2013 07:42 AM
Just to get you started...
The key here is knowing that you will get an error (7) if the file does not exist. So you will need to add an additional check before this code to see if the file exists.
07-09-2013 07:54 AM
Find the attached prototype (saved in LabVIEW version 2009)