02-14-2014 01:50 PM
Why does AF use error code 43 for shutdown? This error code is for Operation cancelled by user: http://zone.ni.com/reference/en-XX/help/371361J-01/lverror/misc_lv_error_codes/
This means we can't handle for "the real" error 43.
An emergency shutdown is error code 1608 which is unique. Now that makes more sense to me?
Greetings from the UK
Lewis
Solved! Go to Solution.
02-14-2014 02:41 PM
An admitted mistake on my part that cannot be fixed at this date without breaking backward compatibility. For a normal shut down, I used the Cancel Error because it seemed the same purpose. I should have created a new unique error code for this. Too late now. If we deprecate the entire Actor Framework in favor of Actor Framework 2 (which is not the same as 2.0 ... this would be AF2 1.0... we would be shipping both with LabVIEW if we went that route, one marked as deprecated but still totally supported) that's the kind of issue we would fix. I have no plans for an AF2 in the next few years.
FYI : There luckily aren't many APIs in LabVIEW that return 43. If you have one of those and you emit it, you need to translate it before you return it from your function to some unused error code that you give the same "user cancelled" text description.
02-14-2014 02:49 PM
Thank you AristosQueue