03-17-2011 11:56 AM
Here is what i'm trying to do. I'm sending via RS232 data that i get from an accelerometer and i want to display a curve of data vs time. The received data will be any value from 0 to 255 (decimal). The accelerometer gives me data from 3 axis, so i will need to make a string so DASYlab can undestand the data. For example: XAXIS 2&AS2 YAXIS Bswf29 ZAXIS p2s8@$ the data highlighted in red will be shown in the curve. I'm new with DASYlab so any suggestions on how to do the string right is welcome. Thanks a lot
03-17-2011 12:18 PM
2&AS2 isn't a number. How is it encoded? That's what you need to focus on... clearly we can find the 6 characters using a search string, but what do the characters mean?
They're not ASCII hex - that only uses numbers and A-F to represent hex characters 00-FF.
Are they integer? Floating point?
Once you answer that, you can choose a data format string that works.
So far, it's clear that b, ah and a will not work. The only reason that you were seeing a graph is because the ASCII encoding of the characters were sequential (65, 66, 67, 68.... ) = (A, B, C, D...).
03-17-2011 12:33 PM
Thank you very much for the help. I'll think this through a little bit more. Regards
03-17-2011 08:34 PM
Thanks a lot, its working as it supposed to.i really appreciate your help. i filter the data from the string using "XAXIS" b in channel 0, "YAXIS" b in channel 1 and "ZAXIS" b in channel 2, and i get the three curves.
Regards