09-02-2021 01:37 PM
The General Error Handler in LabVIEW 2020 is not working as expected, It does not generate the type of dialog selected, source output is blank when error source is designated (input), a generic, non-specific msg is displayed, and there is a ambivalent pop-up window which does not correspond to user-defined error.
Solved! Go to Solution.
09-02-2021 02:19 PM
I could never get that to work as expected either...
I ended up dealing with it further upstream using the "Error Ring".
09-02-2021 02:59 PM - edited 09-02-2021 03:01 PM
It did work for me in another app. Not sure of the LabVIEW version. Maybe LabVIEW version has something to do with it, because it did work in the past. Thanks for your suggestion! 😉
Oh, never saw that pop-up screen (issue 4) before - totally weird!
09-02-2021 03:03 PM
@sfrosty wrote:
Oh, never saw that pop-up screen (issue 4) before - totally weird!
Drop the error ring on the block diagram and click on it.
09-02-2021 03:21 PM
Oh, I was referring to my pop-up window, depicted below in grey, but thanks for that!
09-02-2021 03:27 PM - edited 09-02-2021 03:56 PM
Have you upgraded to Service Pack 1? At the very least, for me the dialog appears somewhat correctly and the Continue/Stop buttons are there. Issues 2 and 3 are still present however.
Edit: Issue 3 resolves itself for me if I hit Continue instead of Stop (goofball moment there). Issue 2 resolution is a bit weird... The "source out" indicator only populates with the contents of "[error source]" in the case where "error in" does not contain an error but "[error code]" does contain a nonzero number.
I don't see why they wouldn't just populate the source out indicator in either case, but alas, that's what I found.
Edit 2: It must be the end of the day... "source out" populates correctly for me in either case, IF I hit Continue instead of Stop. If "error in" does contain an error, "source out" will display the source from the error cluster. If there is no incoming error on the error wire, then it will look at "[error code]" and "[error source]" and display those.
Saying "Thanks that fixed it" or "Thanks that answers my question" and not giving a Kudo or Marked Solution, is like telling your waiter they did a great job and not leaving a tip. Please, tip your waiters.
09-02-2021 05:14 PM
Hve you tried using the Simple Error Handler instead? I know it incorporates the General Error Handler as a subVI, but it always seemed to work for me.
09-03-2021 06:21 AM
Thank you, but the General Error Handler doesn't support using custom codes, which my app requires.
09-08-2021 08:38 AM - edited 09-08-2021 08:44 AM
Found that there is a bug regarding the "LabVIEW General Error Handler" in LabVIEW version 2020. I verified that the General Error Handler works as specified in LV2018 and LabVIEW 2020 SP1.
As stated by Redhawk above.
09-08-2021 08:40 AM - edited 09-08-2021 08:42 AM
Thanks! Upgrading to LV2021 SP1 fixed the issue!
As stated by Redhawk above.