LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

duplicate path

What does putting in a case statement have to do with a while loop?

Message Edited by Dennis Knutson on 08-07-2006 10:36 AM

0 Kudos
Message 11 of 15
(2,801 Views)
what's the error out connected to(of the file/path info)?
0 Kudos
Message 12 of 15
(2,796 Views)

Unbundle by Name.

Have you taken any of the basic LabVIEW classes yet?

0 Kudos
Message 13 of 15
(2,793 Views)
haven't attended any of their classes i have only read its tutorial files taken from different sites. and most of the functions am currently using, that are currently using is new to me. sorry

i have finished the one with the case although the error 10: would still pop out. am not using the same the string control functions that you used. mine consist of a prompt user to input function (where my inputs occurs).
0 Kudos
Message 14 of 15
(2,786 Views)


@Jpop wrote:
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.

OK, this is just silly. Why You are trying to create the same folder with name "  " ((space)(space)) millons of times/second in a loop until you press the enable button for the dialog. At every loop iteration you also try to get information on it before you even create it, but then you don't use that information for anything useful!

You need to:

  1. ensure that the loop only loops when it actually needs to (check out the event structure).
  2. Create the folder only if it does not yet exist. (e.g. only if "get info" returns an error).
  3. Don't run the code with the dialog disabled, it will try to create the space-space folder every time.

 


 

Message Edited by altenbach on 08-07-2006 10:30 AM

0 Kudos
Message 15 of 15
(2,785 Views)