08-21-2012 02:20 PM
Same code. Into LV2010, the answer is TRUE and in LV2012, the answer is FALSE.
This cause me trouble.
Solved! Go to Solution.
08-21-2012 02:54 PM
It would be better to attach the actual VI's or use the Code Capture Tool. The built-in LabVIEW snippet maker mangles references.
In both cases, you are indexing out the 0th control. Perhaps when the VI was recompiled for LV 2012, the order of the controls was changed and the 0th control is no longer the zeroth.
Instead of using Index Array, compare your reference to the entire array of controls to get an array of booleans. See if one of the other indices comes up as a match.
08-21-2012 02:55 PM - edited 08-21-2012 02:56 PM
Ignore this.
08-21-2012 03:07 PM
Sorry for the confusion. Even this example give me different answer into LV2010 and LV2012
Please, try this attachments
08-21-2012 04:04 PM - edited 08-21-2012 04:05 PM
LabVIEW 2011 seems to behave just like LabVIEW 2012.
I found this thread. http://forums.ni.com/t5/LabVIEW/Control-reference-bugs-LV2011/m-p/1893991 which seems to discuss the same issue regarding control references and typedefs.
Also:
It looks like CAR# 323101.
08-21-2012 04:59 PM - edited 08-21-2012 05:00 PM
08-22-2012 06:39 AM - edited 08-22-2012 06:41 AM
The CtrlRef Value form Event Structure is equal to the reference of Numeric Value.
Example in LV2012
08-22-2012 07:59 AM - edited 08-22-2012 08:00 AM
Do you think this can be a workaround ?
08-22-2012 10:19 AM
That should work as long as you have unique labels for all of your controls. No unlabeled controls and no controls that have the same label such as two called "Temperature".
08-22-2012 10:21 AM
Thank you