0% found this document useful (0 votes)
52 views

SDA Exp.4

1. The student designed a virtual function generator in LabVIEW using case structures and loops to generate different waveforms. 2. The front panel included knobs to control amplitude, frequency, and other parameters. The block diagram used a case structure with different VIs to generate sine, sawtooth, triangular and square wave signals. 3. The student observed that a case structure executes the appropriate case depending on the input, while loops and for loops are used for iterative processes. They learned about concepts like duty cycle, DC offset, and peak-to-peak voltage.

Uploaded by

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

SDA Exp.4

1. The student designed a virtual function generator in LabVIEW using case structures and loops to generate different waveforms. 2. The front panel included knobs to control amplitude, frequency, and other parameters. The block diagram used a case structure with different VIs to generate sine, sawtooth, triangular and square wave signals. 3. The student observed that a case structure executes the appropriate case depending on the input, while loops and for loops are used for iterative processes. They learned about concepts like duty cycle, DC offset, and peak-to-peak voltage.

Uploaded by

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

Experiment 1.

Student Name: Ajay Kumar UID: 19BEM1017


Branch: B.E.(MECH) Group: 1
Semester: 3RD Date of Performance: 17/08/2020
Subject Name: SDA LAB Subject Code: MTP-205

1. Aim/Overview of the practical: Design a LABVIEW project to design a virtual function


generator using loops and case structures.

2. Task to be done:

Design a virtual function generator using case structure adding different case statements
of a) sine b) sawtooth c) triangular d) square signals.

Add knobs of amplitude, frequency, and phase control blocks in the front panel to control the
working of the function generator.

3. Apparatus: LABVIEW 2020 Community Edition


4. Algorithm: ----N/A----

5. Theme/Interests definition:

----N/A----

6. Steps for experiment/practical:


1. Open the LabVIEW software.
2. In front panel right click to open controls palette.
3. Bring out two knobs and name them amplitude and frequency respectively.
4. Also bring numerical control and name them duty cycle (%) and DC offset.
5. Bring out waveform chart to get the output.
6. In the block diagram place case structure from function palette.
7. For opening the inbuilt VI of function generator go to
Function palette > signal processing > wfm generator > basic funcGen
8. Make three more copies of VI.
9. Put one VI inside the case structure.
10. Right click and make controller for the VI and put it out of the case structure.
11. Now connect all the controllers and waveform graph to the VI.
12. Do the same for other cases.
13. Put this code inside a while loop and make a controller to stop the while loop.
14. Place wait function in the while loop and make constant input of 100 milliseconds.
15.Now run the program to take output.

7. Observations/Discussions:
The comparison between for-loop, while-loop and case structure are illustrated below: -

For loop While loop Case structure


In case structure, there
While loop is used to
For Loop is used to are different cases.
perform the iteration over
perform the iteration for a Which case will execute
and over until a condition is
certain number of times. is depends upon the
satisfied.
input.

Function generator: A function generator is a specific form of signal generator that is able
to generate waveforms with common shapes. It can create repetitive waveforms with a
number of common shapes. In addition to producing sine waves, function generators may
typically produce other repetitive waveforms including sawtooth, triangular waveforms,
square waves, and pulses. Another feature included on many function generators is the
ability to add a DC offset.

8. Percentage error (if any or applicable):

----N/A----

9. Calculations/ Chemical Reactions / Theorems /Formulas used etc:

----N/A----

10. Result/Output/Writing Summary:

Hence we can design devices virtually in LABVIEW.


11. Graphs (If Any): Image /Soft copy of graph paper to be attached here

1. Sine wave:
2. Triangle wave:
3. Square Wave:
4. sawtooth:
Learning outcomes (What I have learnt):

1. I have learnt how to design the function generator.


2. I have learnt how to create while loop, case structure and for loop.
3. I have learnt about terms like DC offset, peak to peak voltage, DC offset and duty
cycle.
4. I have learnt the basic difference between for loop, case structure and while loop.
5. I have learnt how to use inbuilt VI’s.

Evaluation Grid:

Sr. No. Parameters Marks Obtained Maximum Marks


1. Student Engagement in 5
Simulation/Demonstration/Performance
and Controls/Pre-Lab Questions.
2. Theoretical overview of the 5
experiment. (Post Lab Quiz Result)
3. Completion of worksheet with learning 10
outcomes along with cleanliness and
discipline.
Total Marks Obtained: 20

Signature of Faculty (with Date):

You might also like