Example Code

Simulation of Analog Modulations

Code and Documents

Attachment

The Main_Simulation.vi is a program that simulates the Analog Modulations such as: AM, DSB-SC, FM and PM.

When you input both the carrier signal and the input signal, they are computed: Modulated Wave and its Amplitude Spectrum.

This example shows how to use graph XY, how to manipulate signals and some tips about of GUI design.

DESCRIPTION

The Main_Simulation.vi is aprogram that simulates the Analog Modulations such as: AM, DSB-SC, FM and PM. When you input both the carrier signal and the input signal, in the charts they are drawn:

- Carrier Wave

- Input Wave

- Modulated Wave

- Amplitude Spectrum of the Modulated Wave

And they are computed:

- Modulation percent to AM and DSB-SC Modulations.

- Modulation Index (Beta) to FM and PM Modulations.

- Bandwidth by means of Carson´s rule, to FM and PM Modulations.

INSTRUCTIONS

1. Run Main_Simulation.vi

2. Set Type of signal to Input wave (Sine wave, Triangle wave, Squarewave, Sawtooth wave, and defined by the user wave). To the last signal type, remember the following thing: w=2pif and the variable is the parameter.

3. Set Frequency of the Input wave (in Hz). If you are using wave defined by the user, the wave will vary according to it Frequency.

4. Set Amplitude and of the Input wave (in Volts and Degrees respectively).

5. Set the Frequency of the Carrier Wave (in Hz).

6. Choose Kind of Analog Mudulation. If you choose FM or PM Modulation, you must enter frequency deviation or phase deviation respectively.

7. Press the Salir Button to abort the program.

Note: If you want to look at the Modulated Wave with zooming in Amplitude and Time. There is a button that allow visualize a Scope with the characteristics of Timebase and Scale.

GUI

http://decibel.ni.com/content/servlet/JiveServlet/download/1236-4-1293/Snapshot%20Simulation%20Analog%20Modulations.PNG

____________________________________________
Carlos Calderón Córdova, Ing.
Universidad Técnica Particular de Loja
Grupo de Control, Automatización y Robótica
Escuela de Electrónica y Telecomunicaciones
Phone: (+593) 7-2570275 ext. 2650
Cell: 098663798
____________________________________________

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
cacalderon
Member
Member
on

I present them my gallery of snapshots of applications developed in
LabVIEW.
I thank to some members of LabVIEW-user groups for their contributions with regard to the design of GUIs.

LabVIEW GUI Gallery Link: http://forums.lavag.org/gallery-user8339-album77.html



____________________________________________
Carlos Calderón Córdova, Ing.
Universidad Técnica Particular de Loja
Grupo de Control, Automatización y Robótica
Escuela de Electrónica y Telecomunicaciones
Phone: (+593) 7-2570275 ext. 2650
Cell: 098663798
____________________________________________
Todd S.
NI Employee (retired)
on

This is amazing stuff, thanks so much for adding it!  I've been promoting your code on our NINews mailings since it's so good!  Keep up the great work.

Todd S.
LabVIEW Community Manager
National Instruments
mmdhadwe
Member
Member
on

The GUI is very nice and very interactive.It doesn't look like labview front pane.

Can u provide this code in English language?

Contributors