LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Update reference in event structure

Solved!
Go to solution

Hi, 

I would really appreciate if someone helps me with next issue:

 

I have a main VI with event structure in the while loop.  

There is a case on a button press launching the subvi, which runs a motor. 

 

To stop the loop inside the subvi i pass a strict type reference to it from the main VI front panel.

The issue is that in event structure reference doesn't update, i.e. on abort button press I cannot stop the motor.

 

The strange thing that without event structure (only in while loop) it works. I try to put the button in and outside another loop: it doesn't depend on it. Without event structure - everything works.

 

Labview 2012 32bit

 

Thanks in advance,

Dirs

0 Kudos
Message 1 of 3
(2,123 Views)
Solution
Accepted by topic author Dirs

Do you have the checkbox in the event case set to Lock the Front Panel until the event case completes?

 

Is the event case running quickly, or is it stuck in that subVI?

 

Have you read Caveats and Recommendations when Using Events in LabVIEW - LabVIEW 2013 Help ?

 

 

Message 2 of 3
(2,101 Views)

Well, gotta say, that I didn't know about neither this checkbox, nor those rules. 

Thanks for these new things!

0 Kudos
Message 3 of 3
(2,075 Views)