You can make the digital gauge have a transparent background, then place it on top of your button...
- Chip
toggle quoted message
Show quoted text
--- In Crestron@..., "jmacd2918" <jmacd2918@...> wrote:
The only reason I'm trying to get ASCI text out of the analog value is so that I can display the value as indirect text, leaving me with a digital join to use to alter the appearance of the button. Basically, I'm trying to display my lamp hours on the touch panel while using an analog compare to drive a signal high when I hit 1800 hours. I use that signal to make the displayed lamp hours go red on the touch panel.
If I do a digital guage, I don't that digital available to make the button go high and change colors. I'm guessing I can do this through modes, but I don't really understand that either.
--- In Crestron@..., "Chip" <cfm@> wrote:
For MSPs - while there are other uses, it is primarily handy if you have a touch panel that ever goes offline in the case of Ethernet, or any wireless panel, or Xpanels. By putting a signal onto an MSP as well as a touch panel definition, you're ensuring that if/when the touch panel comes back online, the last string that was sent to it will be refreshed. (Even if that string was sent while the panel was offline)
Many touch panels include a permanent string size definition in SIMPL Windows now, but since there are also many that *don't*, I wind up using MSPs anyway by default.
Now - if you have a touch panel that is awake and online and you believe you're sending text to it and that text doesn't appear - then you have other issues. Time to fire up debugger and really focus on what is going to that serial join...
Analog to Serial - this symbol expects you to provide individual *characters* to build a string. If you have an analog signal that can go from 0 to anything larger than 9 and you're trying to display the value on a touch panel - then what you have won't do it. (Not to mention that an analog value in the range 0-9 needs to be transposed to the ASCII chart's equivalent value in order for even a single character to appear as text)
Easiest solution here, if you're just trying to display a simple number, is to draw a Digital Gauge object on your page and just supply the analog value to the touch panel.
If you absolutely want that value displayed as text via serial join, you need to do a conversion. Quickest way is using S+, where a one-line S+ program can use the S+ function "ITOA" to convert an analog value to ASCII text.
There are other approaches, depending on how much time you want to spend on it. For something like projector lamp hours that won't change any more often than once an hour, I'd just go with the S+ approach. (Assuming you can't use the digital gauge for some reason)
- Chip
--- In Crestron@..., "jmacd2918" <jmacd2918@> wrote:
I'm having issues/questions with a few serial items in a current project, my first "big" one.
First one, "make string permanent". Can someone give me a better explanation than what is on Crestron tutorials? Where would one use this? I'm mainly concerned with feedback making it to the touch panel/xpanel, some serial feedback seems to make it, some doesn't. Could the transient nature of serial be the culprit? Should I, as a matter of practice, make all serial feedback to the touch panel permanent?
Second one, analog to serial. I've never used this symbol before, so I'm not sure if I'm doing this correct. I'm trying to convert analog projector lamp hours to serial because I'm hoping to display indirect text and use a digital signal to change indicator color when lamp hours reach a certain threshold (that part works). What doesn't work is the analog to serial conversion.
Here is what I have:
<trig>1
<ain1>my lamp hours analog (this same signal is working elsewhere)
<out$> out to touchpanel (I've tried it with and without msp)
<format>256d
<string1>blank (also tried ")
When I look at the $out signal in debugger, all I get is \x00.
I'm thinking maybe I need a different format or trigger?? Any ideas? Sorry if I'm missing something simpl here (lame pun intended).
Thanks
-Jeff