LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Different References to same Object

Hello!
 
I have noticed, that one can create different references to the same object on the front panel. The attached vi demonstrates that, by having one reference created by a reference node, the other be getting references to all object on the frontpanel. As the example shows (by type-casting to U32-numbers) the references are not equal, however they point to the same object. (That they indeed point to the same object can be checked, by using either reference to change the objects properties, so one sees it alwas adresse the string named "test")
 
The question finally is: If one has different references how can one check, if the point to the same object?
 
Thank you for any idea,
 
 Normann Plaß
0 Kudos
Message 1 of 2
(2,729 Views)
The problem is with the Panel>Controls[] property. For the long answer (plus a VI which will allow you to compare), you can go here.
Another answer would be to upgrade to 8.0, where the Equal node compares properly.

___________________
Try to take over the world!
0 Kudos
Message 2 of 2
(2,717 Views)