Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
- Crestron
- Messages
Search
Re: OT: need a new hobby?
Love new ideas, but ... "this entire system works seamlessly..."
toggle quoted message
Show quoted text
--- In Crestron@..., Joseph Vossen <jkv@...> wrote:
|
Re: String Parsing
Here: //Based on the sample data you've given I'm making the assumption that you'll get all the names you're after in a single query. This code will parse up to 10 names and those names would be overwritten with the next query.
#DEFINE_CONSTANT maxnames 10 #DEFINE_CONSTANT maxlength 40 Digital_Input Get_Names; Buffer_Input RxData$[1000]; String_Output Actor$[maxnames][maxlength]; //Define an output array of 10 outputs, each up to 40 bytes in length Integer i; //Define a global integer as the index Push Get_Names { i = 1; //reset index to 1 when new request for name is sent. } Change RxData$ { Integer semaphore; //Define a semaphore to prevent re-entrancy String sTemp[100], sDump[50]; While(semaphore = 0) { Semaphore = 1; sTemp = Gather("/>", RxData$); //this will remove each line from the buffer to be parsed individually IF(FIND("person job=\x22Actor\x22 name=\x22",sTemp)) { IF(i >= 1 && < maxnames){i = i + 1}; //increment index value if between 2 and 9 //parse as usual: sDump = remove("person job=\x22Actor\x22 name=\x22", sTemp); Actor1[i]=left(sTemp, find("/>", sTemp)-3); //assign the parsed string to the output specified by the index [i] Semaphore = 0; } } } You'll have to pardon any syntax errors as my iPad email app is not the best S+ text editor environment. Hope that makes sense for you. This could also be done using a for loop but I thought you might understand this method more easily. You could also parse the name with a single mid statement and have no need to define sDump and save some memory but thats really irrelevant. Ex. Actor$[i] = mid(sTemp, find("name=",sTemp) + 7,Len(sTemp) - ((find("/>", sTemp)-3) - (find("name=",sTemp))); //I'm almost sure to have missed a parenthesis but you get the idea. -Neil Dorin On Sep 16, 2012, at 10:16 PM, "chrmac68" <chrmac68@...> wrote: Can you possibly give me an example of how to do this. [Non-text portions of this message have been removed] |
Re: apple tv control methods
I didn't want to go off and make changes as he asked for feedback. So many people have asked about control of ATV2 that we should rather get something that we could possibly all use...
toggle quoted message
Show quoted text
--- In Crestron@..., "mrez@..." <mrez@...> wrote:
|
TPMC-4SMFD hard button feedback
Hi Guys,
I am having a play with our campuses first TPMC-4SMFD and have gotten stuck on the feedback for the LED hardbuttons. I have limited experience with Crestron touch panels as all we have on campus TPSG-TPI's with different manufacturer touch panels so any help would be gladly appreciated. The result I am after is to get the LED hardbuttons to illuminate individually dependant on feedback. Currently all i'm getting is all hard buttons illuminated constantly whilst the panel is awake :(. I presume this can be done as it mentions in a crestron document that the buttons can operate individually or globally. However I cannot find where this is configured. Additionally I have not made this a core-3ui project as I need to keep a similar look to our existing user interfaces. Does it need to be a core-3ui project to get the outcome I want? Thanks in advance for any help you can offer. Cheers, Ihaia |
Re: String Parsing
chrmac68
Can you possibly give me an example of how to do this.
toggle quoted message
Show quoted text
I have tried so many ways all without success. Thanks --- In Crestron@..., Neil Dorin <neildorin@...> wrote:
|
Re: Lifesize stops communicating
I realize this is an old thread, but I'm wondering if other people are still having issues controlling Lifesize systems reliably. I have a customer that has a Lifesize Express 220 and claims that twice in the past month the control system has stopped communicating with the Lifesize system. The customer has stated that in order to fix the issue they unplugged the usb to serial dongle and then plugged it back in and everything worked again. The usb to serial dongle is one that was on Lifesize's approved list. I'm just trying to find out if anyone else has had similar issues and how they have resolved/worked around them.
toggle quoted message
Show quoted text
Thanks! --- In Crestron@..., "wretaudio" <wretaudio@...> wrote:
|
Re: String Parsing
You're overwriting Actor1$ each time you parse a name. You need an integer variable to track how many names you've already parsed and use that as the index of the string output array you want to assign it to.
-Neil Dorin On 2012-09-16, at 6:09 PM, "Chris" <chrmac68@...> wrote: Sorry posted this in wrong place... [Non-text portions of this message have been removed] |
String Parsing
Chris
Sorry posted this in wrong place...
maybe im missing something here. in s+ <person job="Actor" name="Brandon Lee" /> <person job="Actor" name="Rochelle Davis" /> <person job="Actor" name="Jon Thompson" /> im doing this: IF(FIND("person job=\x22Actor\x22 name=\x22",sTemp)) { sDump = remove("person job=\x22Actor\x22 name=\x22", sTemp); Actor1$=left(sTemp, find("/>", sTemp)-3); } My output is always Jon Thompson. How can i get it to pull out 1 at a time and assign to Actor1$ Actor2$ etc. Thanks |
string parsing
Chris
hey all,
maybe im missing something here. in s+ <person job="Actor" name="Brandon Lee" /> <person job="Actor" name="Rochelle Davis" /> <person job="Actor" name="Jon Thompson" /> im doing this: IF(FIND("person job=\x22Actor\x22 name=\x22",sTemp)) { sDump = remove("person job=\x22Actor\x22 name=\x22", sTemp); Actor1$=left(sTemp, find("/>", sTemp)-3); } My output is always Jon Thompson. How can i get it to pull out 1 at a time and assign to Actor1$ Actor2$ etc. Thanks |
Re: Tstat change 74,3 degrees to 74
I will try this when I get home.
toggle quoted message
Show quoted text
Thanks --- In Crestron@..., Geoffrey Reynolds <greynlds@...> wrote:
|
Re: Tstat change 74,3 degrees to 74
Another way to deal with rounding is to add 5 to the number before sending
toggle quoted message
Show quoted text
it through the DIVMOD. For example, 740-744 would become 745-749 and end up as 74, while 745-749 would become 750-754 and end up as 75. Geoff On Sun, Sep 16, 2012 at 6:01 PM, Jon Spackman <fueler1@...> wrote:
** |
Re: T+A equipment control
Thanks Peter! I'll give this a try! Harold
toggle quoted message
Show quoted text
--- In Crestron@..., "peterjablonicky" <peterjablonicky@...> wrote:
|
Re: Degree symbol ASCII on TP (non-core 3)
Heath Volmer
There you go! Thanks Chris
I got 248 both from Crestron's ASCII chart and from various google searches. At that point, I didn't think of looking at character map, figuring that something was wrong with the font / mobile pro. Heath On Sun, Sep 16, 2012 at 2:51 PM, mrmondegreen <chrisw@...>wrote: ** [Non-text portions of this message have been removed] |
Re: apple tv control methods
Chris
I built a module for the AppleTv box as well and am seeing the same issue with feedback. When i look at the xml file that is sent back it shows it the same way. Not sure its the module and not related to the AppleTV itself. I am working on adding more feedback and have added as many shortcut keys as i have verified are working. Up to about 10 right now.
toggle quoted message
Show quoted text
--- In Crestron@..., "mrez@..." <mrez@...> wrote:
|
Re: Degree symbol ASCII on TP (non-core 3)
mrmondegreen
Try ASCII 176 (decimal) for the degree symbol, that's the standard mapping in most GUI-era font sets (e.g. Arial).
toggle quoted message
Show quoted text
When in doubt, check the codes in Character Map, which will show you the actual font-level character mappings. It looks like Crestron's ASCII conversion chart in SIMPL help needs to be updated, as it includes line and fill characters which haven't been in wide-spread use for quite some time. I'm assuming that's where you got the 248 from? Chris Welsh --- In Crestron@..., Heath Volmer <hvolmer@...> wrote:
|
Re: Tstat change 74,3 degrees to 74
and if you do want to round, no S+ needed. It isn't that difficut to do 'SIMPL' rounding. Take the remainder from the divmod though an acomp, If greater than 5 add one to the quotient (abufs to select a 0 or 1 addend -> an asum) and use an aos to tigger the sequence.
toggle quoted message
Show quoted text
--- In Crestron@..., Heath Volmer <hvolmer@...> wrote:
|
Re: T+A equipment control
T+A have a Crestron module:
toggle quoted message
Show quoted text
Is not that enough? --- In Crestron@..., "Harold" <hlaudio@...> wrote:
|
Re: Come On Crestron WTF - 3 hrs to change an IR file!!!!!
Doug Guth
I had almost the exact same thing happen to me last month. But since I'm
not a Master programmer it took me 4-hours! Customer asked for a simple IR file update for a projector replacement. I updated the processor code to control the projector but when I went to compile the code the new Crestron database does not contain the original ASPI module for the EF-200 phone hybrid. I downloaded the new module and incorporated it into the program. I thought that was it until the customer asked that I update their Corporate Logo on the Opening Page of their TPS 4500 touch panel. I edited the touch panel program and loaded it into the touch panel. Bad decision!! The touch panel failed to load the new code and then woke up with Can't find page�. Yikes, I'd killed their system!! And they had a big meeting the next day! I updated the firmware in the touch panel and the Crestron CNMSX Pro processor but the touch panel still would not load the files. Out of desperation I went on the FTP site and downloaded the 2.3xxx version of Vision Tools Pro e, reworked the touch panel files, recompiled the touch panel program. This time the panel loaded the files and worked properly. Wow, it was 5:30pm, just in time to drive to my 5:00pm appointment! *Doug Guth *CTS, BSBE, DMC-E *Service Engineer/ Programming - Unified AV Systems* dguth@... | www.unifiedav.com d: 864.478.1866 | m: 864.907.8904 | o: 864.297.8533 The merger of Multi Media Services (Atlanta,GA) and Video Systems of the Carolinas (Charlotte, NC) to form Unified AV Systems, Inc.combines 55 years of operation as separate closely held businesses to form a single, integrated ProAV powerhouse. [Non-text portions of this message have been removed] |
Re: apple tv control methods
My Apple TV jailbreak went into hay-wire mode and restored itself to factory default :( So until I can jailbreak it again I wont be able to test anything
toggle quoted message
Show quoted text
--- In Crestron@..., "eagrubbs" <eagrubbs@...> wrote:
|
to navigate to use esc to dismiss