Showing Level via series of button states
Jeff
Junior Member
I have several instances where I would like to show a level via several button states. For example, I have a battery indicator that has 5 bars in it, and I would like to have each bar light up at 20% battery life, instead of having a true level. Is there a way to accomplish this easily?
I know I can set the battery to a level, read the level in code, and send the button state I want back to the panel, but I was hoping for something that could happen within my panel entirely. If this isn't possible, thats fine, I'm just curious.
J
I know I can set the battery to a level, read the level in code, and send the button state I want back to the panel, but I was hoping for something that could happen within my panel entirely. If this isn't possible, thats fine, I'm just curious.
J
Comments
-
The button state thing is a bit of a quandry. You really can tell a button to go to a particular state. It's still either on or off in code. If you send the 'on' to a button it will go through the different states (for animations)
To do what you wish you'll need to make a multi-state bar graph and send your levels there. Put your different graphics on each state. -
Dude, I had no idea there was such a thing as a multi state bargraph . . . but there it is.
Thanks a ton, that does exactly what I wanted.
J
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