Moving Dial
jackygross
Junior Member
I'm trying to animate a dial when the respective arrows are pressed..up, down, left, right
I created a multi state general button with 5 states. main, up, down, right, left
In netlinx im trying to see that dial change but nothing happens....HELP PLEASE
here's my code for the up button. Note that Navball is the name of the button in TPD4 and 99 its address code
CASE 45:
{
SEND_COMMAND Navball, "'^ANI-99,2,2,0'"
}
I created a multi state general button with 5 states. main, up, down, right, left
In netlinx im trying to see that dial change but nothing happens....HELP PLEASE
here's my code for the up button. Note that Navball is the name of the button in TPD4 and 99 its address code
CASE 45:
{
SEND_COMMAND Navball, "'^ANI-99,2,2,0'"
}
Comments
-
You need to send the command to the touch panel device, not the button name. Make sure the port you are send it to is the same port defined in TPD4.
Also, if you only have 5 states, you should probably be using a level to control the dial. You could then just send a level to the button to go to the appropriate graphic. (If you feel really ambitious, you could write code to move from the current state to the appropriate state 1 step at a time.) Make sure the button is setup to only have 5 states and the high value is 5 and the low is 1.
Jeff -
hmmm....
I did change the name to the TP and still dont see any movement
The value I'm giving the button is the address code right ????? -
Try:
SEND_COMMAND dvTP,"'^ANI-99,0,5,1'"
followed by
SEND_COMMAND dvTP,"'^ANI-99,0,2,1'"
I would start by sending these commands using the diagnostics Control a Device utility. This will eliminate any other code problems and let you see if the command is actually doing what you want.
Jeff -
iT DOES WORK
It works !!
now I need to make it a momentary push...since it stays on the position that is pressed, it will keep scrolling forever!!!
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