Home AMX User Forum NetLinx Studio

Change a button state

Hello!
I have a problem in changing a button's state depending on a variable value. Can you help me?
Thank you!

Comments

  • Post the code your trying to use...
  • it's something like this:

    send_command dvtp1_test,"'^ANI-1,1,1,0'"

    it should change the state of the button with adress1 in mage test to 1...
  • I found something like on[dvtp_test,1] and off and it's working.
    But now i want to verify let's say 10 variables value and depending on their values(1 or 0) to atomaticaly change the buttons states continouslly(the variables values can also be changed from another third party device).
    Thank you!
  • viningvining Posts: 4,368
    It's easier to use a multi-state bar graph w/ 10 states and use send_levels with the variable equalling the desired state. So if the variable equals 1 it will display state 1. Make sure level range equals the number of state. 10 states level range = 1-10.
  • now another problem :) is there any command like..."mod" or "div"
  • Are you refering to Modulo? If so you and use either MOD or % to get the remainder after division.
Sign In or Register to comment.