06-28-2013 11:31 AM
Hello everyone!
I have a problem. I need to parse data from COM port to text file. I tell you my situation with example.
The string looks like:
K123T0123D1234GX1234GY8328GZ8231........
And I need to write data in text file like:
123 0123 1234 1234 8328 8231 ..........
Thank you!
06-28-2013 02:52 PM
Here is a VI that I made. Basically, it converts each character to a number and back to a character (really just a length 1 string) and checks equality. In this case, any letter will go to zero, giving a false value (K =/= 0). When it comes across a letter, it checks the previous character to check that 2 tabs won't be written. And, just as a note, there will be one tab at the end of this string. (You could probably fix that, or ignore it.)
06-28-2013 03:29 PM
Just a quick regex
06-28-2013 03:57 PM
@JÞB wrote:
Just a quick regex
A much simpler solution! (I've only been working with LabVIEW for a week or so, so I don't know all the tools yet…)
06-28-2013 07:58 PM
06-29-2013 11:48 AM
06-29-2013 06:42 PM
NICE !