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
Search
String Handling
devesh.gupta83
Hi Guys,
A quick question: I am sending a status command to streaming device which returns the following: EP_RX$ Status.STREAM1 Running\x0D\x0AStatus.STREAM2 Running\x0D\x0ASt EP_RX$ atus.STREAM3 Stopped\x0D\x0AStatus.STREAM4 Running\x0D\x0ASt EP_RX$ atus.6 Stopped\x0D\x0A how each date each EP_RX$ string contains is different every time. How do I parse this to provide TP with true FB? |
Maybe I'm not understanding the question here, but a simpl SIO with
interlocks would support feedback from these strings. On Wed, Mar 28, 2012 at 1:59 PM, devesh.gupta83 <devesh.gupta83@...>wrote: ** [Non-text portions of this message have been removed] |
devesh.gupta83
Hi Neil,
toggle quoted message
Show quoted text
It comes in as one big string so if I simple feed it in SIO and try to match the characters such as "Status.Stream1 Runnig" out 1 of sio "Status.Stream2 Runnig" out 2 of sio only the last data out gets high as SIO will only match the last bit of stream which is status.6 Stopped . Hope this clarifies what I am trying to accomplish. --- In Crestron@..., Neil Dorin <neildorin@...> wrote:
|
You can run the serial string through either a Serial Gather or a Serial
toggle quoted message
Show quoted text
Substring symbol before running it into your SIO. This should make each evaluate separately. You'll then need to run the individual outputs through some sort of latch (SR, TOGGLE, ILOCK) for each state for each Stream. Then take the output of the latch and run it to your touchpanel as digital FB or into a new SIO for serial FB. HTH -Nathan On Wed, Mar 28, 2012 at 1:14 PM, devesh.gupta83 <devesh.gupta83@...>wrote:
Hi Neil, |
Forgot to put that you need /n as the delimiter for the serial gather or
toggle quoted message
Show quoted text
substring On Wed, Mar 28, 2012 at 1:24 PM, Nathan Hesson <nhesson@...> wrote:
You can run the serial string through either a Serial Gather or a Serial |
Chip
That shouldn't be the case. If you watch in debugger, EACH part of the string that matches the parameters you have entered in the SIO will pulse the corresponding output high as the match "passes through". If you have your SIO parameters entered like this:
toggle quoted message
Show quoted text
Status.Stream1 Running Status.Stream2 Running Status.Stream3 Running Status.Stream4 Running Status.Stream5 Running Status.Stream6 Running Status.Stream1 Stopped Status.Stream2 Stopped Status.Stream3 Stopped Status.Stream4 Stopped Status.Stream5 Stopped Status.Stream6 Stopped Then take o1 and o7 (start and stop for stream 1) and run them to an interlock. Take o2 and o8 to another interlock. o3 and 09 to *another* interlock, etc. You would then have 6 interlocks, each one representing the on/off state of each stream. - Chip --- In Crestron@..., "devesh.gupta83" <devesh.gupta83@...> wrote:
|
Devesh Gupta
Thanks Chip, figured out my mistake of why it didn't work SIO. i was typing "Running" instead of "Runnig".
so foolish of me. Regards, Devesh Gupta On 2012-03-28, at 5:06 PM, "Chip" <cfm@...> wrote: [Non-text portions of this message have been removed] |
to navigate to use esc to dismiss