0% found this document useful (0 votes)
81 views35 pages

LabView Manual

BEC358A_LABVIEW-VTU_EBILITY ENHANCEMENT COURSE -MANUAL

Uploaded by

divya
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)
81 views35 pages

LabView Manual

BEC358A_LABVIEW-VTU_EBILITY ENHANCEMENT COURSE -MANUAL

Uploaded by

divya
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/ 35

LabView Programming Basics MANUAL (BEC358A

LabView Programming Basics MANUAL


(BEC358A)
LABORATORY MANULAL

Prepared By :Mrs.Divya K
Name of the instructor :Mr.Anil Kumar Shetty

DEPARTMENT OF
ELECTRONICS AND COMMUNICATION ENGINEERING

Department of ECE, Moodlakatte Institute of Technology, Kundapura Page 1/35


LabView Programming Basics MANUAL (BEC358A

List of Experiments

1. Basic arithmetic operations: addition, subtraction, multiplication and division

2 Boolean operations: AND, OR, XOR, NOT and NAND

3 Sum of ‘n’ numbers using ‘for’ loop

4 Factorial of a given number using ‘for’ loop

5 Determine square of a given number

6 Factorial of a given number using ‘while ‘loop

7 Sorting even numbers using ‘while’ loop in an array

8 Finding the array maximum and array minimum

Demonstration Experiments:
9. Build a Virtual Instrument that simulates a heating and cooling system. The
system must be able to be controlled manually or automatically.

10. Build a Virtual Instrument that simulates a Basic Calculator (using formula node).

11 Build a Virtual Instrument that simulates a Water Level Detector.

12 Demonstrate how to create a basic VI which calculates the area and perimeter of a circle.

Department of ECE, Moodlakatte Institute of Technology, Kundapura Page 2/35


LabView Programming Basics MANUAL (BEC358A

ExpNo:1 BASIC ARITHMETIC OPERATIONS

Aim: To perform basic arithmetic operations - addition, subtraction, multiplication and division
using Labview.

Procedure:

Step1: Start the Labview and select the blank VI.

Step 2: Create front and block diagram panel.

Step 3: The push buttons/Toggle Switches are given as inputs and numeric indicators are given
as output they are selected by right clicking on the front panel.

Step 4: Different arithmetic operators such as addition, subtraction, multiplication and division
are generated in block diagram panel.

Step 5: Using wiring operation inputs and outputs are connected to the respective operators in the
block diagram panel.

Step6:Input values are given in the front panel and the program is executed. Hence the output is
generated.

Block Diagram:

Department of ECE, Moodlakatte Institute of Technology, Kundapura Page 3/35


LabView Programming Basics MANUAL (BEC358A

Front Panel:

Result:

Thus the arithmetic operations were performed and the resulti s verified using lab view.

Department of ECE, Moodlakatte Institute of Technology, Kundapura Page 4/35


LabView Programming Basics MANUAL (BEC358A

Exp No:2

BOOLEAN OPERATIONS

Aim: To perform Boolean operations using Labview.

Theory:
Truth Table of Boolean Operations are given in figure below. The Boolean inputs are given by
push buttons/Toggle Switches in front panel .The output is observed via round/square LEDs.

Procedure:

Step1: Start the Labview and select the blank VI.

Step 2: Create front and block diagram panel.

Step 3: The push buttons/Toggle Switches are given as inputs and round/square LED as
output.

Step 4: Different Boolean operations such as AND, OR, XOR, NOT, NAND are selected from
the block diagram panel.

Step5: Boolean inputs and outputs are wired in the block diagram panel.

Step6: Logicvalues 0&1 are given in the front panel and the program is executed.

Department of ECE, Moodlakatte Institute of Technology, Kundapura Page 5/35


LabView Programming Basics MANUAL (BEC358A

Block diagram:

Department of ECE, Moodlakatte Institute of Technology, Kundapura Page 6/35


LabView Programming Basics MANUAL (BEC358A

RESULT:

Thus the Boolean operation using LAB view is performed.

Department of ECE, Moodlakatte Institute of Technology, Kundapura Page 7/35


LabView Programming Basics MANUAL (BEC358A

ExpNo:3

SUM OF ‘n’ NUMBERS USING ‘FOR’ LOOP

Aim: To find the sum of ‘n’ numbers using FOR loop.

Procedure:

Department of ECE, Moodlakatte Institute of Technology, Kundapura Page 8/35


LabView Programming Basics MANUAL (BEC358A

Step8: Inputs are given in the front panel and the program is executed.

Block Diagram:

Result: Thus the sum of ‘n’ natural numbers using FOR loop is performed in LABview.

Department of ECE, Moodlakatte Institute of Technology, Kundapura Page 9/35


LabView Programming Basics MANUAL (BEC358A

Department of ECE, Moodlakatte Institute of Technology, Kundapura Page 10/35


LabView Programming Basics MANUAL (BEC358A

ExpNo:4

FACTORIALOFAGIVENUMBERUSINGFOR LOOP

Aim:. To perform the factorial of a given number using FOR loop.

Department of ECE, Moodlakatte Institute of Technology, Kundapura Page 11/35


LabView Programming Basics MANUAL (BEC358A

Block Diagram:

Department of ECE, Moodlakatte Institute of Technology, Kundapura Page 12/35


LabView Programming Basics MANUAL (BEC358A

Result: Thus the factorial of a given number using FOR loop is performed in LAB view.

Department of ECE, Moodlakatte Institute of Technology, Kundapura Page 13/35


LabView Programming Basics MANUAL (BEC358A

Department of ECE, Moodlakatte Institute of Technology, Kundapura Page 14/35


LabView Programming Basics MANUAL (BEC358A

Department of ECE, Moodlakatte Institute of Technology, Kundapura Page 15/35


LabView Programming Basics MANUAL (BEC358A

ExpNo:6

FACTORIAL OF A GIVEN NUMBER USING WHILE LOOP

Aim: To perform the factorial of a given number using WHILEloop.


Theory:

Algorithm:

Step1:Create blank VI.

Step2:Right click on the block diagram panel, select program, goto structures and select a
WHILE loop.

Step3: Right click on the border of the WHILE loop and select add shift register, borders are
converted into shift register.

Step4: Using wiring operations required connections are given in the block diagram.

Step5: Inputs are given in the front panel and the program is executed.

Department of ECE, Moodlakatte Institute of Technology, Kundapura Page 16/35


LabView Programming Basics MANUAL (BEC358A

Block diagram panel:

Result: Thus the factorial of the given number using WHILE loop is performed.

Department of ECE, Moodlakatte Institute of Technology, Kundapura Page 17/35


LabView Programming Basics MANUAL (BEC358A

ExpNo:7

SORTIN GEVEN NUMBERS USING WHILE LOOP IN AN ARRAY

Aim: To sort even numbers using WHILE loop in an array.


Theory:

Department of ECE, Moodlakatte Institute of Technology, Kundapura Page 18/35


LabView Programming Basics MANUAL (BEC358A

Department of ECE, Moodlakatte Institute of Technology, Kundapura Page 19/35


LabView Programming Basics MANUAL (BEC358A

Result: Thus the even numbers from the given set of numbers is sorted using WHILE loop in an
array.

Department of ECE, Moodlakatte Institute of Technology, Kundapura Page 20/35


LabView Programming Basics MANUAL (BEC358A

ExpNo:8

ARRAY MAXIMUM AND MINIMUM

Aim: To find the maximum and minimum variable from an array.

Algorithm:

Department of ECE, Moodlakatte Institute of Technology, Kundapura Page 21/35


LabView Programming Basics MANUAL (BEC358A

Block diagram panel:

Result: Hence the maximum and minimum values of array were displayed using Labview.

Department of ECE, Moodlakatte Institute of Technology, Kundapura Page 22/35


LabView Programming Basics MANUAL (BEC358A

Department of ECE, Moodlakatte Institute of Technology, Kundapura Page 23/35


LabView Programming Basics MANUAL (BEC358A

Department of ECE, Moodlakatte Institute of Technology, Kundapura Page 24/35


LabView Programming Basics MANUAL (BEC358A

Department of ECE, Moodlakatte Institute of Technology, Kundapura Page 25/35


LabView Programming Basics MANUAL (BEC358A

Output/Front panel:

Department of ECE, Moodlakatte Institute of Technology, Kundapura Page 26/35


LabView Programming Basics MANUAL (BEC358A

Experiment-10

Department of ECE, Moodlakatte Institute of Technology, Kundapura Page 27/35


LabView Programming Basics MANUAL (BEC358A

Block Diagram:

Department of ECE, Moodlakatte Institute of Technology, Kundapura Page 28/35


LabView Programming Basics MANUAL (BEC358A

Department of ECE, Moodlakatte Institute of Technology, Kundapura Page 29/35


LabView Programming Basics MANUAL (BEC358A

Department of ECE, Moodlakatte Institute of Technology, Kundapura Page 30/35


LabView Programming Basics MANUAL (BEC358A

Procedure:

Department of ECE, Moodlakatte Institute of Technology, Kundapura Page 31/35


LabView Programming Basics MANUAL (BEC358A

Department of ECE, Moodlakatte Institute of Technology, Kundapura Page 32/35


LabView Programming Basics MANUAL (BEC358A

Department of ECE, Moodlakatte Institute of Technology, Kundapura Page 33/35


LabView Programming Basics MANUAL (BEC358A

Department of ECE, Moodlakatte Institute of Technology, Kundapura Page 34/35


LabView Programming Basics MANUAL (BEC358A

Department of ECE, Moodlakatte Institute of Technology, Kundapura Page 35/35

You might also like