05-09-2014 10:44 AM
I have a button with a latch action, and I want to control the click of the button programmatically, so that when the case is true, the button is clicked and it then returns to its default value.
Can someone please tell me how to do this?
Thanks in advance!
Solved! Go to Solution.
05-09-2014 10:56 AM - edited 05-09-2014 10:57 AM
You cannot write the value property of a latching boolean. use a switching mechanical action write the value property twice ( Set/Reset) or write value (Signaling) followed by a write to the Value property to generate the one event.
05-09-2014 11:01 AM - edited 05-09-2014 11:03 AM
I just fixed my problem.
I used a flat sequence, and in it a 2 local variables of a button, in the first frame of the flat sequence, I wired a true to the button and in the next frame a false to the button. I also wired a local variable of this same button to the stop of the while loop, and now everytime the condition is met the loop stops and starts again.
I forgot to mention that I had to remove the mechanical action of the button in order for me to control it programmatically.