08-29-2012 03:54 PM
Hi All, I have 6 buttons "Read" in front panel, each of them works seperately. In the block diagram, each button is inside an event.
Now if I want to create a new button, that by clicking it, all these 6 buttons can be triggered, how can I do it?
The attached picture shows what I want to do. Thanks for advising!
Solved! Go to Solution.
08-29-2012 04:00 PM
Define user events related to your buttons. Each of your current event cases would be modified to include the user event as well. When your magic button is pressed simply generate the appropriate user events for the other buttons you want to active.
08-29-2012 04:04 PM
I'm guessing you probably don't have a Producer-Consumer architecture or a Queued State machine, so you're probably actually doing the reading in the event case for the button. I'm also assuming you're using the buttons with the standard mechanical Latch action, which means you can't use the Value (Signaling) property. Otherwise, you could simply have the Value (Signaling) property for the other buttons, and write a True to them. So, your options are:
08-29-2012 04:06 PM
Here is a simple example to show how it is done using the Vlaue(signaling) property node to cause an event for each other button.
08-29-2012 04:14 PM - edited 08-29-2012 04:14 PM
@tbob wrote:
Here is a simple example to show how it is done using the Vlaue(signaling) property node to cause an event for each other button.
The value signaling works in the same way irrespective of the input whether it is true or false why is this behaviour?. Can you or anyone please explain any significance behind this?
08-29-2012 04:16 PM
@P Anand wrote:
@tbob wrote:
Here is a simple example to show how it is done using the Vlaue(signaling) property node to cause an event for each other button.
The value signaling works in the same way irrespective of the input whether it is true or false why is this behaviour?. Can you or anyone please explain any significance behind this?
Because you did change the value. It does not verify that the value is actually different, just that a value was written to it.
08-29-2012 04:16 PM
@P Anand wrote:
@tbob wrote:
Here is a simple example to show how it is done using the Vlaue(signaling) property node to cause an event for each other button.
The value signaling works in the same way irrespective of the input whether it is true or false why is this behaviour?. Can you or anyone please explain any significance behind this?
Why would you expect it to work differently? The event case provide the "NewVal" and the "OldVal" to use as a comparison.
08-29-2012 04:25 PM
@Mark_Yedinak wrote:
@P Anand wrote:
@tbob wrote:
Here is a simple example to show how it is done using the Vlaue(signaling) property node to cause an event for each other button.
The value signaling works in the same way irrespective of the input whether it is true or false why is this behaviour?. Can you or anyone please explain any significance behind this?
Because you did change the value. It does not verify that the value is actually different, just that a value was written to it.
Yes it is not checking the input thats why I am asking why this property is kept like this?. If you take the Re-initialize to default method it doesn't need take an input but here we need to wire the value but changing that doesn't make any difference.
08-29-2012 04:26 PM
@smercurio_fc wrote:
@P Anand wrote:
@tbob wrote:
Here is a simple example to show how it is done using the Vlaue(signaling) property node to cause an event for each other button.
The value signaling works in the same way irrespective of the input whether it is true or false why is this behaviour?. Can you or anyone please explain any significance behind this?
Why would you expect it to work differently? The event case provide the "NewVal" and the "OldVal" to use as a comparison.
Yes I got it but am just trying to understand why an input required for that. Does my question make sense?
08-29-2012 04:29 PM
To be honest, not really. The function is to write a value and generate a signaling event. It's not "only write the value if it changed".