LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Taking the derivative of measured data?

Hey I've been trying to take the derivative of some measured data from a digital rotary motion sensor but I'm having a few problems. It would seem since there are so many data points there are alot of areas on my Distance graph are flat for a very brief period of time making the derivative very small. Which I'm assuming is why the graph looks like this.

Speed problem.png

If any one would like to look at my VI file and help me smooth out my speed graph that would great.

Thanks

Ryan

0 Kudos
Message 1 of 4
(1,757 Views)

It looks like you are doing software timed data acquistion so the variation you are seing maybe more a measurement of the Jitter than the singal itself.

 

Just my 2 cents,

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 4
(1,742 Views)

The derivative of a step is an impulse. So the result looks reasonable to me (without looking at the VI).

 

One good way to get a derivative of noisy data is to use the Savitsky-Golay filter method. Depending on whihc version of LV you have, the details vary because NI has made changes in the implementations of the S_G filters.

 

Lynn

0 Kudos
Message 3 of 4
(1,728 Views)

@Ben wrote:

It looks like you are doing software timed data acquistion so the variation you are seing maybe more a measurement of the Jitter than the singal itself.

 

Just my 2 cents,

 

Ben


Ben, I was searching for derivatives on labview in the forum and bumped on your comment. When you say "software timed acquisition" do you mean that the A/D converter is triggered by the computer clock in order to acquired data? Is it possible to use hardware timed acquisition for a usb device like the NI-6211? 

Thank you



0 Kudos
Message 4 of 4
(1,544 Views)