User input through Scheme

Forum Home Forums Understanding the Software Using Formulas User input through Scheme

Tagged: ,

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #5836
    skk2019
    Participant

    Hi,

    I am trying to set a value to a variable through Schemes. example: the user clicks a button, sets the value in Command and this value is copied to an output channel/input channel which can then be used in a formula. Is this possible?
    I am attaching an image hoping that it could explain my problem better.

    https://ibb.co/Sf1vQ5S

    Thanks in advance

    • This topic was modified 4 years, 8 months ago by skk2019.
    • This topic was modified 4 years, 8 months ago by skk2019.
    #5838
    skk2019
    Participant

    #5840
    manjey73
    Participant

    Input Channel

    Channel 450, use formula – Yes, Val(450)

    Output Channel

    Channel 450, use formula – Yes, SetVal(450, Cmd)

    Using Formulas

    Then you can use the data of this channel in other formulas
    In principle, you can use the values of any input channels in other formulas, you should only remember that the value of the channel in the database is double

    • This reply was modified 4 years, 8 months ago by manjey73.
    • This reply was modified 4 years, 8 months ago by manjey73.
    #5844
    Mikhail
    Moderator

    Hi,

    As a recap of the above post, you need to create an input channel, an output channel, and use SetVal(…) for the output channel.

    If you provide screenshot of your configuration database, we can validate it.

    #5847
    skk2019
    Participant

    Hi Mikhail,

    Thanks for your reply. I managed to make it work! I was getting the input channel wrong. Thanks 🙂

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.