Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.

Log in or register to post/reply in the forum.

Serial In Split String by Comma

Terrapin Nov 9, 2018 03:21 PM

I'm having trouble reading a large string obtained via SerialIn into discrete variables.  The raw data string is separated by a comma, but not all variables are numeric.  For example:


I tried using SplitStr(ResultString(),InString,",",1,5) to split based on the comma, but I think the non-numeric data messes it up and I only NaN. 

I tried using the 10 option of SplitStr to extract only the numbers, but it doesn't seem to be able to capture all the variables, and is really unwieldy since the data string is quite long. 

Thanks in advance,

ariklee Nov 30, 2018 11:50 AM

Hi Terrapin,

How many resulting strings do you expect (how many strings after the split?) Try putting that in place of your "1" in the 4th argument for the SplitStr command.  E.g., instead of:




Log in or register to post/reply in the forum.