LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Actor Framework: Should I merge Errors and error Codes?

Hi guys--

 

Actor Framework, LV2012:  In general, should I be merging normal Error lines with the "error code" lines that occur in some of the override VI's?  Or are these meant to be two distinct channels of information?

 

Attached is a contrived example (I wouldn't normally pass this particular error) that illustrates the kind of situation I find myself puzzling over.

 

 

Merge Error and error code.png

 

I encounter such situations sometimes when overriding "Stop Core".  Assuming one did not want to suppress the error at "Destroy Event", is this the proper way to handle this situation?

 

Thanks a bunch, and have a great day.

 

--Brad

0 Kudos
Message 1 of 3
(2,344 Views)

Hi Brad, 

 

Passing the errors as you have in the example you posted should not be a problem. This would allow your program to pass any error through from previous sections of your code's execution, as well as pass on any errors created within this portion of the code. Some may disagree, but from my point of view, this approach is best. I hope this answers you question. 

Best Regards,

Thomas B.
National Instruments
Applications Engineer
0 Kudos
Message 2 of 3
(2,312 Views)

I would post this question to Actor Framework community rather than here, as active Actor Framework users are likely to be subscribed for discussions happening there.

 

https://decibel.ni.com/content/groups/actor-framework-2011

 

I am also interested in what people say about it. 

TailOfGon
Certified LabVIEW Architect 2013
0 Kudos
Message 3 of 3
(2,305 Views)