07-15-2011 12:39 PM
I think there is a bug with the Boolean Latch Mechancial Action: Latch when Released in LabVIEW 2010 when the boolean is in a cluster with a clusters as one of things in the cluster.
For example if a cluster has the following the boolean will not latch properly when the cluster is read.
1. cluster with a numeric control.
2. boolean with the Mechanical Action set to Latch.
I have attached a vi that shows this.
Instructions
Press the ok button in the vi.
Then run the vi.
Notice how the indicator goes on but the ok button stays pressed.
This does not appear to happen in LabVIEW 2009 which is why i think it is a bug. Also if you reorder the controls so the boolean control is before the cluster it will work as intended.
Can anyone else confirm that this is happening?
Solved! Go to Solution.
07-15-2011 12:49 PM - edited 07-15-2011 12:52 PM
Confirmed. Very strange. (I put the code in a while loop)
Edit: I recreated the VI from scratch and this does not happen. Now I am even more confused.
07-15-2011 01:00 PM
I agree with the bug diagnosis. 😄
07-15-2011 01:03 PM
The thing is that I can not recreate this if I create it from scratch. Could the vi be corrupted?
fdinoff, can you write this again from scratch and duplicate it?
07-15-2011 01:05 PM
Yes, when recerated in a new VI, things work fine.
When I recreate a new cluster in the same old VI, it also fails.
07-15-2011 01:10 PM
I can recreate in a new VI and still see the same buggy behavior. LV10 32-bit Win7
07-15-2011 01:12 PM - edited 07-15-2011 01:13 PM
Yes, I can recreate the bug from a blank vi.
The cluster needs to be before the Boolean. If the cluster is not before the Boolean the bug does not appear. If you right click and do reorder controls make sure the Boolean in after the cluster.
so it goes
cluster {
cluster {
numeric indicator
}
Boolean with latch
}
To recreate it all I did was take a cluster from the palate. Put a cluster in it. Put a numeric in the second cluster then put the OK button in the outer cluster. Then I put the indicator in and the bug seems reproducible to me maybe something is wrong with my LabVIEW set up?
Edit: I am also using LabVIEW 32bit on XP
07-15-2011 01:23 PM
I just tried again and can not reproduce it. I can reproduce it with the VI you attached but not when I recreate it from scratch. Using Windows 7 LV2010SP1.
Do you see this with the VI that I attached?
07-15-2011 01:25 PM
@altenbach wrote:
Yes, when recerated in a new VI, things work fine.
When I recreate a new cluster in the same old VI, it also fails.
Same here. Are you also using 2010SP1?
07-15-2011 01:25 PM
I am sniffing an issue fixed in LV10 SP1, I wonder if a forced recompile in SP1 (Ctrl-Run) fixes the issue as well.