05-26-2017 10:52 AM
Hello,
I'm sorry if it has been already asked but I'm facing some troubles concerning string splitting.
I have a serial port that gives me a string of hexadecimal numbers : for example : \02P\00\03\CF\01\02\00\FD\03
In here, I would like to get the numbers : 03CF , 0102 and 00FD which corresponds to 3 variables that my sensor is measuring.
I tried using the Search/Split String Function and I have succeeded in separating my string in fragments : \03 or \CF for example.
However, I can't get past this point and remove the backslah '\'.
When I used the String length function on \03 it gave me 1...
I want to separate those strings so I can convert them afterwards using the Hexadecimal String to Number Function
Thank you in advance...
Solved! Go to Solution.
05-26-2017 12:41 PM - edited 05-26-2017 12:42 PM
It sounds like you have "\ Codes" display turned on. I think you should change it to Hexadecimal display to make it look more like what you want to see.
So it sounds like you already have a binary/flattened string. So just use Unflatten From String to create an array of U16.