04-27-2017 03:33 AM - edited 04-27-2017 03:38 AM
Hello!
So I searched the forums and Labview documentation on this but couldn't find anything.
I have made a program that waits for a specified folder to arrive via FTP. Once the folder and contained files arrive, the main program activates and, once done, closes the Front Panel with the usual Invoke node method.
However, if the files never arrive (I've implemented a timeout) or if the files are not of the expected format, the Recursive File List.vi puts out an error 7 or the Read from Text File an error 4, respectively. So far so good.
When these errors occur, however, the FP.Close method does not work. The program stays stuck and stopped. Since I found nothing on the subject, I suppose that this is its intended use, but how can I overcome this? Should I just clear all errors? I have no real need for error handling, I just want it to quit, even on error.
Thank you a lot,
Dimitris
Solved! Go to Solution.
04-27-2017 03:37 AM
04-27-2017 03:38 AM
Thanks a lot! 🙂
04-27-2017 03:40 AM - edited 04-27-2017 03:41 AM
hi mpliax!
please add some exemplary code, so we don't have to guess.
<edit> hehe .. so slooooow</edit>
04-27-2017 04:30 AM
Here's a kudo for you, for trying ^-^
04-27-2017 06:34 AM
back at you for being so kind
:cheers:
04-27-2017 07:46 AM - edited 04-27-2017 07:46 AM
Remember that you can also just bypass the error input of the FP Close node if you want to keep the errors for handling, and merge its error out after. Just remember you need to make sure the FP.Close fires at the right time using a method of execution order enforcement.
04-27-2017 07:53 AM
Now this is the info I was looking for in the first place. Strange how I found nothing before today. Maybe I didn't search well enough.
The second method is the one I implemented, even though the first one was more ingenious.
@Mythilt wrote:
Remember that you can also just bypass the error input of the FP Close node if you want to keep the errors for handling, and merge its error out after. Just remember you need to make sure the FP.Close fires at the right time using a method of execution order enforcement.
04-27-2017 09:13 AM
I customized "Clear Errors" to have a small icon.