07-18-2011 06:02 AM
Good morning
I'm getting this error in my code and I don't understand how to solve it.
I have done a previous code, a test one, and it works. When I put it with a more complex code gives me the error.
I'm posting both codes. Can someone help me?
Thanks
Cat
PS The good code is the test.vi.
07-18-2011 06:39 AM - edited 07-18-2011 06:42 AM
I'm not sure what you're trying to do, but anyway you're appending file names to full file paths (including file name).
If you want all text files in a directory tree then just use the pattern (*.txt) at the corresponding input of "Recursive File List.vi". Then just wire the "All Files in Dir" output to the for loop. No need for the build path and for the additional List Folder.
07-18-2011 08:18 AM
HI again,
thanks for your help, I have done has you suggested but now I'm getting error number 8. Could you help me?
In attachment I'm putting what I got.
I'm trying to analise some data using a iterative program.
Thanks,
Cat
07-18-2011 08:24 AM
Why aren't you doing as dan_u told you to ?
What are the "List Folder.vi" used for ?
Try do exactly as dan_u showed you.
07-18-2011 08:43 AM
Hi
I have done as Dan_u told me, andi still got the same error.
The List folder.vi is there because i saw in another forum that it solve the problem. And when i put it in my test.vi worked perfectly.
thanks for the help
Cat
07-18-2011 08:44 AM
In the previous I forgot to put the code.
07-18-2011 09:01 AM
It seems you're trying to list recursively all txt files starting from the C:\ root? Do you really want to do that? For a Windows machine this might take minutes since it has to go through your whole file system.
You might want to specify a correct start path.
Also, the Recursive File List has an input "Continue Recursing on Error?". If you have protected folders which you're not allowed to list you might want to set this flag to True.