LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Amplitude Modulation Generation using NI 5411

Carrier Frequency : 50 kHz
Carrier Amplitude : 2Vpeak
Modulating Frequency : 170 Hz
Depth of Modulation : 50%.
0 Kudos
Message 1 of 2
(3,450 Views)
Here is the math you will need to generate an array containing a single amplitude-modulated cycle. It assumes you are using the maximum update rate of the arb (40 MHz). Also, I am assuming the amplitude will vary from 2 V peak to 1 V peak:

For i = 0 to 235200

data [i] = 2 * sin (2*pi*i / 800) * [0.75 + (0.25 *cos (2*pi*i / 235200))]

next i

Where did these numbers come from? The first 2 is just the amplitude of the carrier wave. The 800 is the ratio of 50 kHz carrier frequency to 800 MHz, the arb update rate. 235200 is 800 * (50 kHz/170 Hz). It is basically the ratio of the arb update rate to the modulation frequency. (I rounded slightly, so the modulation frequency will be off by a small fraction of a Hz). The 0.75 and 0.25 are needed to change the cosine envelo
pe to vary from 1 to 0.5 (50% modulation depth.)

Once you have defined this array, you should use one of the examples for generating an arbitary waveform using the 5411 with this data. Good luck!
0 Kudos
Message 2 of 2
(3,450 Views)