LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

sine wave generation

Solved!
Go to solution

Hello:

I have a problem when generating a sine wave that when increasing thee frequency (>100hz) the shape of the signal changes ,there is an attachment for the problem,any one can help me tsine.pngsine1.pngo explain this phenomenon; 

0 Kudos
Message 1 of 7
(3,655 Views)

Hi Ashly,

 

apparently you don't use LabVIEW as marked for your thread, but LabVIEW NXG.

 

explain this phenomenon; 

Several scientiest explained that phenomenom decades before: Shannon, Nyquist…

See Wikipedia for them!

Best regards,
GerdW


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

Hello;

I have some confusion on the relation between sampling rate ad the signal freq that when generating sine wave with sampling rate (1000) and freq(10) there is no problem but when increasing the freq to (100)Hz the sine wave shape changes (some information lost) , although it achieve the  Nyquist Theorem ,there is an attachment for this problemsine.pngsine1.png

0 Kudos
Message 3 of 7
(3,630 Views)
Solution
Accepted by topic author ASHLY19

Hi Ashly,

 

when increasing the freq to (100)Hz the sine wave shape changes (some information lost) , although it achieve the  Nyquist Theorem ,there is an attachment for this problem

Which problem?

You still can recognize your sine wave and you can still determine its frequency!

 

Remember: at sample rate = 1kHz and sine frequency= 100Hz you get only 10 samples per sine period - as can be seen/estimated in your plot…

Best regards,
GerdW


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

Nyquist only states that you can get the frequency content when your sample frequency is >2x the signal frequency.  In the time domain, you lose resolution as you have less samples per cycle of the signal.  What you are seeing is expected.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 5 of 7
(3,618 Views)

hi 

0 Kudos
Message 6 of 7
(3,603 Views)

Hi Ashly,

 

the shape of the sine wave changes as the frequency increasing ?

Wouldn't it be most easy to test this with your VI on your own?

Hint: set the plot style to show also points to see each sample more easily…

Best regards,
GerdW


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