Serial in watcher
-
Hi there,
I'm trying to use the serial in watcher ( txt and binary) , but i don't can find how the syntax is.
On the help page's is only explaind how the different things works.
I do use now
- msg:string={00-FF}
-value1 : string = EOL
But is don't can find how i can change this from string to char, or other possiblities.Where can i find more explantion about the syntax?
Thnks!
-
Once you double click the actor to open the Parsing Pattern Editor, you can click the help button to open a document on "Decoding and Extracting Data Input Streams". This document convers the syntax for both binary and text.
-
thanks for your answer, but i can't make any sentence out of these pages.
I'm missing example sentences. Like i use now. But i can't make other sentences out of these pages.
For me are these pages explaination of the elements in the sentences.
How should i extract these sentences:
(- msg:string={00-FF}
-value1 : string = EOL)
for the help-pages? -
@landschrap said:
The msg:string={00-FF} parsing pattern is nearly always my starting point when I am trying to receive Serial text data.
This parsing pattern will output a string made up of any of the Hex values 00 through FF (all of them). This works often to get you started since you can see the full message received eaisly.
You will want to watch your incoming serial data in the Monitor window to see how this output matches with the input.