LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

sine wave frequency problem

hello
i have some part of my program that is not working well.
the idea is to sample a 2V sine wave of various frequency and record down the max and min values
by right i should get around +2 and -2 for my max and min values
however at frequencies multiple of 5(5k,10k,15k...) i get a reading of 0.0628215 for my max and -0.0628215 for my min.all other frequencies have no such problem.
i tried changing the sampling time and rate but i still get a close to 0 result for frequencies at multiples of 5.
may i know what causes the problem and how can i resolve this?
0 Kudos
Message 1 of 3
(2,353 Views)
i attached my sample program for reference
0 Kudos
Message 2 of 3
(2,347 Views)
Hi

It may sound silly - but do you acquire data fast enough?

Just have a look at the Nyquist Theorem.

Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 3 of 3
(2,344 Views)