I need help for implement a system in web page where exist two buttons (on / off) and one led.
I want that, in web page, the led was green if user press one button and red if user press off button.
My question is how modified the variable/channel when the user press the button. I already read the manual but I don’t understand how I can use the output channels and formulas for this implementation.
Can you help me?
I can help by providing the idea here on the forum. Also I can connect to your PC remotely and configure the system with you. The 2nd way is for a fee.
You should do the following:
1. Create an input channel of the Calculated discrete type. This channel stores the led state.
2. Create 2 output channels for the buttons.
3. Create a scheme to display the led and the buttons.
4. Bind the led to the input channel and bind the buttons to the output channels.
Use SetVal() formula in the output channels to set led state. More details about available functions is here.