×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Help plot data from accelerometer sensor

Help plot data from accelerometer sensor

Help plot data from accelerometer sensor

(OP)
Hi,

I am a complete newbie but so far I have been able to communicate through labview using a serial vi and I have now found a labview vi that emulates the functions of hyperterminal which I hope will be useful for my project.

http://www.daqman.com/example.htg/LVTerm.zip

The accelerometer has a output of 250Hz for each axis (X, Y and Z). Here is the link describing the specifications of the sensor.

http://www.sparkfun.com/datasheets/Accelerometers/SerAccel-v5.pdf

Here is an example of the typical output of the accelerometer


X= 0.676 Y=-0.313 Z= 0.754
X= 0.679 Y=-0.326 Z= 0.744
X= 0.676 Y=-0.331 Z= 0.722
X= 0.686 Y=-0.336 Z= 0.725
X= 0.676 Y=-0.339 Z= 0.744
X= 0.691 Y=-0.328 Z= 0.744
X= 0.686 Y=-0.326 Z= 0.706
X= 0.686 Y=-0.339 Z= 0.744
X= 0.686 Y=-0.339 Z= 0.752
X= 0.684 Y=-0.336 Z= 0.744
X= 0.691 Y=-0.326 Z= 0.754
X= 0.691 Y=-0.342 Z= 0.752
X= 0.686 Y=-0.321 Z= 0.744
X= 0.686 Y=-0.318 Z= 0.765
X= 0.686 Y=-0.326 Z= 0.744
X= 0.691 Y=-0.318 Z= 0.722
X= 0.676 Y=-0.328 Z= 0.744


The baud rate is set to the max of 57600. The sampling rate of the sensor is 250Hz. Although I am not sure that hyperterminal is reading data from the sensor at that rate. The faster I can sample the data then the better the time resolution will be for the acceleration event. I need to plot the X, y, and Z axis data versus no. of point in three different graphs on screen.

Looking at different Vi's in the labview forums, I need plotter/data logger so I can display the data in an XY plot and used some history to plot the a trail of points. In parallel a loop is needed to monitor the "log to disk" button and when "on" it would simply write to a file in spreadsheet format. The trick is how do I achieve this??

Has anybody out there got a vi that deals with the output of an accelerometer. I really need this info as I trying to do a volunteer project for training rowers on a rowing ergometer before our rowing season starts.

Frank

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources