Discussions au sujet de NI LabVIEW

annuler
Affichage des résultats de 
Rechercher plutôt 
Vouliez-vous dire : 

path

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.

0 Compliments
Message 1 sur 12
4 760 Visites

Hello,

 

Does your folder empty? If yes, so the wired path could not enter in your "for loop".

Can you post your vi ?

0 Compliments
Message 2 sur 12
4 741 Visites

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


0 Compliments
Message 3 sur 12
4 739 Visites

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???

0 Compliments
Message 4 sur 12
4 732 Visites

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.Smiley gêné

 

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.

gmazza_example.png

0 Compliments
Message 5 sur 12
4 720 Visites

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?

0 Compliments
Message 6 sur 12
4 712 Visites

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.

gmazza_example.png

Message 7 sur 12
4 704 Visites

Perfect! Discovered the mystery! 🙂
How do I delete those extra pieces ( malefic )?

0 Compliments
Message 8 sur 12
4 693 Visites

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


0 Compliments
Message 9 sur 12
4 687 Visites

Mystery solved!

 

You just need to delete the space-character at the end of the folder name in your ring

0 Compliments
Message 10 sur 12
4 683 Visites