Why Did a Node Have Two Attributes When Being Probed in LabVIEW?

Updated Jun 4, 2024

Issue Details

I am going thru an XML document to find all nodes that have a certain attribute using LabVIEW. However, when running the VI, I realized there is now a possibility that two attributes can be found at the same node. This is because, when probing, I can see the same value (node out datatype) but the Hex value is different. Therefore, when I make a comparison, it gives out FALSE even though the node address is same.
 
NodeComparison_NI_Probes.JPG

NodeComparison_NI_Probes 1.JPG

Solution

This issue happened because based on the original VI, instead of comparing properties of the XML documents, it actually comparing the XL refnum (memory). Even though the node is the same, the refnum for the probed nodes are different because they are two different items being opened at the same time.

Insert an Invoke Node: Get XML function to each probed node before comparing them. After adding the Invoke Node functions, the probed nodes will actually compare the attributes of the XML documents instead of comparing their refnums.

Invoke node

After this addition, when comparing the two nodes, it will give out a TRUE value.

Comparing nodes