Getting past the button text length limit
jabramson
Junior Member
I'm sending some text from the master to a button on a touch panel. There is a limit on how much text can be sent (128 characters I believe). Is there a way around this?
Comments
-
I'm sending some text from the master to a button on a touch panel. There is a limit on how much text can be sent (128 characters I believe). Is there a way around this?
You can append text with the ^BAT command.AMX-PI wrote:"'^BAT-<variable text address range>,<button states range>,<new text>'"
Append non-unicode text.
Syntax:
SEND_COMMAND <DEV>,"'^BAT-<vt addr range>,<button states range>,<new text>'"
Variables:
variable text address range = 1 - 4000.
button states range = 1 - 256 for multi-state buttons
(0 = All states, for General buttons 1 = Off state and 2 = On state).
new text = 1 - 50 ASCII characters.
Example:
SEND_COMMAND Panel,"'^BAT-520,1,Enter City'"
Appends the text 'Enter City' to the button's OFF state. -
I'm sending some text from the master to a button on a touch panel. There is a limit on how much text can be sent (128 characters I believe). Is there a way around this?
What's the data you're trying to send? I ask because 128 characters is A LOT of text to try to cram onto a button, so if you're running into the limit there may be a better way to design the interface to break up the data into more manageable pieces. -
Text areas are buttons too. The synopsis and actor list from a KSCAPE exceed 128 characters easily. There are legitimate uses for sending a lot of text to a "button".
-
Modules for devices such as Kaleidescape where lengthy metadata being passed all use ^BAT. It depends on where you are getting this big chunk of text from. If you have control over the source of the text, it is definitely better to divide this content into smaller sections. There are few situations where you would really want to be sending whole paragraphs to dynamically display on a touchpanel.
-
Of course if you're sending unicode to your buttons your limit is 35-40 characters so you're more likely to have to append to get over the widechars vt limit. Works like ^BAT but you need to break your vt into smaller chunks and use ^BAU."'^BAU-<variable text address range>,<button states range>,<unicode text>'"
Append Unicode Text. Same format as ^UNI.
Syntax:
SEND_COMMAND <DEV>,"'^BAU-<vt addr range>,<button states range>,<unicode text>'"
Variables:
variable text address range = 1 - 4000.
button states range = 1 - 256 for multi-state buttons
(0 = All states, for General buttons 1 = Off state and 2 = On state).
unicode text = 1 - 50 ASCII characters. Unicode characters
must be entered in Hex format.
Example:
SEND_COMMAND Panel,"'^BAU-520,1,00770062'"
Appends Unicode text '00770062' to the button's OFF state.
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
