05-23-2013 01:36 PM
I'm having an error when i cancel a file dialog and the error says the following - "Error 43 occurred at File Dialog3". It says that the possible reason is that the operation is cancelled by the user but I don't understand the actual problem.
Can someone please help me out wit this because i can't figure out why it crashes at all.
Thanks a lot!
05-23-2013 02:04 PM - edited 05-23-2013 02:06 PM
It's not so much that it's a crash as it's explaining that no file/folder was selected in the Express VI as the containing VI expected. Presumably, the VI's author expects the user to select a path to something that will be used downstream. If the user hits cancel, the expected procedure will fail. The error just lets you handle it right away without having to test the "selected" path. You can wire a "Clear Error" or an indicator to the output of the Express VI, or put it in a loop to force the user to select something. What are you trying to do?
05-24-2013 06:20 AM
... and another thing!
Your VI isn't really "crashing", it's just stopping long enough to present the error message. You can prevent this behavior if you disable automatic error handling in the VI's properties:
05-24-2013 06:33 AM
It looks simple problem to me, It is expecting one file path from you and you are cancelling hence this problem. In the error out use one simple error handler and pass no dialogue to type of dialogue input.
Hope then it wont give you trouble.
Thanks,
05-24-2013 08:59 AM
This is a common error when using the "Write Spreadsheet to File.vi" and it has no error out terminal. A quick forum search will turn up numerous threads on this topic and ways to deal with it.