Thanks for the template JKI, great to see how others solve reoccurring problems in LabVIEW. And thanks for sharing.
The fact that the error handling is built into the template, is just one of the many items that strikes me as quite useful. A situation I come across frequently wrt errors in this kind of pattern involves running Macros, or any multiple state activity.
The template currently goes to the error handler case, displays the error, clears the error and then continues on running the remaining steps, starting with the error cleared. Sometimes this is exactly the behaviour I need, but sometimes I want to complete the remaining states but let them know an error happened, and mostly I just want to abort the remaining states (clear out the queue - since running them no longer makes sense due to an error).
Do you at JKI or do others run into this, and if so what approach(es) do you take to manage the different ways of operating?
I can think of several ways to *change* this (well I think I've got at least three different ways I do it!), but would like discuss this so I can select an approach that is *more preferred* or at least results from more of a consensus.
And like you indicate in your template, I may have some Post error work I always want to complete. That is handled nicely in the template.
Cheers!
JKI Discussion Forums
Page 1 of 1
Error handling and how to extend its capability
#2
Posted 22 January 2009 - 10:39 AM
One addition about error handling, it might be usefull to extend the Parse State Queue in the following manner:

This way you now which state generated the error.
JKI:You have the info already available any specific reason not to output this?
Ton

This way you now which state generated the error.
JKI:You have the info already available any specific reason not to output this?
Ton
Share this topic:
Page 1 of 1



Back to top








