Home AMX User Forum NetLinx Studio

How can I change The State of a Multistate Button?

Hi
How can I change the state of a multistate button? I didn't find the istruction onthe manual...
Thanks a lot
Alex

Comments

  • Send it an ^ANI command.

    From the AMX-PI:
    BUTTON COMMANDS:

    (Note: A device must first be defined in the NetLinx programming language with values

    for the Device: Port: System (in all programming examples - Panel is used in

    place of these values)).

    (Note: Vt addr range = Variable text address range)

    "'^ANI-<variable text address range>,<start state>,<end state>,<time>'"
    Run a button animation. Time is in 1/10 seconds and is optional.
    0 for state means current state.

    Syntax:

    SEND_COMMAND <DEV>,"'^ANI-<vt addr range>,<start state>,<end state>,<time>'"

    Variables:

    variable text address range = 1 - 4000.
    start state = Beginning of button state (0= current state).
    end state = End of button state.
    time = In 1/10 second intervals.

    Example:

    SEND_COMMAND Panel,"'^ANI-500,1,25,100'"
    Runs a button animation at text range 500 from state 1 to
    state 25 for 10 second.
Sign In or Register to comment.