JKI-State-Machine icon indicating copy to clipboard operation
JKI-State-Machine copied to clipboard

Add "VI Name" as "error source" for "General Error Handler.vi" function

Open kosist opened this issue 4 years ago • 1 comments

I have use case when multiple VIs with JKI State Machine are launched dynamically. And in case of some error, it is difficult to find out where exactly it has happened (based on default error dialog). The easy solution could be to assign "VI Name" to "error source" of the "General Error Handler.vi" - and user will immediately see, which VI drops the error...

Error Dialog

kosist avatar Jul 02 '20 06:07 kosist

I'm looking at the General Error Handler Core CORE.vi source and it looks like the error source input is discarded if there is a valid error. image

A solution I have used in the past is to use the error <append> function to append the VI Name/Title and state that caused the error to the error message. Getting the state that caused the error involved having to use a feedback node to retain state-1

Tom-McQuillan avatar Jul 02 '24 10:07 Tom-McQuillan