03-11-2006 10:50 PM
03-12-2006 08:06 AM
03-12-2006 11:28 AM
Thanks a lot as this is getting me closer to where I want to be.
My serial terminal labview vi continiously reads the sensor output at 25 readsings/second. I see your array vi converts this output to a useful format and now I want to graph the the three arrays (x ,y and z) of data using this type of xy plot that I am including as an attachment. A large amount of data could build up in short time so saving the data as a csv file would be great as well.
I using the this vi to plot in real time data from an accellerometer and plot each axis versus time to help a volunteer based rowing club. My experience is limited in labview but would love to learn more after I get this little project out of the way. I hope you or other forum member can help me again.
Frank
03-13-2006
12:29 PM
- last edited on
11-07-2025
03:29 PM
by
Content Cleaner
Thanks for the info and I shall try working on what you gave me later. I just thought I let people know that NI have already developed VI for this type of sensor at the following link. I been searching long and hard trying to up my knowledge of labview
http://zone.ni.com/devzone/conceptd.nsf/we...625706d0061889e
So my goal of getting the real time output from the sensor and plotting it in realtime has already been achieved by other capable NI users! So hopefully with the forums continued assistance I can sort this out soon.
Thanks again.
Frank
03-14-2006 10:34 PM
03-15-2006 07:42 PM
03-16-2006 01:51 PM
Hi,
I am going to summarise exactly what I want to do with my project and see if you can put me on the right track.
I own a SerAccel v5 Enclosed 3 axis accelerometer. Its uses a rs232 communication protocol and I would like to graph the real time output of this sensor using labview. My project involves using the accelerometer to help rowing training on a rowing erogmeter.
http://www.sparkfun.com/datasheets/Acceler...SerAccel-v5.pdf
I can communicate with the device by hyperterminal but now I need to use labview to save the data and also graph the output of the sensor as a function of time. Here is an example of the typical output of the accelerometer usiong either hyperterminal or the serial terminal in labview
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
I have been using a serial terminal vi I which I obtained from http://sthmac.magnet.fsu.edu/labview/vi_library.html and this succesfully gets the data from the sensor.
Next I want to data to be plotted in realtime so I need to parse the data from the serial terminal vi response box and convert it to a useful format.
I want to plot X, Y, and Z axis data versus time in the same graph. The time would start at zero and each point would represent a fixed time interval. I currently believe the data is being sent to the serial terminal at 25 data points/second.
I have a serial terminal vi, I have now found a Extract Numbers.vi in the labview help which converts the data to a useful form and I have a graphing vi which puts the data in format I require. The type of graph I need would be something like an oscilloscope reading over a 0-20 second range. The events I am measuring are transient in nature and I just want to plot the single event and watch it on the screen and repeat the process numerous times. I do not need to keep the same data plotted on the same graph for minutes. I am trying to give biofeedback to rowers as they watch there acceleration curve during the rowing stroke. The rowing stroke only last a minimum of 2 seconds and a maximum of 4seconds. Keeping 5-10 strokes on the graph would allow the rower to visible compare each stroke taken on the rowing machine.
What I need to figure out is how to connect the sensor data output of the serial terminal to the parsing vi and then finally to the graphing vi. I am including some attachments of what I have at the moment.
I hope this give you more information about what I am trying to do.
Frank
03-17-2006 11:46 AM
03-17-2006 11:47 AM
03-17-2006 11:49 AM