LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Controlling event with two controls

Solved!
Go to solution

Here's what I have.

 

I have two separate Time loops. Inside each timed loop I have an event structure. Each even structure is trigger by pressing a button each. This works just fine.

 

However, I'd like to add a third button, that executes both event structures. I want to do this without creating additional events in each structure. Is this possible to somehow wire this third button to the other two and trigger the two based off the action of the third? I'm having trouble getting that to work.

 

Thanks

Message Edited by crazyjay on 02-24-2010 09:15 PM
0 Kudos
Message 1 of 10
(3,642 Views)
It sounds like your architecture is a bit backwards. Typically, you would have a single event structure and you would typically not have any sort of loops inside an event.
0 Kudos
Message 2 of 10
(3,639 Views)

I see,

 

Well, I was reading the LabVIEW help and it say's you should usually place events inside of loop structures, which is what I did here.

0 Kudos
Message 3 of 10
(3,635 Views)
Inside an ordinary while loop. Inside a timed loop does not make any sense to me. The help also says to avoid multiple event structures.
0 Kudos
Message 4 of 10
(3,626 Views)
So what would be the proper way to create multiple threads each with their own events?
0 Kudos
Message 5 of 10
(3,618 Views)
With a single event structure, you could have an event for this third button and write to the Value(Signaling) property of the other buttons. This will cause the other two events to execute.
0 Kudos
Message 6 of 10
(3,613 Views)
Solution
Accepted by topic author crazyjay
0 Kudos
Message 7 of 10
(3,607 Views)

And somewhere i read not use this "Value signalling" property for triggering the event structure.

 

I dont remeber who was the author for that thread.....

Regards
Guru (CLA)
0 Kudos
Message 8 of 10
(3,589 Views)

I don't know who would have said that.  That is the whole point of the Value(signalling) property node.

 

If you find the thread, link to it so we can straighten it out.

0 Kudos
Message 9 of 10
(3,586 Views)

I see,

 

Thanks

 

This does it for me.

0 Kudos
Message 10 of 10
(3,560 Views)