TUTORIAL-2
By
ARPAN GAYEN
ENROLLMENT NO- 14115023
where = using feedback node. Do the performance verification by supplying the suitable input.
Solution) Converting the above filter transfer function to discrete domain we get
[]=1+2 ( ) [ − 1] − [ − 2] + ( [ ] − [ − ]) ( ) − [ − 1] + [ − − 1]
The value of N is taken to be 128. Now with the help of feedback node the filter
transfer function is evaluated.
The corresponding front panel and the block diagram are shown below
Q2) Design a moving average using shift register and feedback node.
Test the performance of the VI with suitable inputs.
Solution) Converting the above filter transfer function to discrete domain we get
[ ] = [ − 1] +
1 ( [ ] − [ − ])
The value of N is taken to be 128. Now with the help of feedback node the filter
transfer function is evaluated.
The corresponding front panel and the block diagram are shown below
Figure 3: Front Panel
Q3) Create a VI to generate N number of random numbers. Set the threshold and
separate the numbers which are greater than the threshold.
Solution) The corresponding front panel and the block diagram are shown below
Figure 5: Front Panel
Q4) Build a VI to find the roots of a quadratic equation, for all possible combination of
roots.
Solution) The corresponding front panel and the block diagram are shown below
Figure 7: Front Panel
Q5) Build a VI to generate sine waveform with options to vary the amplitude, number of cycles per second, offset, , number of points in a waveform and ∆ .
Solution) The corresponding front panel and the block diagram are shown below
Q6) Design a function generator VI to generate waveforms of sine wave, triangular wave,
saw tooth waveform, square waveform, amplitude modulated waveform, and
frequency modulated waveforms, AM and FM waveforms with parameter controls.
Solution) The corresponding front panel and the block diagram are shown below with
parameter controls.