Author |
Message |
mfalkner
Joined: Apr 13, 2021 Posts: 2
|
Posted: May 10, 2021 3:17 PM Post subject: Parsing a telnet stream received by N_Client |
|
Hello,
I want to parse a telnet stream received by the N_Client object:
<BioEraData Ch1="0.7760000000000673" Ch2="0.0" />
How can I isolate the numerical information related to Ch1, so that I can further process it?:
Thanx for any help.
Michael |
|
 |
jarek
Joined: Oct 22, 2007 Posts: 1056
|
Posted: May 10, 2021 3:42 PM Post subject: |
|
There is nothing in BioEra which will do this exactly.
You could create your own parser. Might be possible to do in ExpressionEvaluator with some advanced expression. For example, compare In1 to '1' then to '=' then to '\"', read to a buffer until '\"', parse the buffer (Float.parseFloat()) and send the number out. This is a general idea, and would require some programming experience. |
|
 |
mfalkner
Joined: Apr 13, 2021 Posts: 2
|
Posted: May 10, 2021 4:25 PM Post subject: |
|
OK, thanx, I will try this. |
|