I have a requirement of generating custom system level errors for highlighting error conditions to the user of the application. These errors are generated across different VIs in my application and are intended only for user notification. I merely display these errors to the user and not react on that. Unlike LV errors, these errors do not in any way affect the application functioning.
In my previous project, I had used hard-coded strings. But they were difficult to maintain due to issues like
- Same error code with different error messages.
- Different error codes with same error message.
- Inability to trace all errors.
- Export all errors to a file (If I want to create a error table for user manual, it was always manual work of going to each subVI and copying all the constant strings.)
I tried to use the LabVIEW error code editor and Gpower error and warning tool-set but both of them were using LV error cluster to propagate the errors. This will not work in my case because the errors I generate are just notifications. I do not want to stop other LV blocks from executing when this custom error is generated.
Is there any way to do this in a way that can be scalable and maintainable and also when I want to export out as a file, I can do it easily.