LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to take a derivative of a sine wave?

Solved!
Go to solution
I know this is probably really simple and I am sure I am doing something stupid but please could someone help me.. I am just trying to plot the derivative of a sine wave on the same graph as the original sine wave. It seems to be working (it is displaying a cosine wave) but the amplitude is way off. Please could someone just point to me why the amplitude is off.. the original sine wave is going between 1 and -1 but the derivative is between 60 and -60
0 Kudos
Message 1 of 5
(5,259 Views)

Well, if you want help, show us your code. Is dt set correctly?

Message 2 of 5
(5,256 Views)
Solution
Accepted by topic author lilSebastian

Just speculating, but...

 

  1. The derivative of a 10 Hz sine wave should have an amplitude of about ±60 (2*pi*10).

  2. The Sine Waveform VI has a default frequency of 10 Hz.

 

Coincidence?

 

 

Best Regards,

John Passiak
Message 3 of 5
(5,216 Views)
Sorry to the person above I thought I had attached my code. Yes you are totally right, I was using the sine wave vi and it was the 10hz problem. I thought I was just doing a sin(x) problem but it was sin(2*pi*ft) My maths ability here is the problem.
0 Kudos
Message 4 of 5
(5,176 Views)

Incase anyone ever wants the code it's here..

 

0 Kudos
Message 5 of 5
(5,123 Views)