Disable / Hide toggle

Forum Home Forums Understanding the Software Disable / Hide toggle

  • This topic has 4 replies, 2 voices, and was last updated 4 years ago by Luca.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #6666
    Luca
    Participant

    How to disable/enable or hide/show a Toggle depending of the content of an input channel?
    I tried to put a dinamic image over the toggle but no success.

    Thanks

    #6668
    Mikhail
    Moderator

    You can cancel the command from a toggle depending on a channel value, but you can’t hide it.

    #6669
    Luca
    Participant

    Please Mikhail can you provide an example how to cancel a command from a toggle depending on a channel value?
    Thank you

    #6672
    Mikhail
    Moderator

    Set the formula of the output channel like the example below.

    Val(101) >= 100 && Stat(101) > 0 ? Cmd : double.NaN

    If the formula returns double.NaN, command is cancelled. And you will see an appropriate message in the Server log file.

    #6688
    Luca
    Participant

    Thank you Mikhail, it works fine.

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