ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

DASYLab

cancel
Showing results for 
Search instead for 
Did you mean: 

string

Solved!
Go to solution

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

0 Kudos
Message 11 of 14
(3,312 Views)
Solution
Accepted by topic author Negrila

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...).

Measurement Computing (MCC) has free technical support. Visit www.mccdaq.com and click on the "Support" tab for all support options, including DASYLab.
0 Kudos
Message 12 of 14
(3,309 Views)

Thank you very much for the help. I'll think this through a little bit more. Regards

0 Kudos
Message 13 of 14
(3,307 Views)

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

0 Kudos
Message 14 of 14
(3,298 Views)