LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

duplicate path

what's does duplicate path error mean?
0 Kudos
Message 1 of 15
(11,752 Views)
you've wanted to copy a file into itself
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 2 of 15
(11,746 Views)
when does that occur? can someone check my program on when it does that? how do i avoid this from happening

because in this program i try to create a new folder from the input data of the user


Message Edited by Jpop on 08-07-2006 09:11 AM

0 Kudos
Message 3 of 15
(11,743 Views)
and what is the difference from the above file that i created to this file here?
0 Kudos
Message 4 of 15
(11,732 Views)
Odd.  I do not get the error you describe. Robot Sad  What version of LabVIEW are you using?  On which operating system?  What values of first and last name are you using?
0 Kudos
Message 5 of 15
(11,728 Views)
i am using labview version 8 (but is a trial version) on winXP.

the values of the first name and last name are just strings.

i dont know why create folder1.vi keeps getting the duplicate path error at the create folder function. while the create folder.vi runs just fine.

sorry i've uploaded the wrong file previously on create folder1.vi. can u check what's wrong with this one? thanks
0 Kudos
Message 6 of 15
(11,724 Views)
The one I posted does generate an error if you try to create a path that already exists. To avoid it, you can use the File/Directory Info and if it returns error 7, the folder does not exist and it's okay to create it. If there is no error, the folder does exist and you would skip the New Directory function.
0 Kudos
Message 7 of 15
(11,718 Views)
i have now tried adding the file/directory info and it returns the error7. and after pressing continue (file/path directory info is wired to create folder), i get an error 10: duplicate path.

what do i do next?
0 Kudos
Message 8 of 15
(11,714 Views)
I don't know what you did since I don't have LV8. Did you put the new folder inside a case statement? As I said, if you get error 7, you have to skip the folder creation.
0 Kudos
Message 9 of 15
(11,709 Views)
the whole process is in a while loop, i still haven't added any case statements. are there any other functions that you can suggest to use, other than the open folder to use in these cases? because i need to make a folder with its inputs.
0 Kudos
Message 10 of 15
(11,706 Views)