LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Derivative Issue

Hello, 

 

I have a data set of a singular contraction creating a force-time curve. I am using the derivative function to identify the beginning and ends of the contraction, however, for some reason I am getting large spikes at the beginning and end of the measurement.

 

Can someone instruct me on how to get rid of the large spikes?

0 Kudos
Message 1 of 3
(214 Views)

Hi mo,

 


@mo103426 wrote:

Can someone instruct me on how to get rid of the large spikes?


  1. Implement a correct calculation of the derivative.
  2. Filter the spikes after your current derivative calculation…

We cannot debug/edit/run images in LabVIEW. And we cannot comment on code that isn't attached to a question…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(186 Views)

Start with this for an implementation of the derivative:

dsbNI_1-1726106482674.png


Try your data. See which method produces expected results. Based on your knowledge of the experimental data, input appropriate initial and final conditions.

Depending on the method and your choice of initial and final conditions, you may see spikes at the beginning and end.

dsbNI_2-1726107114316.png

 

From the looks of your data, I am guessing that you expected the derivative to be zero at each end. To achieve that, make the initial condition equal to first data value and make final condition equal to last data value.

dsbNI_3-1726107150330.png

 

Doug
NI Sound and Vibration
0 Kudos
Message 3 of 3
(154 Views)