JKISoftware / JKI-State-Machine

JKI State Machine
Other
42 stars 21 forks source link

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

Closed kosist closed 2 weeks ago

kosist commented 4 years ago

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

Tom-McQuillan commented 2 months ago

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 commented 2 weeks ago

Similar feature implemented in JKI SM24