Variable Text and Axcess
ryanww
Junior Member
I am just curious how to use variable text. I have a Axcent 3 and a CA10. I know I can assign buttons to have a variable text code, but cannot find any information online on how to program it. Is it something like a redirect string, or send string to it?
Any help would be appreciated.
Thanks, Ryan
Any help would be appreciated.
Thanks, Ryan
Comments
-
Go to the AMX website and find the manual for your touch panel. (tech section, tech docs, instruction manuals or archived manuals as appropriate There will be a section about "programming" which will describe the send_commands, I think that almost all commands for two-way panels in G3 firmware can be applied to almost all TPs. G4 panels have some new stuff.
You can also find this info using the software history tool in Studio -- it's probably good to get real familiar with this. Even though I know this, my first reference is typically f a PDF file. -
Wow, I looked all over that manual and never saw it before. I guess I just managed to skip that section somehow. Thanks!
-
So I am trying to send the current Date to a button using the variable text. I have the button assigned to variable text address 1 on device 1 and then am using the following code:
SEND_COMMAND TP,"'!T?,1,'(DATE)"
but it is not sending anything to the button. It is just blank. I have a feeling that (DATE) isn't really a string output. I know that I can use it in an if statment which I have done with time.
Thanks, Ryan -
Software History
The Software History listings within NetLinx Studio are invaluable
as they list the technical details for every hardware device along with the
specific information and protocol for sending commands and strings. -
Well I took the actuall variable text code straight from the CA10 manual available online. I am more in question over sending the date to the variable text button.
Thanks, Ryan -
SEND_COMMAND TP,"'!T?,1,'(DATE)"
First thing, your string expression "'!T?,1,'(DATE)" is faulty. You have an extra single quote mark following the second comma. This works:
SEND_COMMAND TP,"'!T?,1,DATE"
"DATE" is a keyword for an intrinsic function which returns a string. For most cases, you can use the "DATE" function in an expression as you would use a variable. Of course, you ca not assign a value to it.
In Netlinx Studio, you can access help for a keyword by highlighting the keyword in your code and hitting F1. Try this with "DATE"
Also, in your command, "TP" must hold the value of the device number of your touch panel, perhaps128.
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