08-23-2017 11:31 AM
Hello all,
I am currently in the process of making an application using a few ErrorRing to generate custom errors. I would like to be able to generate a table of all the ErrorRings used in my project, along with their error codes and descriptions, in a way that does not involve copying and pasting stuff manualy.
I have not managed to find a way to recover the error data of the ErrorRing Xnode using LabVIEW scripting. Does anybody know a way, or is the ErrorRing data forever hidden in some kind of private space ?
Solved! Go to Solution.
08-23-2017 01:52 PM
There is a way to get this information but it requires the use of an internal property for Xnodes. No publicly facing way to do this that I could find unfortunately.
08-23-2017 02:06 PM
The only thing I can think of, is for each XNode, copy it to an empty scratch block diagram, create an indicator for it, then get the value of the indicator (then clear the BD and go to the next XNode). Note that XNodes seem to have no properties nor methods, but an XNode reference can be cast to a Node class, and from there you can get to the terminals.
08-23-2017 05:25 PM - edited 08-23-2017 05:31 PM
Thanks ! That's a neat trick that i was missing. It does not seems possible to get the exact format string this way but this will be more than enough for my application.
Implementation attached.
08-31-2018 11:35 AM
I know this was already solved a long time ago, but in the past year I've learned a lot.
The attached VI gives a nice way to get the format string from an Error Ring.