Options
Assigning text to a button - What am I doing wrong?
sijones
Posts: 16
I'm trying to programmatically change the text on a button on a MIO-R4. However, it never changes. Could someone please look at what I'm currently doing and let me know what I am doing wrong?
My device is defined as this:
dvR4_Volume = 10003:14:0
I've attached a screenshot of the button properties.
The code I use to assign the text is:
SEND_COMMAND dvR4_Volume, "'^TXT-1,1&2,TEST'"
Thanks for looking,
Steve
My device is defined as this:
dvR4_Volume = 10003:14:0
I've attached a screenshot of the button properties.
The code I use to assign the text is:
SEND_COMMAND dvR4_Volume, "'^TXT-1,1&2,TEST'"
Thanks for looking,
Steve
0
Comments
http://www.amxforums.com/showthread.php?10998-Virtual-Device-ports&highlight=port+number
EDIT: Hang on. Just spottted that since you're sending a command *to* the button, you should be setting the button's *Address* port and code appropriately. Channel port and code determine where feedback from the button will be returned to the device. Your device is defined as using port 14 but the button address port is set to 2.
Andy
That was it! Many thanks for you help.
Kind regards,
Steve
Instead of using 1&2 you can just use 0 which is shorthand for all states.
SEND_COMMAND dvR4_Volume, "'^TXT-1,0,TEST'"
Paul
Changing the text of a button on a Crestron system isn't hard at all...
I thought we would be over feeling superior to that system now that S# Pro exists. (You can program a system fully in S# Pro (A sandboxed C#), that's in the VS2008 IDE)
If anything it's the other way around now. (As much as that pains me)
the fundamental problem with Duet was the cost, not the support.
We're not discussing how you can do it on a crestron system. I'm just not complying with the unsolicited flaming.
Have you tried to find a copy of C# Professional 2008 so you can do S#? Not only is there a similar cost associated with obtaining it, there is the problem of availability of a product that is "End of Life".
Have you tried to get support for Cafe Duet?
I personally wouldn't consider Kenny or GregG's comments a flaming.
You get vs2008 with a vs2012 purchase or an msdn subscription. You can also develop other things with vs.
I said the problem with cafe duet is the cost, i didn't say support was good or bad.
You buy Cafe Duet from AMX, while you buy vs from microsoft. vs costs 650€. iirc cafe duet costs a multitude of that.