LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple event structure

Solved!
Go to solution

Hello Everyone! 🙂

I am having a headache off this problem.


Example:
I have a value called:Numbers. If i change this value it needs to go to the event structure, and run the "Numbers: Value change"
And I have a button, if this button changes, I want it to run also "Number: Value change"

Is it possible to use more then 1 event. Like: "Numbers: Value change OR Button: Value change"

I can't seem to figure this one out. Could someone tell me this is possible, and if not, how I can solve it?


I hope someone can help me!

Thank you!
Rick

0 Kudos
Message 1 of 5
(3,705 Views)
Solution
Accepted by Rickvb

Hey Rick

 

Easy enough to implement. You just need to Add another condition to the event case:

 

events.PNG

 

Hopefully this VI Snippet will illustrate this (Simply drag this into LabVIEW - FYI it's made for 2014):

Multiple Events.png

 

Cheers

 

J

Message 2 of 5
(3,691 Views)

YES! You are my savior!
I can't believe I did not figure this out myself...
Thank you!

0 Kudos
Message 3 of 5
(3,682 Views)

No worries!

 

Cheers

 

J

0 Kudos
Message 4 of 5
(3,663 Views)

You should not have more than one evet structure in one .vi

 

You can add more event cases to the same structure, and you can have multiple events for the same event case.

 

When you edit one event case, then just click on the Add Event button when you have selected the event you what to add to the event case.

 

Edit: Too slow

0 Kudos
Message 5 of 5
(3,658 Views)