04-24-2007 10:43 AM
04-24-2007 10:51 AM - edited 04-24-2007 10:51 AM
"Hexadecimal string to number" assumes that yuor string is formatted with characters 0..F. If your two bytes are an unformatted binary string, just typecast it to a number, using e.g. a I16 or U16 diagram constant as type.
Message Edited by altenbach on 04-24-2007 08:54 AM
04-24-2007 11:28 AM
04-24-2007 01:09 PM
04-25-2007 02:11 AM
04-25-2007 11:50 AM
You don't need a function, it's the first value in the first column. 🙂
Within your code, you could place it in a shift register at [i]=0 and subtract it from the current time at each iteration. You'll get the relative times starting with zero.
04-25-2007 03:19 PM
04-25-2007 03:53 PM
@xianese wrote:
... I'm also wiling to know it.
What is "it"??? This thread talks about (1) typecasting a string to an integer and also about (2) relative time stamps.
I thought both questions have received an adequate answer here. If you still have problems after trying the above suggestions, please be more specific about your problem. 🙂
04-25-2007 04:16 PM
04-25-2007 05:30 PM - edited 04-25-2007 05:30 PM
Message Edited by altenbach on 04-25-2007 03:31 PM