AGG Software Forums
September 20, 2024, 03:52:57 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome on our forum!
 
   Home   Help Search Login Register  

Pages: [1]
  Print  
Author Topic: Hex Data  (Read 12428 times)
cahuk
Newbie
*

Karma: +0/-0
Posts: 2


View Profile
« 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
Logged
Arthur Grasin
Tech. Support
Administrator
Hero Member
*****

Karma: +0/-0
Posts: 806



View Profile WWW
« Reply #1 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
Logged
cahuk
Newbie
*

Karma: +0/-0
Posts: 2


View Profile
« Reply #2 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.

« Last Edit: July 18, 2011, 07:03:15 PM by cahuk » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines