06-16-2009 10:42 AM
Hi all,
I received data string from serial communation in this format:
Fuse Bridge HtrPwrV VDispV/C DTP V/C DTM V/C DiffC TempC
OK VALID 0.95 1.80 3.16 0.53 537 29.6
369 647 110
And I want to extract certain value out of this. I realized that they are seperated by space characters between them. So I was thinking about transfer them into an array, and then extract certain row/column from there. But I don't know how to get it done.
Could you give me some idea. Or if you have a better way, then please show me!
Thanks
Solved! Go to Solution.
06-16-2009 10:48 AM
06-16-2009 10:48 AM
06-16-2009 11:11 AM
That will only work if the number of spaces is constant between each data item, in every string received.
Dennis Knutson wrote:
Just use Spreadsheet String to array with a space as a delimiter.
06-16-2009 11:53 AM
No it is not a constant # of spaces , and sometimes even has carriage return and/or new line also. I'm using LV 8.5.
Thanks
06-16-2009 12:10 PM
How exactly are you receiving the data? As one long string? There is the Search and Replace Pattern function where you can use an expression.
Why don't you attach an actual string that you are getting? You can copy the string from your VI into a text file or attach the VI wi data in a string indicator. Run the VI then select Edit>Make Current Values Default. Save that VI and attach it.
06-16-2009 12:54 PM
06-16-2009 01:08 PM
06-16-2009 01:16 PM
06-16-2009 01:36 PM