05-09-2014 04:03 PM
Also take a look at Discrete Normalized Integrator on the FPGA Math & Analysis >> Control >> Discrete Linear Systems palette. It's basically just a simple accumulator implementation. You can see how it's implemented by right-clicking on the node and selecting Convert to SubVI.
05-13-2014 12:26 PM
Great,
As you can see from the attached vi's i've followed everyones advice. The simulation waveform is helpful and i compared that to the live signal from the accelerometer. I can see the noise from the accelerometer from the oscilloscope, and i will add the filtering soon once the integrator is working correctly.
Since this integrator continuously adds the values up, is it normal practice to "reset" after the first integration between the first two values so the next two values can be integrated without the addition of previous values ?
If i was converting from displacement to acceleration in excel i can take the gradient twice leaving acceleration.
Many Thanks