LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

one stop button for diveren event in event case

Solved!
Go to solution

Hello,
i have some problems with buttoms. I use the same buttoms for each event in event case but i dont know how to realize it.
now it work with 50% chanсe. When i star solution#1 (Dopller effect->Solution#1) a than after that Solution#2 butoms stop working as it must be.

i think that problem in that cases. Thank you.
Новый точечный рисунок.jpg

0 Kudos
Message 1 of 3
(2,695 Views)

Generally you should have only one event structure in a VI. OTherwise you run into exactly the problems you have encountered.

 

Look at the Producer/Consumer (Events) design pattern which comes with LabVIEW. It shows a method of having a single loop with one event structure to respond to all front panel events. Then it sends messages via queues to other loops where the actions take place.

 

Lynn 

Message 2 of 3
(2,692 Views)
Solution
Accepted by topic author mbsto
if you could not employ the method that johnsold indicate
you can use this trick that use some other buttons for other event loop hide them and also use value signal property node for these buttons in one of the event loop(except the button that fire this event ) in this case when you push related button of this loop all event will be work
but extremely it is better to change your code in way that johnsold told
Message 3 of 3
(2,679 Views)