PCS Lab 2
PCS Lab 2
Lab # 02:
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
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.