04-16-2013 04:35 PM
04-17-2013 10:49 AM
Hi Kevin,
While you cannot read the elements within the error cluster directly in the Mathscript Node, I have a couple comments that will likely help.
First, check out the link below, specifically sections 5 “Debugging Your Code Within the MathScript Node” and 6 “What Does This Yellow “Exclamation Point Mean?” This describes the functionality of the error cluster you wire into the error input.
http://www.ni.com/white-paper/3256/
Second, I think your best bet, if you would like to actually use the information contained in the error cluster, is to simply unbundle the error cluster and pass the individual items into the Mathscript Node. The error cluster contains a status (Boolean), code (integer), and source (string). Use the Unbundle function to extract one or more of these and pass them into the Mathscript node individually.
http://zone.ni.com/reference/en-XX/help/371361J-01/glang/unbundle/
http://digital.ni.com/public.nsf/allkb/BF72229C53F7633386256EDD0069331B?OpenDocument
04-17-2013 12:15 PM
@Ryan-C wrote:
..."you cannot read the elements within the error cluster directly in the Mathscript Node"...
Thanks Ryan,
I could not find a way to do it either, however, I was currious if anybody new of a way to access the ErrorIn and/or the ErrorOut Clusters of the Mathscript Node from within the node itself.
Your other comments, do not relate to the the posted topic.
Kevin.
PS. Sorry, my original post should have bee titled "Mathscript error in and out clusters"
04-18-2013 09:04 PM
While it isn't possible to directly access the error in/out terminals on a MathScript node, you can connect an error cluster to manually created terminals on the node, then you can access the cluster elements from inside the node: