LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

creating folders

How do i check for a pre-existing folder. what i am trying to do is to create a vi that would create folder but once created not overwrite it, just skip the creation part.
0 Kudos
Message 1 of 12
(3,943 Views)
There is a function called "Check if file or folder exists" in the File I/O  --> Advanced File Functions palette.
0 Kudos
Message 2 of 12
(3,926 Views)

I dont see that option. I am using Labview 8.0.

Also if my runs 1000 times, how do i stop the folder creating and repition 1000 times, because the vi for creating folder looks up the directory and finds a replica and stops.

0 Kudos
Message 3 of 12
(3,897 Views)
i found it, but my second question still remains a mystery
0 Kudos
Message 4 of 12
(3,893 Views)

check this link

This will solve your problem

http://forums.ni.com/ni/board/message?board.id=170&thread.id=312784

BTW- what was your second question??Smiley Happy



Message Edited by Vsh on 04-02-2008 08:59 AM
0 Kudos
Message 5 of 12
(3,888 Views)

On the Structures palette is a case statement. You might want to consider wiring the output of the Check if File or Folder Exists to a case statement and placing the code that creates a folder inside the case statement.

This is pretty elemental programming. Have you seen the learning LabVIEW basics resources here?

Message 6 of 12
(3,886 Views)
hey fkesmail,

The how to learn labVIEW page is awesome, to you get you started quick here several tips and tricks that can solve you problem quick too
-Context help: press Ctrl+H to bring up the context help window and mouse over anything to explain what things are on the block diagram and front panel
-Shipping examples of LabVIEW: Help>>Find Examples>>search for key words>>wonderful examples sometimes are usable right away in your application
-The Almighty Right Clicking: most of the time problems can be solved by right clicking and selecting the appropriate tools

Enjoy LabVIEW.

Definitely take a look at the How to learn labVIEW which Dennis suggested, it's free and useful 🙂
Van L
NI Applications Engineer
Message 7 of 12
(3,840 Views)
Well i got the problem solved. i just had to search for .txt string instead of looking for folder because the folder lookup vi was not working the way i had the setup. and also using the folder option was over-writing all the files within. so search file option did the trick.

Thanks
0 Kudos
Message 8 of 12
(3,835 Views)
can somebody tell me how to create new palette..
0 Kudos
Message 9 of 12
(3,709 Views)
Hi awng,
 
Hope it helps.
Mike
0 Kudos
Message 10 of 12
(3,707 Views)