Title: Hex Data Post by: cahuk on July 17, 2011, 04:05:57 PM 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 Title: Re: Hex Data Post by: Arthur Grasin on July 01, 2014, 10:00:00 AM 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 Title: Re: Hex Data Post by: cahuk on July 03, 2014, 10:00:00 AM 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. |