06-13-2015 01:35 PM
I was hoping to get some advice about how I might search the following string and convert to a real number or integer. The following data is output as ascii characters from a device and I would like to search for the times in each line (starting with 7699.72 seconds in this case) and convert each to a real number. Alternatively, I would like to search for the integer values in each line (0 but could be 1,2,10,12, etc) and convert to an 8 bit integer. I think using the Match Pattern followed by Scan from String VIs would be what I need but am not quite sure how to match in each case. Thanks!!
<CL> 7699.72 0 |
<CL> 7699.74 0 |
<CL> 7699.76 0 |
<CL> 7699.78 0 |
Solved! Go to Solution.
06-13-2015 01:55 PM
What characters are in the white space between the <CL> and the numbers?
Scan From String can probably do what you want. Note that in the image whitespace characters include spaces, carriage returns, line feeds, and tabs.
Lynn
06-13-2015 02:40 PM
I am fairly sure those are spaces. Appears I made things way more complicated than necessary. Thank you.
06-15-2015 03:40 PM
Thanks are given with kudos and marking solutions as answers to your question.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord