Main siteMain site  ForumForum  ForumSearch  Private messageEmail contact  RegisterRegister  Log inLog in 
Topic: Parsing a telnet stream received by N_Client
Reply to topic
Author Message
mfalkner



Joined: Apr 13, 2021
Posts: 2

PostPosted: May 10, 2021 10:17 AM    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: 910

PostPosted: May 10, 2021 10:42 AM    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

PostPosted: May 10, 2021 11:25 AM    Post subject:

OK, thanx, I will try this.
Reply to topic