Channel Code
George Krietsepis
Junior Member
Hi all,
I need to have the possibility to change the channel code of a touch panel button. I mean to have a channel code of 50 for example and then to change that to channel code of 0 and the opposite
Can I do that through NetLinx Studio with a send_command ?
George
I need to have the possibility to change the channel code of a touch panel button. I mean to have a channel code of 50 for example and then to change that to channel code of 0 and the opposite
Can I do that through NetLinx Studio with a send_command ?
George
Comments
-
George Krietsepis wrote:Hi all,
I need to have the possibility to change the channel code of a touch panel button. I mean to have a channel code of 50 for example and then to change that to channel code of 0 and the opposite
Can I do that through NetLinx Studio with a send_command ?
George
First of all, you can't have a button with channel code 0. 0 is the code that is used to check for any channel on a device, e.g. BUTTON_EVENT[dvTP,0] will keep track of any button push.
Secondly, you can't change the channel of a button. There are a lot of things you can change about a button but channel isn't one of them. Chances are good that what you're trying to do can be accomplished another way via programming, e.g. changing a flag in your code and having ONE button that does different things depending on what the flag is. -
George, since you want to change the channel code to 0 I am assuming you want to enable and then disable the use of a button.
This touch panel command will do that.
"'^ENA-<variable text address range>,<command value>'"
Enable or disable buttons with a set variable text range.
Syntax:
SEND_COMMAND <DEV>,"'^ENA-<vt addr range>,<command value>'"
Variables:
variable text address range = 1 - 4000.
command value = (0= disable, 1= enable).
Example:
SEND_COMMAND Panel,"'^ENA-500.504&510.515,0'"
Disables button pushes on buttons with variable text
range 500-504 & 510-515.
Jeff B -
Jeff,
this what I need to do. This is a good idea.
Thanks a lot.
George -
^SHO is similar, but can actually hide the button completely. Once hidden, it can no longer be pressed.
-
Dave,
this is a good idea too but I need this buton not to be hidden.
George -
I don't know how well this would work for what you're doing, but I've also had good luck disabling buttons by popping up a transparent popup over the buttons I didn't want working.
I've only ever used it on systems with projectors, where I've automated it so much that the user never consciously controls the projector. As a result, I had to find a way to prevent them from trying to start up the system immediately after shutting down the system, giving the projector time to cool down. I created a transparent popup page with a 120 second timeout, and then I put in the code to pop it off if the projector sends a message saying its all cooled down.
I dont know what you're doing and it seems like you've already gotten much more precise advice, but this was a very easy solution to my problem, and the buttons never get stuck in the off position because of the timeout on the page.
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