0% found this document useful (0 votes)
38 views7 pages

PCS Lab 2

Uploaded by

Muneeb Ahmad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views7 pages

PCS Lab 2

Uploaded by

Muneeb Ahmad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

1

EEE325-Principle of communication system

Lab # 02:

Name Jamal khan

Registration Number FA20-BEE-78


5-C
Class

Instructor’s Name Mam Asma Jadoon

Lab Assessment
Post Lab Total
In-Lab Data
Data Analysis Writing Style
Presentation
2

In Lab Task # 01
Construct a VI to add two input numbers and display the output on the front panel.
Diagram:

Figure:1.1:

Figure:1.1.2:

In Lab Task # 02
3

input a numerical data from the Front Panel (Numeric Control) and display the result
(Numeric Indicator) after multiplication with a constant. Use the procedure in task 2.1 where
required.

Diagram:

Figure:2.1:

Figure:2.1.2:

In Lab Task # 03
4

Create a VI to add ‘5’ to an input number if it is greater than ‘10’, otherwise add ‘10’ to the
input number and display the output in either case in front panel.

Diagram:

Figure:3.1:

Figure:3.1.2:

Figure:3.1.3:

In Lab Task # 04
5

Create a VI to output the sum of numbers from 1 to the input number. Example: If number
‘5’ is input in the front panel, then sum of numbers from ‘1’ to ‘5’ should be displayed as
output.

Diagram:

Figure:4.1:

Figure:4.1.2:
6

In Lab Task # 05
Create a VI to generate a composite signal with Mathscript node with two sinusoidal waves.
The amplitude and frequencies should be controllable on the run-time with knob and numeric
control respectively. After composite signal generation, show the time-domain waveform of
composite signal along with the Power spectral density (PSD) using “FFTPower Spectrum
and PSD” VI. Then filter the composite signal in mathscript node and show the time-domain
and spectral plots in comparison with the earlier graphs.

Diagram:

Figure:5.1:

Figure:5.1.2:
7

Discussion and Conclusion:


Discussion:
Figure # 01
This figure contains 2 blocks named 1 x and y2 which take inputs from the user and the third
block displays the result of these two blocks.
Figure # 02
This figure contains an add block which adds two user input
Also, the multiplier block takes the result from adding block and multiplies it with 2
Figure # 03
This figure contains if else loop and greater than block if the user enters the number which is
greater than the loop will add 5 and if the input number is less than 10 the loop will add 10 to
the input number
Figure # 4
This figure contains a for loop that adds the series of input numbers.
Figure # 05

This figure contains a1 and a2 block which is for varying amplitude. Also, the f1 and f2 block
which is for varying frequency, and another block is for changing the sampling frequency of
signal. The wave graph is for composite signal. The composite signal is basically the addition
of two or more than two signals. The waveform graph 2 displays the filter signal from the
composite signal. the waveform graphs 3 and 4 are the power spectral density. The Power
Spectral Density (PSD) is a fundamental concept in signal processing and spectral analysis. It
represents the distribution of power (or energy) of a signal as a function of frequency. The
mathscript is used for Matlab coding in lab view.

Conclusion:
In this lab we leraned how to use lab view.We learned how to add to number using blocks
and we also learnd how to multiply a number to that value and we also learned how to use if
and else and also.we also learned how to use diffrent components from the front panel and
how to use different wavegraphs.

You might also like