08-21-2019 09:48 AM - edited 08-21-2019 09:49 AM
Hi,
For a recent project I tested the Delacor DQMH toolkit and LINX to build and control some events and I experienced a strange behavior (Maybe it is normal).
To explain myself, when I use the IDE and the Arduino (Connected with LINX) is not connected to the computer I get and error in a pop-up and it is what I want. The problem is that after building an .exe of the software and reproducing the same thing, I get no pop-up (But I can see the error with a probe using the debug mode).
So, I was wondering if I missed something in the DQMH toolkit and that prevent the error to pop-up in an executable.
Thank you for your help
- Dave
08-21-2019 11:00 AM
How's you automatic error handling setting in the development environment?
08-21-2019 11:16 AM
You are relying on automatic error handling to pop up the dialog. This functionality is available in the LabVIEW development environment, but not in a built EXE. I recommend you wire all errors that you care about on your diagram, and have a Simple Error Handler VI at the end of the error chain, which will pop up an error dialog, both in the developement environment and in a built EXE.
08-21-2019 05:27 PM
Check this post to learn more about automatic error handling and why we recommend to have it OFF:
08-23-2019 02:54 PM
Hi,
Thank you for your answers! It is really appreciated. Now I can see were that problem came from!
I have another question regarding the managing of the errors.
Is it possible to have your definition of standalone? There is an error case in the DQMH_MESSAGE_CASES that should generate a pop up in case of an error so I was wondering if the standalone mode was referring to an executable or not.
Also, as I write that, I am wondering if I haven't misinterpreted the DQMH module, should I have to program the "ignore list" so my error would not be ignored and would show me a pop up?
08-23-2019 03:42 PM
'Standalone' mode, in this case, refers to running the DQMH Main VI as a top-level VI, i.e. opening its panel and clicking the Run button. In this case, the 'External Launch' parameter will be FALSE. This is not the typical way a DQMH module is run. Usually, you are calling the Start Module.vi for a module to start it, in which case the 'External Launch' parameter will be TRUE.
You are free to modify the code in the 'Error' frame to pop up an error dialog for all errors, regardless of the value of the 'External Launch' parameter.