News:

Welcome on our forum!

Main Menu

Hex Data

Started by cahuk, July 17, 2011, 01:05:57 PM

Previous topic - Next topic

cahuk

I have the following string showing in the Data logger window.

<20110717060145.515>
#08#0F#F1#D4#FF#03#B1#00#09#98

I need to parse this data and grab the #09 section. But in the DDE I keep getting nothing or junk. I'm using the Ascii Parser and trying to parse as a string. Then I have an expression Value = WORDTOSTR(Value). I thought  saw that in another thread but any help would be appreciated.

Thanks

Arthur Grasin

1. Configure the parser to split data by timeout
2. Add a parser item with the "Value" name and extract last 2 bytes from a fixed position
3. Your expression is valid
If you like my work, please take a few seconds and add feedback about our site or our software [here]

cahuk

#2
I can set a fixed Position of 4 with a length of 2 and I get 65492 (FFD4) which seems right but if I increase fixed position to 5 or above (length remains 2) I get no data.

thanks for the help with a newbie!!

Found the issue I had to uncheck Trim spaces from left & right in Data format.