LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error handling: Customizing error details: Info about the the path to the VI which has thrown the error

Hi,

 

I need a quick advice about how to display in the error cluster the information about the path and VI which has thrown an error.

 

When I don't prepare my own error message, and the error is captured automatically, the information about the path, Vi name and calling VIs is presented automatically.

 

When I prepare/define my own basic error cluster I have only what I define in the string part of the cluster. 

 

How to cause tha apperance the path and VI name in my defined error message?

0 Kudos
Message 1 of 8
(3,036 Views)
Are you talking about the custom error code node, or building your own error clusters from scratch?

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 8
(3,027 Views)

From scratch, as below

 

Capture333.PNG

 

but I'm open for suggestions.

0 Kudos
Message 3 of 8
(3,024 Views)

Either use the Error Cluster From Error Code VI, or look inside it to see how it works.

Message 4 of 8
(3,005 Views)

Use an error ring

You'll feel a lot better in the morning


"Should be" isn't "Is" -Jay
Message 5 of 8
(2,964 Views)

@MimiKLM wrote:

You mean this link


That's helpful too but,  I had read "When I prepare/define my own basic error cluster I have only what I define in the string part of the cluster" as you wanted to use a file to expose those custom error codes and ultimately ship them with your solution dynamically rather than statically

 

The error ring will pick up any custom errors you define in the error file(s).  Including formatting!  this then populates the explain errors and error dialogs just like any error definition that ships with any LabVIEW component or toolkit.

 

Certainly, an error ring can also STATICALLY define or re-define an error within the application instance the ring is called from.  Those Error Rings are quite flexible!


"Should be" isn't "Is" -Jay
0 Kudos
Message 7 of 8
(2,923 Views)

Yes but the link yo sent is nor valid. 404

0 Kudos
Message 8 of 8
(2,911 Views)