03-13-2014 07:32 AM
hi everybody
i would like to derivate a signal, and my first idea was with a shift register ( see picture attached) and i would like to know if it could be enough or if it has to be improve.
thank you !
J.
Solved! Go to Solution.
03-13-2014 07:55 AM
Technically yes, this should work. Except the data type, U16 will only allow positive values, but the derivative might also be negative.
But it really depends on your requirements and on the signal quality.
If the signal noise is bigger than the usual difference this simple derivative will not be very useful. You might have to filter it.
03-13-2014 08:10 AM
Thank you very much dan_u for your quick answer ! i was wondering if it is better to divide by the periode (see picture attached), the signal has a frequency of 1Khz.
another question : when you say " you might to filter it" you mean with labview ?
thank you again !
J.
03-13-2014 08:28 AM
Of course, if you need the speed in units/s you have to divide by the period. Since divisions are quite heavy on the FPGA I would recommend multiplying by 1000 instead of dividing by 0.001 (if the sampling rate is constant).
Yes, if the signal is too noisy filtering the position signal or the speed signal in LabVIEW might be necessary. An example for a simple "filter" would be a moving average.
03-13-2014 08:32 AM
Alright ! thank you very much for these advice