Lookout

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I separate individual data bytes out of a string of bytes?

In Lookout, using the ASCII object, I'm recieving a string of ASCII data (22bytes) via RS232. I need to separate individual data bytes out of the string. How do separate the data or sequence the timing so that the RSV data members display the correct data?
0 Kudos
Message 1 of 2
(2,720 Views)
Hi,

you can use the ResponseFormat datamember of the ASCII object. If you put e.g. %1s%1s%1s%s you should get the first three bytes into RSV1.txt, RSV2.txt, RSV3.txt and the tail of your string will be in RSV4.txt.

Some other examples how to use the ResponseFormat should be in the online help of the ASCII object.

Hope this helps
Roland
Message 2 of 2
(2,720 Views)