LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FPGA Sine Wave Generator - how to control the amplitude and generate an accurate Sine wave?

What is a good way to programmatically control the output amplitude of the FPGA Sine Wave Generator, before sending it to the physical AO?

I guess I should set full scale amplitude from the block diagram of the Sine Wave Generator and rescale it before sending in to the output. I use I32 for the sine output, which matches the AO connector Input (Signed,20,5).

In my application I'd like to be able to rescale the sin amplitude from 0V to 10V with a fine grain.

Thanks

0 Kudos
Message 1 of 2
(1,981 Views)

Hi Reddi,

 


@ReddiMK wrote:

I use I32 for the sine output, which matches the AO connector Input (Signed,20,5).

An I32 is something different than a FXP(±,20,5)!

 

In my application I'd like to be able to rescale the sin amplitude from 0V to 10V with a fine grain.

Then you need to do one multiplication, using a FXP scale factor…

Best regards,
GerdW


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