JKI-State-Machine
JKI-State-Machine copied to clipboard
Add "VI Name" as "error source" for "General Error Handler.vi" function
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...
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.
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