Hi. I am using Labview 2009 (v9.03f). I want to add my own error codes to LV. I intend to use the method where I define an XML file (with suffix "-errors.txt") containing my error codes and corresponding error messages, which then get treated the same as the LV errors. (http://zone.ni.com/devzone/cda/tut/p/id/3209#toc1). This seems like a good option in case of future language migration, and to prevent a whole load of hard-coded text through the code.
However, I want to be able to insert extra error information into my messages at run time. Eg. if a value is invalid, I want to be be able to show the invalid value, like this
"Error invalid value: <run time value goes in here>".
Basically, I want something a bit like the equivalent of the old sprintf in C, where you can specify a string with various formatting placeholders, and then provide a list of data to populate the placeholders.
Can I do this with the LV error handling?
Thanks for listening.