02-10-2022 09:34 AM
@paul_cardinale wrote:
wiebe@CARYA wrote:
@rolfk wrote:
wiebe@CARYA wrote:
I'd have to look it up, but IIRC Iterator terminals coming from a traversal and directly from the loop have the same reference (IIRC exact same number, but same UID for sure), but Equal? reports FALSE. Search 1D Array also doesn't find the ref...
Are you sure that was for still valid refnums? Because if they are not valid for some reason and LabVIEW checks for equality based on the object they reference to, you get the NaN comparison issue which states that NaN (NaRefnum in this case) is always unequal to whatever else you provide including any other NaRefnum).
Yes, same UID, but not equal:
The references are different, but they sure refer to the same object (same UID, same owner, same class name).
The reference comparison is working correctly. There appears to be a problem with the UIDs.
The iteration terminal appears to be composed of at least 2 objects: There's an one object that shows an image of a square with an "i" in it, and another object which is the actual terminal that connects to a wire.
Seems to me that if that's true, there's more wrong then the UID. Why would 'an image of a square' be returned when traversing for terminals?
Anyway, I'm sure it's something quite like this. But I usually move on quickly to a solution when I run into these things.
02-10-2022 09:42 AM
@paul_cardinale wrote:
The reference comparison is working correctly. There appears to be a problem with the UIDs.
The iteration terminal appears to be composed of at least 2 objects: There's an one object that shows an image of a square with an "i" in it, and another object which is the actual terminal that connects to a wire.
Ahhhh. Thanks for the clarification. And, that explains why the refs for the two terminals defer. We often forget the inside N terminal since it is so rarely useful.
02-10-2022 12:25 PM - edited 02-10-2022 12:26 PM
@mp_db_21 wrote:
Ok, it runs with the Asynchronous Call but still has the same issue, that all panels are renamed.
I did a PDF print of my example maybe this can be used on the mobile device to have a look. Snippets might not be enough to explain the situation.
Getting back on track to the Original Poster.. I think your flags are wrong. 0xC0 should do IIRC check the examples. It sounds like you are sharing Clone Instances.
Your panel manager datatype is cluster of ( string, VI Refnum) and should be cluster of ( string, Strict VI Refnum)