Showing results for 
Search instead for 
Did you mean: 

I want the Boolean to work once every second.

I want if I push the "Read the Data" boolean, this "Read the Data" program work once per one second. and If I push the end button, Read the Data program is stop ( it must not mean stopping entirety program!) And if I push other boolean while the program reads the data, I want to operation other program at the same time.
0 Kudos
Message 11 of 12

So create a switch with switch when released action so you can press it on and press it off.


If you want separate start and stop buttons, then carry a boolean wire though with a shift register which holds the on/off state.  When Start is pressed, feed the shift register with a T constant. When Stop is pressed, feed the shift register with a F constant.  When a button isn't pressed, it just passes through the current state.

0 Kudos
Message 12 of 12