LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sine wave frequency and amplitude detection

Hellow everybody;

 

I generated a sine wave in the control and simulation loop. Its frequency and amplitude may be changing along the simulation time.

 

I would like to contineously detect its amplitude and frequency information during the simulation, so I can observe their changes.

 

The VIs I used are "extract single tone information"VI and "peak detection"VI. Both of them could work but they only output the freq and amp value when the simulation finished, which means I am not able to obtain their information during the simulation.

 

Could anybody help me with this problem? I have posted a simple programme shows my problem and also a snapshot of it. Really appreciated if someone could offer me a help. Many thanks!

 

BR

 

Floyd 

Download All
0 Kudos
Message 1 of 2
(3,201 Views)

So each time your control and simulation loop runs through it returns your frequency and amplitude.

Why not throw the entire control and sim loop inside a while loop. That way its constantly running through that inner loop.

0 Kudos
Message 2 of 2
(3,097 Views)