Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69177

EVENT structure remembers events from previous call?

$
0
0

LV2013, Win7

 

My customer has complained about this misbehavior, and I made a basic VI to show it.  No one noticed this behavior in LV 7, 8, or 2010.

 

Given a SubVI with a RETURN button, that is set to SHOW FP WHEN CALLED and CLOSE IF ORIGINALLY CLOSED, then we have what seems to be a misbehavior by LabVIEW.

 

 

 

Event Sticks Around.PNG

 

 

The SUBVI is normally closed.  If you run the TEST vi and click the DO IT button, the subVI comes up.

 

If you click the RETURN button TWICE, during that five-sec interval, the button sticks in the DOWN position.  I understand that.

 

When the timer expires, the window closes.  I understand that.

 

If you click the DO IT button again, the window comes up again.  I understand that.

 

But the window will close BY ITSELF, after another 5 seconds !  I DO NOT understand that.

 

Even if bringing up the window acts to pop out the button, that cannot cause termination, because termination is caused by a VALUE CHANGED event, changing to TRUE!    But it does.

 

I tried limiting the events in the queue to 1, no change in behavior.

 

Attached is a test vehicle, try it yourself.

 

Is this a bug in my thinking, or a bug in LabVIEW?

 

 


Viewing all articles
Browse latest Browse all 69177

Trending Articles