le 07-24-2013 03:42 AM
Hi,
I have a problem with an append path from the "build path" function.
Built the path, it enter in "list folder" function but does not pass through the tunnel of the for loop.
Instead, if I wire a path controll to the "list folder", the path pass through the tunnel and the vi run as it should.
I attach the image of my VI so you understand better.
le 07-24-2013 06:36 AM
Hello,
Does your folder empty? If yes, so the wired path could not enter in your "for loop".
Can you post your vi ?
le 07-24-2013 06:40 AM
What is the content of Appended Path?
If it is not a Folder path (if a file path for instance), List folder will generate an error, and File list will be empty, so the For Loop will not execute because of auto-indexation.
Olivier L. | Certified LabVIEW Developer
le 07-24-2013 07:35 AM
Hi Tomaks and Olivier,
thank you for answering.
For Tomaks... List Folder is not empty.
For Olivier... the path refers to a folder in C: that contains files .csv
What is the problem???
07-24-2013 08:49 AM - modifié 07-24-2013 08:59 AM
I see that you have started a new thread, I'll answer here and leave the old thread, so we can all work together to solve your problem.
I'm sorry to question you, but I still suspect that there is something wrong with the path you create in the 'build path' function.
Just to ease my mind, could you compare the built path with your path control?
I've tried to reproduce your problem and the only way the vi does what you describe is if the path generated by 'build path' is non-existing.
le 07-24-2013 09:02 AM
You're right. If I compare the "path control" with the path that comes out of the "build path" are different. But I just can not see the difference.
I attach the image of the two paths ... you notice any difference?
07-24-2013 09:09 AM - modifié 07-24-2013 09:09 AM
Ok, now we're getting close!
Try this: convert the path to a string and attach an indicator, on the front panel, right-click and set to '\' codes display, this should reveal any 'invisible' characters in the path string.
le 07-24-2013 09:21 AM
Perfect! Discovered the mystery! 🙂
How do I delete those extra pieces ( malefic )?
le 07-24-2013 09:26 AM
Actually, the only extra character is the final \s, which show an extra space at the end of your folder name.
All the other characters are the way slash is represented in slash representation.
Olivier L. | Certified LabVIEW Developer
le 07-24-2013 09:28 AM
Mystery solved!
You just need to delete the space-character at the end of the folder name in your ring