LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Calculation of Velocity and displacement from acceleration....am using ADXL335 accelerometer with NI myrio 1900

Am trying to get acceleration , velocity and displacement data from Accelerometer ADXL335 .

The picture of code and waveforms are attached ...please correct me if am wrong.

Download All
0 Kudos
Message 1 of 2
(2,972 Views)

Do not use local variables.  You are causing race conditions (you might be reading new data or old, no way to tell and it could be changing per iteration and therefore messing up your calculations).  Use DATAFLOW (ie wires) to pass your values from one calculation to the next.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 2
(2,922 Views)