LabVIEW Development Best Practices Blog

Community Browser
cancel
Showing results for 
Search instead for 
Did you mean: 

Re: Error Cluster Constant for LabVIEW 2011

Elijah_K
Active Participant

Error handling is an important but challenging part of any large application.  In an attempt to make it easier to generate specific errors throughout your application, AristosQueue and company has created a new Error Cluster Constant.  An early version is available for you to evaluate and download from here.

8-26-2011 1-33-42 PM.png

I am in the process of lobbying them to create a VI Package file to make installation easier, but I strongly encourage anyone that's interested in more advanced error handling to download and evaluate this new tool.

On a related note, the latest version of the Structured Error Handler API is available here.

Elijah Kerry
NI Director, Software Community
Comments
shew82
Member

This is GREAT!

...If only it was part of LabVIEW itself (being a vi.lib addition, means that I would need to make sure that all members of my team have it installed / remember to install it on new machines, etc)

Elijah_K
Active Participant

That is a very real possibility for a future version.  As always, no promises.

Elijah Kerry
NI Director, Software Community
vishots.com
Member

If you use package configurations in VIPM then you just apply it for your project.

Sylv1_91
Member

Hello,

I try to use this functionnality because it seems very interresting to manage errors (and especially for custom errors), but I have some questions about it.

- When I create a custom error where the information (code number and error description) is save ?

- Do you known if it's possible to use this function in LabVIEW RT ?

Thanks for your help.

Regards

AristosQueue (NI)
NI Employee (retired)

> - When I create a custom error where the information (code number and error description) is save ?

It is saved as part of your block diagram, just like the value of a string constant would be.

> - Do you known if it's possible to use this function in LabVIEW RT ?

Yes, it works fine. The version of this node that ships with LV 2012 works better on RT -- I added some more features there based on requests from people who used this LV 2011 version. But the 2011 version does deploy and execute on RT.

Sylv1_91
Member

Hello,

Thanks for your anwsers.

I have one more question about this topic.

When we use this error cluster constant, we have access to a pre-defined list of error. Do you known if it's possible to modify, complete or customize this list ? And if it's possible how I can go about this ?

Thanks again for your help.

Sylvain

AristosQueue (NI)
NI Employee (retired)

Yes. Check the LV online help for information about Custom Error Codes.