¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

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:

**


Hi Guys,

A quick question:

I am sending a status command to streaming device which returns the
following:

EP_RX$ Status.STREAM1 Running&#92;x0D&#92;x0AStatus.STREAM2 Running&#92;x0D&#92;x0ASt
EP_RX$ atus.STREAM3 Stopped&#92;x0D&#92;x0AStatus.STREAM4 Running&#92;x0D&#92;x0ASt
EP_RX$ atus.6 Stopped&#92;x0D&#92;x0A

how each date each EP_RX$ string contains is different every time. How do
I parse this to provide TP with true FB?



[Non-text portions of this message have been removed]


devesh.gupta83
 

Hi Neil,

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:

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:

**


Hi Guys,

A quick question:

I am sending a status command to streaming device which returns the
following:

EP_RX$ Status.STREAM1 Running&#92;x0D&#92;x0AStatus.STREAM2 Running&#92;x0D&#92;x0ASt
EP_RX$ atus.STREAM3 Stopped&#92;x0D&#92;x0AStatus.STREAM4 Running&#92;x0D&#92;x0ASt
EP_RX$ atus.6 Stopped&#92;x0D&#92;x0A

how each date each EP_RX$ string contains is different every time. How do
I parse this to provide TP with true FB?



[Non-text portions of this message have been removed]


 

You can run the serial string through either a Serial Gather or a Serial
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,

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:

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:

**


Hi Guys,

A quick question:

I am sending a status command to streaming device which returns the
following:

EP_RX$ Status.STREAM1 Running&#92;x0D&#92;x0AStatus.STREAM2 Running&#92;x0D&#92;x0ASt
EP_RX$ atus.STREAM3 Stopped&#92;x0D&#92;x0AStatus.STREAM4 Running&#92;x0D&#92;x0ASt
EP_RX$ atus.6 Stopped&#92;x0D&#92;x0A

how each date each EP_RX$ string contains is different every time. How
do
I parse this to provide TP with true FB?






------------------------------------




Check out the Files area for useful modules, documents, and drivers.

A contact list of Crestron dealers and programmers can be found in the
Database area.
Yahoo!
Groups Links




 

Forgot to put that you need /n as the delimiter for the serial gather or
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
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,

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:

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:

**


Hi Guys,

A quick question:

I am sending a status command to streaming device which returns the
following:

EP_RX$ Status.STREAM1 Running&#92;x0D&#92;x0AStatus.STREAM2 Running&#92;x0D&#92;x0ASt
EP_RX$ atus.STREAM3 Stopped&#92;x0D&#92;x0AStatus.STREAM4 Running&#92;x0D&#92;x0ASt
EP_RX$ atus.6 Stopped&#92;x0D&#92;x0A

how each date each EP_RX$ string contains is different every time.
How do
I parse this to provide TP with true FB?






------------------------------------




Check out the Files area for useful modules, documents, and drivers.

A contact list of Crestron dealers and programmers can be found in the
Database area.
Yahoo!
Groups Links




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:

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:

Hi Neil,

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:

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:

**


Hi Guys,

A quick question:

I am sending a status command to streaming device which returns the
following:

EP_RX$ Status.STREAM1 Running&#92;x0D&#92;x0AStatus.STREAM2 Running&#92;x0D&#92;x0ASt
EP_RX$ atus.STREAM3 Stopped&#92;x0D&#92;x0AStatus.STREAM4 Running&#92;x0D&#92;x0ASt
EP_RX$ atus.6 Stopped&#92;x0D&#92;x0A

how each date each EP_RX$ string contains is different every time. How do
I parse this to provide TP with true FB?



[Non-text portions of this message have been removed]


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:


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:

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:

Hi Neil,

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:

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:

**


Hi Guys,

A quick question:

I am sending a status command to streaming device which returns the
following:

EP_RX$ Status.STREAM1 Running&#92;x0D&#92;x0AStatus.STREAM2 Running&#92;x0D&#92;x0ASt
EP_RX$ atus.STREAM3 Stopped&#92;x0D&#92;x0AStatus.STREAM4 Running&#92;x0D&#92;x0ASt
EP_RX$ atus.6 Stopped&#92;x0D&#92;x0A

how each date each EP_RX$ string contains is different every time. How do
I parse this to provide TP with true FB?



[Non-text portions of this message have been removed]



TODAY(Beta) ? Powered by Yahoo!
Destinations where the dollar goes further
These spots are especially affordable for Americans because of strong exchange rates.
Privacy Policy
[Non-text portions of this message have been removed]