Command for Showing a Button State
TurnipTruck
Junior Member
Greetings,
I have a 6-state button on G4 panels. Is there a send_command to tell the button which state to show from code?
Thanks!
I have a 6-state button on G4 panels. Is there a send_command to tell the button which state to show from code?
Thanks!
Comments
-
Studio -> Tools -> Software History -> MVP8400 -> find "^ANI"TurnipTruck wrote:Greetings,
I have a 6-state button on G4 panels. Is there a send_command to tell the button which state to show from code?
Thanks!
"'^ANI-<variable text address range>,<start state>,<end state>,<time>'" -
Yes, I believe the only way to do it is using the ^ANI command. So to just go to the fifth state you would write:
send_command ui,"'^ANI-500,5,5,1'""'^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. -
You might also think about using a level to control the button.
Jeff -
If you make the button a multi state bar graph with states 1-6, range low = 1 & range high = 6 you can just send_level 1-6 to set the desired state. The ANI command work too but the level thing is a little easier to work.
-
Spire_Jeff wrote:You might also think about using a level to control the button.
Jeff
That won't work with a multi-state general button will it?
Paul -
It has to be a multi-state bargraph, not general. You won't even get the ability to assign it a level in a multi-state general. But there is functionally no other difference, so there is no reason not to re-define it I am aware of.a_riot42 wrote:That won't work with a multi-state general button will it?
Paul -
I am using a six state button with the ^ANI command. Leaving off the time parameter of the command makes thestate static until another command requests a new state. This method works well because I am providing feedback of signal strength from an RF receiver which reports its signal level as 1-6.
Thaks for all of your suggestions.
Categories
- All Categories
- 2.5K AMX General Discussion
- 922 AMX Technical Discussion
- 514 AMX Hardware
- 502 AMX Control Products
- 3 AMX Video Distribution Products
- 9 AMX Networked AV (SVSI) Products
- AMX Workspace & Collaboration Products
- 3.4K AMX Software
- 151 AMX Resource Management Suite Software
- 386 AMX Design Tools
- 2.4K NetLinx Studio
- 135 Duet/Cafe Duet
- 248 NetLinx Modules & Duet Modules
- 57 AMX RPM Forum
- 228 MODPEDIA - The Public Repository of Modules for Everyone
- 943 AMX Specialty Forums
- 2.6K AMXForums Archive
- 2.6K AMXForums Archive Threads
- 1.5K AMX Hardware
- 432 AMX Applications and Solutions
- 249 Residential Forum
- 182 Tips and Tricks
- 146 AMX Website/Forums
