LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Accelerometer application DAQ programming

I "inherited" a program and project from some seniors who have since graduated. They were using strain gauges to measure motion. They developed this rather large DAQ program in Labview to acquire the signals, compare them, calculate some things,.... It would take me months to decipher the code.
I need help in developing a labview program that acquires both the accelerometer and horn data. Then the two are compared and the difference is calculated and sent to a data file as a Response time along with the original data of first movement and horn sounding. Can anyone please help me out?
0 Kudos
Message 1 of 2
(2,793 Views)
Hello,

Your program will be fairly complex, but each of the individual components are commonly used, and there is a lot of example code out there that I would recommend you start with.

The first, most important piece is the data acquisition. You must determine whether you are using a data acquisition card, or whether you have an instrument connected to the computer via GPIB or serial connection. After determining that, you can find some example programs within LabVIEW that acquires data (whether it be DAQ data or GPIB/serial data) and saves it. To access example programs in LabVIEW 6.1 and later, go to Help >> Find Examples. (In 6.0, go to Help >> Search Examples). Then navigate around until you find a suitable acquisition program. Great examples
for DAQ, GPIB and serial can be found in the Hardware Input and Output folder from the Example Finder interface.

The next part of your program is where you take the difference between the data and send it (and the original data) to file. File I/O examples can help you get started with this. I wrote a simple example VI and attached the screenshot to possibly help get you started, too.

If you would like more detail about any portion of your program, let me know what type of acquisition you are performing (DAQ, GPIB, etc), what version of LabVIEW you have, and any other details that you think may help us reach a solution as quickly as possible. I would be happy to help further.

Have a great day!

Liz F
National Instruments
Message 2 of 2
(2,793 Views)