Jump to content

Primer on the new Multiple Errors VIs?


Recommended Posts

I have jumped from 2019 SP1 to 2021 SP1 and incidentally discovered the existence of new Multiple Errors VIs introduced in LV 2020 after listening to AQ's presentation at the previous GDevCon (which otherwise went right above my head).

The upgrade notes only say:

Multiple Errors VIs
The Dialog & User Interface palette includes the new Multiple Errors subpalette. Use the Multiple Errors VIs to convert an error cluster into different formats or to manipulate the
attributes of an error cluster.

Digging cursorily into the VIs, I see the use of JSON instead of the ad hoc LV error message syntax, but I am unclear what changes (or not) as far as handling "standard" errors. I am assuming not everything has been rewritten has this would break former code (the Simple Error Handler.vi seems not to have changed and only deals with <append> and <err> syntax.

I couldn't find anything in the examples or much in the Help.

Do I want to add "Attributes" to an error cluster? How can I take advantage of the new features for better error reporting/formatting?

Link to comment
13 hours ago, X___ said:

How can I take advantage of the new features for better error reporting/formatting?

I wouldn't bother, personally. It seems a poor solution. If I were to point to a problem with LabVIEW errors it would be resolution and they don't help with that.

I did have a whole paragraph on what I would like to see as an improvement to error reporting and how to achieve it but I reconsidered in the face of LabVIEW still considering reading an entire file as an error and AQ's presentation.

Edited by ShaunR
Link to comment

I have used the feature in a couple of places.  But I agree that it isn't ideal for several reasons.  But still for debugging where I'm not sure what is happening and multiple errors might be generated cascading down, it does help add a bit more to understand of what is happening, when probing isn't possible.  It certainly isn't something I just turn on everywhere, and it isn't something I recommend other use without knowing its limitations.  This isn't a magic solution that now makes debugging and error handling wonderful.  But it can be helpful.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.