Use of the buttons

Forum Home Forums Understanding the Software Use of the buttons

This topic contains 3 replies, has 2 voices, and was last updated by Mikhail Mikhail 5 days ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #5931
    Avatar
    danielfernandes
    Participant

    Hi,
    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?
    Regards.

    #5932
    Mikhail
    Mikhail
    Moderator

    Hi,
    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.

    #5935
    Avatar
    danielfernandes
    Participant

    Thanks Mikhail,
    I understand the idea and I already got implement my solution. I am doing little error.
    Regards.

    #5937
    Mikhail
    Mikhail
    Moderator

    If you face the error and can’t fix it, ask here.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.