LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Bug with Latch Mechancial Action?

Solved!
Go to solution

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?

0 Kudos
Message 1 of 28
(7,977 Views)

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.

=====================
LabVIEW 2012


0 Kudos
Message 2 of 28
(7,967 Views)

I agree with the bug diagnosis. 😄

0 Kudos
Message 3 of 28
(7,957 Views)

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?

=====================
LabVIEW 2012


0 Kudos
Message 4 of 28
(7,952 Views)

Yes, when recerated in a new VI, things work fine.

When I recreate a new cluster in the same old VI, it also fails.

0 Kudos
Message 5 of 28
(7,948 Views)

I can recreate in a new VI and still see the same buggy behavior.  LV10 32-bit Win7

0 Kudos
Message 6 of 28
(7,944 Views)

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

0 Kudos
Message 7 of 28
(7,941 Views)

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?

 

 

=====================
LabVIEW 2012


0 Kudos
Message 8 of 28
(7,932 Views)

@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?

=====================
LabVIEW 2012


0 Kudos
Message 9 of 28
(7,926 Views)

I am sniffing an issue fixed in LV10 SP1, I wonder if a forced recompile in SP1 (Ctrl-Run) fixes the issue as well.

0 Kudos
Message 10 of 28
(7,923 Views)