variable text on Modero
Thomas Hayes
Junior Member
Hi all
I have a NXD-700VI that I what to send a variable text command to. The text is the result of 'what channel' is the user watching. The call I have for removing this info from the device is working fine but I can't seem to get it to display properly.
example of what I have.
- ACTIVE (FIND_STRING (DATA.TEXT, 'TVC', 1)):
{
TUNER_JUNK=REMOVE_STRING (DATA.TEXT, 'TVC', 1)
TUNER_CH=MID_STRING(DATA.TEXT, 1, 3)
send_command vtp,"'text12-channel','-',itoa("tuner_ch")"
I have a NXD-700VI that I what to send a variable text command to. The text is the result of 'what channel' is the user watching. The call I have for removing this info from the device is working fine but I can't seem to get it to display properly.
example of what I have.
- ACTIVE (FIND_STRING (DATA.TEXT, 'TVC', 1)):
{
TUNER_JUNK=REMOVE_STRING (DATA.TEXT, 'TVC', 1)
TUNER_CH=MID_STRING(DATA.TEXT, 1, 3)
send_command vtp,"'text12-channel','-',itoa("tuner_ch")"
Comments
-
You don't want to use ITOA() because tuner_ch is already a string and not an integer.Thomas Hayes wrote:send_command vtp,"'text12-channel','-',itoa("tuner_ch")"
Try this and you should get to where you want to go.:
send_command vtp,"'text12-channel-',tuner_ch" -
I am assuming the protocol string looks like this, correct me if it wrong..
DATA.TEXT = 'TVC099'DEFINE_VARIABLE CHAR TUNER_CH[3] ... ACTIVE (FIND_STRING (DATA.TEXT, 'TVC', 1)): { REMOVE_STRING (DATA.TEXT, 'TVC', 1) // FIND THE FIRST INSTANCE OF ASCII NUMERICS TUNER_CH = ITOA(ATOI(DATA.TEXT)); // SEND COMMAND TEND TO BE CASE SENSITIVE, MAKE SURE YOU USE ALL CAPS FOR 'TEXT12' SEND_COMMAND vTP,"'TEXT12-channel','-',TUNER_CH"; }Thomas Hayes wrote:Hi all
I have a NXD-700VI that I what to send a variable text command to. The text is the result of 'what channel' is the user watching. The call I have for removing this info from the device is working fine but I can't seem to get it to display properly.
example of what I have.
- ACTIVE (FIND_STRING (DATA.TEXT, 'TVC', 1)):
{
TUNER_JUNK=REMOVE_STRING (DATA.TEXT, 'TVC', 1)
TUNER_CH=MID_STRING(DATA.TEXT, 1, 3)
send_command vtp,"'text12-channel','-',itoa("tuner_ch")" -
Thanks Joe, worked fine, I had just done a cut and paste from another part of the program and and over looked that ITOA command.
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