LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
michael.n

ERROR with Project Code

Status: New

If different libraries are created by different manufacturers, the same error code can occur multiple times and each has a different meaning.

If you include a project code (unique UID) with the error code, for example, it is possible to provide a unique error message for different program code origins.

 

 

1) Bring to Error Constant a Tag for the Project

 

michaeln_0-1731616848772.png

michaeln_1-1731616959219.png

 

3 Comments
Petru_Tarabuta
Active Participant

Hi Michael,

 

I don't fully understand your idea. Could you please explain some more?

The error cluster contains three elements: a Boolean (the error status), an I32 (the error code), and a string (the error message). Are you proposing that a fourth element is added?

"If different libraries are created by different manufacturers, the same error code can occur multiple times and each has a different meaning." - Fully agree that this is possible. However, it is quite rare in practice. Moreover, the error message (the string) can make the difference and clearly differentiate between two different errors. Do you have  a concrete example where this was an issue?

 

michael.n
Member

I have often Tools from other Company, and then is the big problem to know what Error Code they have or they have then the same Errorcode what i have.

 

Now where good to bring the Error Code with a second Info like a Tag.

 

michaeln_0-1731756299761.png

 

regard

Michael N.

Petru_Tarabuta
Active Participant

Hi Michael,

 

Thanks for the effort of the additional explanation, and for creating the annotated screenshots.

However, I still don't fully understand your request.

 

Are you proposing that a fourth element (a project code) is added to error clusters?