02-24-2020 08:05 AM - edited 02-24-2020 10:38 AM
Hi everybody,
I was investigating a bug that i found in my actor-tree based software but i finally found a potential bug in the framework.
I stop the software by triggering a normal stop on the top actor. The thing is that my nested actors seem to stop too early (some methods that should does not execute before the actors die).
I tracked the way the stop message is handled and i found that the final error (in my case error 43) is routed to the stop.vi, then to stop core.vi, then to "Send Normal or Emergency Stop.vi" for each nested. And there, errors 43 and 1608 drive to send an emergency stop. Normal Stop is driven by error code 0...
It seems that only my top actor lives a normal stop, and all the nested lives an emergency stop.
/
Am I misunderstanding any thing? I checked my LabVIEW 2015 and 2018 and they are the same.
Solved! Go to Solution.
02-24-2020 11:35 AM
Error 43 (normal stop) gets cleared in the default implementation of Handle Error.vi, meaning Stop Core will get an error code of 0. Have you overridden the default behavior of Handle Error.vi?
02-25-2020 02:12 AM
Good catch!
I had never notice that the error 43 was filtered there on purpose. So yes my top actor overrides the handle error and create the problem.
Thank you for the quick answer!