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.
已解决! 转到解答。
I could never get that to work as expected either...
I ended up dealing with it further upstream using the "Error Ring".
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!
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.
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.
Thank you, but the General Error Handler doesn't support using custom codes, which my app requires.
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.
Thanks! Upgrading to LV2021 SP1 fixed the issue!
As stated by Redhawk above.