From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
07-27-2006 01:54 PM
Solved! Go to Solution.
07-27-2006 02:33 PM
07-27-2006 02:38 PM
07-27-2006 02:44 PM
Adding to what Jarrod said,
Page 58 of the LV Upgrade notes says.
The
Comparison functions have the following improvements andchanges:
• The Equal? and Not Equal? comparison functions can determine
whether two VI Server references refer to the same object.
Jarrod,
Should the type cast be to a U64 in LV8?
Ben
07-27-2006 02:58 PM
As far as I know, references are still based on U32 values in 8.0. I'm speculating, but perhaps that will change once 64-bit OSes become ubiquitous.
-D
07-27-2006 03:13 PM - edited 07-27-2006 03:13 PM
The max value for a reference seems to be xFFFFFFFF, so I believe U32 is the datatype for LabVIEW 8 refnums. U64s can't be typecast into refnums or you get all zeros.
[Darren beat me to it. 🙂 ]
Message Edited by Jarrod S. on 07-27-2006 03:14 PM
07-27-2006 04:16 PM
07-28-2006 01:42 AM
07-28-2006 04:30 AM
Type casting with U32 solved the problem, thanks!
In fact, I found a different way that is to compare not the VI refnums but a Control refnum on the Front Panel of the reentrant VI.
Thus, continuing on this topic (and the opened discussion about being or not a bug), find attached a LV 8 file (LV2.zip with Main2.vi and SupportFile_Reentrant2.vi). Here, if I do NOT type cast the VI reference to the VI refnums, the Equal? result will be different. However, if I compare a Control refnum created into the subVI, it DOES work (without any need of type cast).
Regards,
Guillermo
07-29-2006 10:30 AM
hi,
can U save Ur VIs for LV 7.1 & repost pls... ?
Regards,
Partha.