Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
6 views48 pages

labview_updated

manual
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)
6 views48 pages

labview_updated

manual
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/ 48

VISVESVARAYATECHNOLOGICALUNIVERSITY

Jnana Sangama, Belagavi-590018

LABORATORY MANUAL

LABVIEW PROGRAMMING LABORATORY- BEC358A

Prepared by,

Mrs. Archana B K

DEPARTMENT OF ELECTRONICS & COMMUNICATION


ENGINEERING

DR.H N NATIONAL COLLEGE OF ENGINEERING


Bengaluru-
560070
2025 - 2026
1
DEPARTMENT OF ELECTRONICS AND COMMUNICATION
ENGINEERING

LABVIEW PROGRAMMING LABORATORY


BEC358A – 3 SEMESTER B.E.
[AS PER OUTCOME BASED EDUCATION (OBE) AND CHOICE BASED
CREDIT SYSTEM (CBCS) 2022 SCHEME]

AcademicYear–2025-2026 LAB

MANUAL

Prepared by:
Mrs. Archana B K
Department of ECE

Institute Vision & Mission

Our Vision

To become a premier education institute in the country, for providing futuristic


knowledge and profound skill in Engineering and Management, to produce global
active brains that will provide smart solutions in engineering for sustainable society.

Our Mission

• To impart the technical and managerial knowledge components, over an adorable


academic ambiance and enhanced learning over bench marked syllabus through
outcome-based education systems.

• To develop professional skills in the research over creative conducive atmosphere


of interdisciplinary research and innovations. To enhance collaborative and IPR skill,
through an active MOU with global organizations and clustering in emerging areas.

2
ProgramOutcomes(POs)

Engineering Graduates will be able to:

1. Engineering knowledge: Apply the knowledge of mathematics, science, engineering


fundamentals, and an engineering specialization to the solution of complex engineering problems.

2. Problem analysis: Identify, formulate, review research literature, and analyze complex
engineering problems reaching substantiated conclusions using first principles of mathematics,
natural sciences, and engineering sciences.

3. Design/development of solutions: Design solutions for complex engineering problems and


design system components or processes that meet the specified needs with appropriate consideration
for the public health and safety, and the cultural, societal, and environmental considerations.

4. Conduct investigations of complex problems: Use research-based knowledge and research


methods including design of experiments, analysis and interpretation of data, and synthesis of the
information to provide valid conclusions.

5. Modern tool usage: Create, select, and apply appropriate techniques, resources, and modern
engineering and IT tools including prediction and modeling to complex engineering activities with
an understanding of the limitations.

6. The engineer and society: Apply reasoning informed by the contextual knowledge to assess
societal, health, safety, legal and cultural issues and the consequent responsibilities relevant to the
professional engineering practice.

7. Environment and sustainability: Understand the impact of the professional engineering


solutions in societal and environmental contexts, and demonstrate the knowledge of, and need for
sustainable development.

8. Ethics:Applyethicalprinciplesandcommittoprofessionalethics and responsibilities and norms of


the engineering practice.

9. Individual and team work: Function effectively as an individual, and as a member or leader in
diverse teams, and in multidisciplinary settings.

10. Communication: Communicate effectively on complex engineering activities with the


engineering community and with society at large, such as, being able to comprehend and write
effective reports and design documentation, make effective presentations, and give and receive clear
instructions.

11. Project management and finance: Demonstrate knowledge and understanding of the
engineering and management principles and apply these to one’s own work, as a member and leader
in a team, to manage projects and in multidisciplinary environments.

12. Life-long learning: Recognize the need for, and have the preparation and ability to engage in
independent and life-long learning in the broadest context of technological change.

3
Course objectives:

1. Aware of various front panel controls and indicators.


2. Connect and manipulate nodes and wires in the block diagram.

3. Locate various tool bars and pull-down menus for the purpose of implementing
specific functions.

4. Locate and utilize the context help window.

5. Familiar with LabVIEW and different applications using it.

Course Outcomes:

At the end of the course student will be able to:

1. Use LabVIEW to create data acquisition, analysis and display operations.


2. Create user interfaces with charts, graph and buttons.
3. Use the programming structures and data types that exist in LabVIEW.
4. Use various editing and debugging techniques.

4
List of Experiments

Sl. No VI Programs (using LabVIEW software)

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 (For CIE)

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.

5
Assessment Details (both CIE and SEE)

The weightage of Continuous Internal Evaluation (CIE) is 50% and for Semester End
Exam (SEE) is 50%. The minimum passing mark for the CIE is 40% of the maximum
marks (20 marks out of 50) and for the SEE minimum passing mark is 35% of the
maximum marks (18 out of 50 marks). A student shall be deemed to have satisfied the
academic requirements and earned the credits allotted to each subject/ course if the
student secures a minimum of 40% (40 marks out of 100) in the sum total of the CIE
(Continuous Internal Evaluation) and SEE (Semester End Examination) taken together.

Continuous Internal Evaluation (CIE):

CIE marks for the practical course are 50 Marks.


The split-up of CIE marks for record/ journal and test are in the ratio 60:40.

 Each experiment is to be evaluated for conduction with an observation sheet and


record write-up. Rubrics for the evaluation of the journal/write-up for
hardware/software experiments are designed by the faculty who is handling the
laboratory session and are made known to students at the beginning of the
practical session.

 Record should contain all the specified experiments in the syllabus and each
experiment write-up will be evaluated for 10 marks.

 Total marks scored by the students are scaled down to 30 marks (60% of
maximum marks).

 Weightage to be given for neatness and submission of record/write-up on time.

 Department shall conduct a test of 100 marks after the completion of all the
experiments listed in the syllabus.

 In a test, test write-up, conduction of experiment, acceptable result, and


procedural knowledge will carry a weightage of 60% and the rest 40% for viva-
voce.

 The suitable rubrics can be designed to evaluate each student’s performance and

6
learning ability.

 The marks scored shall be scaled down to 20 marks (40% of the maximum
marks). The Sum of scaled-down marks scored in the report write-up/journal
and marks of a test is the total CIE marks scored by the student.

Semester End Evaluation (SEE):

 SEE marks for the practical course are 50 Marks.

 SEE shall be conducted jointly by the two examiners of the same institute,
examiners are appointed by the Head of the Institute.

 The examination schedule and names of examiners are informed to the


university before the conduction of the examination. These practical
examinations are to be conducted between the schedule mentioned in the
academic calendar of the University.

 All laboratory experiments are to be included for practical examination.

 (Rubrics) Breakup of marks and the instructions printed on the cover page of the
answer script to be strictly adhered to by the examiners. OR based on the course
requirement evaluation rubrics shall be decided jointly by examiners.

 Students can pick one question (experiment) from the questions lot prepared by
the examiners jointly.

 Evaluation of test write-up/ conduction procedure and result/viva will be


conducted jointly by examiners.

 General rubrics suggested for SEE are mentioned here, writeup-20%,


Conduction procedure and result in -60%, Viva-voce 20% of maximum marks.
SEE for practical shall be evaluated for 100 marks and scored marks shall be
scaled down to 50 marks (however, based on course type, rubrics shall be
decided by the examiners) Change of experiment is allowed only once and 15%
of Marks allotted to the procedure part are to be made zero. The minimum
duration of SEE is 02 hours

7
Table of Contents

Sl. No VI Programs (using LabVIEW software) Page. No


1 Basic arithmetic operations: addition, subtraction, multiplication
and division. 18
2 Boolean operations: AND, OR, XOR, NOT and NAND. 20
3 Sum of ‘n’ numbers using ‘for’ loop.
23
4 Factorial of a given number using ‘for’ loop.
25
5 Determine square of a given number.
27
6 Factorial of a given number using ‘while‘ loop. 29
7 Sorting even numbers using ‘while’ loop in an array. 31
8 Finding the array maximum and array minimum.
34
Demonstration Experiments (For CIE)

9 Build a Virtual Instrument that simulates a heating and cooling


system. The system must be able to be controlled manually or 36
automatically.
10 Build a Virtual Instrument that simulates a Basic Calculator
40
(using formula node).
11 Build a Virtual Instrument that simulates a Water Level
42
Detector.
12 Demonstrate how to create a basic VI which calculates the area 46
and perimeter of a circle.

8
INTRODUCTION

LabVIEW (short for Laboratory Virtual Instrumentation Engineering


Workbench) is a platform and development environment for a visual
programming language from National Instruments. The graphical language
is named "G". LabVIEW is commonly used for data acquisition,
instrument control, and industrial automation on a variety of platforms
including Microsoft Windows, various flavors of UNIX, Linux, and Mac
OS
X. The latest versions of LabVIEW are versions LabVIEW 2023 Q1 and
LabVIEW NXG 5.1.

The code files have the extension “.vi”, which is an abbreviation for “Virtual
Instrument”. LabVIEW offers lots of additional Add-Ons and Toolkits.

Key features:

• Dataflow Programming:

LabVIEW utilizes a dataflow programming language known


as "G." The language's execution is based on a graphical block
diagram, where nodes are connected by wires, enabling parallel
execution. The programming environment includes graphical
representation of user interfaces, called front panels, and
programs/subroutines called virtual instruments (VIs). VIs consists
of a block diagram, front panel, and connector panel.

9
Graphical Programming:

LabVIEW employs a graphical programming approach, integrating


user interface creation, known as front panels, into the development cycle.
The connector panel represents the VI in the block diagrams of other
calling VIs. Controls and indicators on the front panel enable operators to
input or extract data from a running virtual instrument. The front panel can
serve as a user interface or a programmatic interface, defining inputs and
outputs when dropped onto the block diagram. This approach facilitates
easy testing of each VI before embedding it as a subroutine into a larger
program. The graphical method allows non-programmers to create
programs by dragging and dropping virtual representations of lab
equipment. LabVIEW supports building stand-alone applications and
distributed applications using a client/server scheme.

Benefits:

• LabVIEW provides robust support for accessing a wide range of


instrumentation hardware.
• Drivers and abstraction layers are available for various instruments
and buses, presenting themselves as graphical nodes within the
programming environment.
• Instruments and buses are represented as graphical nodes, simplifying the
integration of hardware components into LabVIEW programs.
• Abstraction layers in LabVIEW offer standard software interfaces,
streamlining communication with diverse hardware devices.
• LabVIEW's provided driver interfaces contribute to significant time
savings in program development.

10
• National Instruments emphasizes that LabVIEW enables individuals
with limited coding experience to write programs and deploy test solutions
efficiently.
• The graphical programming environment allows for intuitive program
development.
• LabVIEW's design and toolsets aim to reduce the time required for
program development compared to more conventional or competing
systems.
• The introduction of a new hardware driver topology, DAQmx Base, mainly
consists of G-coded components with minimal register calls through NI
Measurement Hardware DDK functions.
• This topology provides platform-independent hardware access to numerous
data acquisition and instrumentation devices.
• The DAQmx Base driver is available for LabVIEW on Windows, Mac OS
X, and Linux platforms, offering flexibility and compatibility across
different operating systems.

11
STARTING WITH LABVIEW

Each VI has two major components

i. Front Panel

ii. Block Diagram

Fig 1 LabVIEW interface showing Front Panel (Left) and Block Diagram
(Right)

12
1. The Front Panel:

• This is used to build the front-end user interface.

• The Front Panel consists of Controls (Inputs) and Indicators (Outputs)


o Controls are input terminals, which allow a user to provide input to the VI.
o Indicators are outputs, which display the result of the VI operations to the user.
o Controls and Indicators can be placed from the Controls Palette on the Front
Panel.
o Control and Indicator names can be edited by double clicking on the
text above the corresponding panels.
o When a Control or Indicator is placed on the front panel the
corresponding block diagram element is created automatically.
o The Front Panel also allows the user to create structures like lists,
tables, trees, and allows the creation of Interface elements like graphs,
Waveforms, Plots, etc.
• It also allows for a User interface where data can be acquired through
external hardware devices supported by LabVIEW.
Note: Block diagram controls have data terminals on the right while
indicators have data terminals on the left.

• The major DataTypes available in the Front Panel are:

 Booleans – Boolean Logical Data. Can be either True or False.


These are indicated by GREEN data wires.

 Numeric – Numerical valued Data. They can be integers or


fractions, real or complex, signed or unsigned. The range of values
depends on the number of bits used. Example datatypes are Single
Precision, Double Precision, Fixed Point, Integer, Unsigned Integer,
Long, Byte, etc. These are indicated by BLUE data wires (Integer) or
ORANGE data wires (Floating point)
13
 Strings - Sequences of alphanumeric characters. These are indicated
by PINK data wires.

 Arrays - Groups of the same data type. Arrays can be 1 or 2


dimensional in LabVIEW. These are indicated by THICK data
wires; whose color depends on the data type of the array elements.
 Clusters - Groups of various data types. These are indicated by
THICK BROWN data wires.

 Error Cluster – A special type of cluster used to indicate warnings and


errors.

Fig 2. Function Palette showing the Numeric Subpalette with various Numerical
function blocks

14
2. The Block Diagram:

• This is the back panel, where the data processing is done.

• The Block Diagram consists of terminals corresponding to the Front


Panel items, functions, subroutines, structures, etc. These are used to
perform operations on the input data from the Controls and send the
results to the Indicators in the Front
Panel.
• Right-click in the block diagram pane to bring up the Functions Palette.
Functions Palette contains Primitives, VIs, Express VIs, and Structures
for application code development.
• Place controls and indicators on the front panel. Switch to the block
diagram, add necessary function blocks from the Functions Palette.
Connect nodes using wires to indicate the data flow direction in the
diagram.
• Wire color indicates the type of data flowing in the circuit. Mismatched
data types between blocks result in errors.
• Broken wires signify connections not made; a VI won't run with broken wires.

• Broken Run Arrow during runtime indicates a compilation error.

15
Steps to Create and Run a VI in LabVIEW:

Step 1: Double Click on the LabVIEW icon on the desktop. This will
bring up an interface asking the user to Open Existing Projects or to
Create a New Project. Click on “Create Project” and then “Blank VI”

Step 2: Once the Blank VI is opened, press Ctrl+T to line up the Front
Panel (grey with grids) and Block Diagram panes adjacent to one
another. This makes working with the panels very convenient.

Step 3: Add the appropriate Controls and Indicators from the Controls
Palette in the Front Panel. This will create corresponding Input and Output
terminals in the Block Diagram.
Step 4: In the Block Diagram, right click in the white space to bring up
the Functions Palette. Select the appropriate functions or structure
blocks and place them in the Block Diagram pane.

Step 5: Make the necessary connections by drawing wires between the


corresponding terminals. Data input terminals are to the left and output
terminals are to the right side of the blocks.
Step 6: Save the VI by clicking on File > Save As section. Provide and
appropriate name, and use the extension “.vi”.

16
Step 7: If the “Run” button shows a broken arrow, click on it to check the
error. Fix all the shown errors and then Run the Program.

Step 8: Click on the Run button at the top of either the Front Panel or
the Block Diagram. There are two options – “Run” runs the VI once.
“Run Continuously” keeps the VI running till the Stop or Pause buttons
are pressed.

Step 9: Provide the appropriate Inputs in the Controls and check the outputs
shown in the Indicators, to ensure that the VI is working properly.

17
Experiment 1:
Basic Arithmetic Operations

Aim: To build a VI to perform Basic Arithmetic Operations: Addition,


Subtraction, Multiplication and Division

Components Needed:
Front Panel: Numeric Palette: Numeric Controls (2), Numeric Indicators (4) Block
Diagram: Numeric Palette: Add (1), Subtract (1), Multiply (1), Divide (1).

Algorithm:

Step 1: Start the Lab view and select the blank

VI. Step 2: Create front and block diagram

panel.

Step 3: Numeric controls 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.
Step 6: Input values are given in the front panel and the program is

executed. Hence the output is generated.

Result: Thus, the arithmetic operations were performed and the result is
verified using lab view.

18
Block Diagram:

Sample Output:

19
Experiment 2:
Boolean Operations

Aim: To design a VI to Implement Boolean Operations: AND, OR, XOR, NOT,


NAND
Components Needed:

Front Panel: Boolean Palette: Boolean Controls (2), Boolean Indicators (5) Block
Diagram: Boolean Palette: And (1), Or (1) , Exclusive Or (1) , Not (1)
Not And (1)

Algorithm:

Step 1: Start the LabVIEW and select the

blank VI. Step 2: Create front and block

diagram panel.

Step 3: To perform Boolean operation push buttons are taken as inputs and round
LED as output.
Step 4: Different Boolean operations such as AND, OR, XOR, NOT, NAND are
selected from the block diagram panel.
Step 5: Boolean inputs and outputs are wired in the block diagram
panel. Step 6: Logic values 0 & 1 are given in the front panel and the
program is executed.

20
Truth Table:

Result: Thus, the Boolean operation using LAB view is performed.

21
Block Diagram:

Sample Output:

22
Experiment 3:

Sum of N numbers using “FOR” Loop

Aim: To design a VI to evaluate the Sum of “N” numbers using “FOR” loop.

Components Needed:
Front Panel: Numeric Palette: Numeric Controls (1), Numeric Indicator (1) Block
Diagram: Structures Palette: For Loop (1), Numeric Palette: Add (1), Increment (1),
Numeric Constant (1)

Algorithm:

Step 1: Create blank VI.

Step 2: Right click on the block diagram panel, select program, go to structures
and select a FOR loop.
Step 3: Right click on the border of the FOR loop and select add shift register,
borders are converted into shift register.
Step 4: Using wiring operations required connections are given in the block
diagram. Step 5: Inputs are given in the front panel and the program is
executed.

Result: A VI was built to evaluate the sum of the first N numbers using FOR
loop, and the results were verified with manual calculation.

23
Front Panel:

Block Diagram:

Sample Output:

24
Experiment 4:

Factorial of a given number using ‘for’ loop.

Aim: To design a VI to evaluate the Factorial of a given number using “FOR” loop.

Components Needed:
Front Panel: Numeric Palette: Numeric Controls (1), Numeric
Indicator (1) Block Diagram: Structures Palette: For Loop (1),
Numeric Palette: Multiply (1), Increment (1), Numeric Constant (1)

Algorithm:

Step 1: Create blank VI.

Step 2: Right click on the block diagram panel, select program, go to structures
and select a FOR loop.
Step 3: Right click on the border of the FOR loop and select add shift register,
borders are converted into shift register.
Step 4: Using wiring operations required connections are given in the block
diagram. Step 5: Inputs are given in the front panel and the program is
executed.

Result: A VI was built to evaluate the factorial of a given number using FOR
loop, and the results were verified with manual calculation.

25
Front Panel:

Block Diagram:

Sample Output:

26
Experiment 5:

Determine square of a given number.

Aim: To design a VI to calculate the Square of a given Number.

Components Needed:

Front Panel: Numeric Palette: Numeric Control (1), Numeric

Indicator (1) Block Diagram: Numeric Palette: Square (1)

Algorithm:

Step 1: Create blank VI.

Step 2: Create front and block diagram panel.

Step 3: Numeric controls are given as inputs and numeric indicators are given as
output; they are selected by right clicking on the front panel.
Step 4: Arithmetic operator square is generated in block diagram panel.

Step 5: Using wiring operations required connections are given in the block
diagram. Step 6: Inputs are given in the front panel and the program is
executed.

Result: A VI was built to evaluate the square of a given number, and the results
were verified with manual calculation.

27
Front Panel:

Block Diagram:

Sample Output:

28
Experiment 6:

Factorial of a given number using ‘while’ loop.

Aim: To design a VI to evaluate the Factorial of a given number using “While”


Loop.

Components Needed:

Front Panel: Numeric Palette: Numeric Controls (1), Numeric Indicator (1) Block
Diagram: Structures Palette: While Loop (1), Numeric Palette:
Multiply (1), Increment (1), Numeric Constant (1) Comparison Palette:

Equal? (1)

Algorithm:

Step 1: Create blank VI.

Step 2: Right click on the block diagram panel, select program, go to structures
and select a WHILE loop.

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

Step 4: Using wiring operations required connections are given in the block

diagram. Step 5: Inputs are given in the front panel and the program is

executed.

Result: A VI was built to evaluate the factorial of a given number using WHILE
29
loop, and the results were verified with manual calculation.

30
Front Panel:

Block Diagram:

Sample Output:

31
Experiment 7:

Sorting even numbers using ‘while’ loop in an


array.

Aim: To design a VI to sort Even Numbers using “While” Loop in an Array


Components Needed:
Front Panel: Silver →Data Containers: Array Numeric (3)

Block Diagram: Structures Palette: While Loop (1), Numeric Palette: Increment (1),
Quotient & Remainder (1), Comparison Palette: Equal? (1), Equal to 0? (1), Select
(1) Array Palette: Array Size (1), Index Array (1), Sort 1D Array (1)

Algorithm:

Step 1: Create blank VI.

Step 2: Right click on the block diagram panel, select program, go to structures
and select a WHILE loop.
Step 3: Create an array index in the while loop and its control. Go to array and
select, array size, sort 1D array. Create numeric controls to it.

Step 4: Select quotient remainder from numeric control; equals, equal to 0 and
increment operator from comparison.

Step 5: Go to loop tunnel, change it indexing and conditional.

Step 6: Using wiring operations required connections are given in the block

diagram.

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

Result: A VI was built to accept N numbers in an array, and to sort the

even numbers and display the result.

32
Front Panel:

Block Diagram:

33
Sample Output:

34
Experiment 8:

Finding the array maximum and array


minimum.

Aim: To design a VI to find the Maximum and Minimum values in an Array.

Components Needed:

Front Panel: Numeric Palette: Numeric

Control (1) Numeric Indicator (1)

Silver → Data Containers: Array (1)

Block Diagram: Array Palette: Array Max & Min (1)

Algorithm:

Step 1: Create blank VI.

Step 2: Right click on the front panel →modern →array→ array matrix→
numeric control. Step 3: Create two numeric indicators in the front panel for
maximum value and minimum value.

Step 4: Using wiring operations required connections are given in the


block diagram. Step 5: Inputs are given in the front panel and the program
is executed.

Result: A VI was built to find and display the Maximum and Minimum values in
the array.

35
Front Panel:

Block Diagram:

Sample Output:

36
Experiment 9:

Build a Virtual Instrument that simulates a heating and cooling


system. The system must be able to be controlled manually or
automatically.

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

Components Needed:
Front Panel: Boolean Palette: Boolean Push buttons (3), Boolean LEDs (4)
Thermometer (1)
Block Diagram: Boolean constant, Comparison (greater than or equal to,
lesser than), numeric constant, In Range and Coerce (1), Case Structure
(1), AND gate (1), NOT gate (2).

Algorithm:

Step 1: Create blank VI.

Step 2: Create a three push buttons for Manual, Heater and Cooler and 3 LEDs
for Manual, Heater, Cooler and Normal.

Step 3: Create a Thermometer to the front panel.

Step 4: In the Block diagram open a case structure and connect the manual
button as input to the case.

Step 5: When manual input is TRUE, then irrespective of the thermometer


temperature, the Cooler and Heater will be ON only when the corresponding
switches are ON. If none of them are ON then the temperature is indicated as
NORMAL.
37
Step 6: When the manual input is FALSE, then if the temperature in the
thermometer is greater than or equal to 35 then Cooler is ON, if it is less than 20,
then Heater is ON and if the temperature is in between this range then Normal is
ON.

Result: A VI was built to simulate a heating and cooling system. The System was
designed to be capable of being controlled automatically or manually.

Front Panel:

38
Block Diagram:

39
Sample Output:

40
Experiment 10:

Build a Virtual Instrument that simulates a Basic Calculator (using formula

node).

Aim: To build a VI to simulate a Basic Calculator Formula Node.

Components Needed:

Front Panel: Numeric Palette: Numeric Controls (2) Numeric

Indicators (5) Block Diagram: Structures Palette: Formula Node (1)

Algorithm:

Step 1: Create blank VI.

Step 2: Create Input Controls and Output indicators in Front Panel. Add
Formula Node in Block Diagram.

Step 3: Create Local Input and Output Variables in Formula Node.

Step 4: Write the Equations in Formula Node, linking Local Input and Output

Variables. Step 5: Connect the local variables to the corresponding Controls

and Indicators.

Result: A VI was built to simulate a simple calculator using Formula Node. The
results were verified using manual calculations.

41
Front Panel:

Block Diagram:

Sample Output:

42
Experiment 11:

Build a Virtual Instrument that simulates a Water Level Detector.

Aim: To build a VI that Simulates a Water Level Detector

Components Needed:

Front Panel: Numeric – Tank (1), Knob (1), Numeric Indicator (1), Boolean

indicator (2) Block Diagram: Comparison – greater than or equal to (1), less

than (1)

Algorithm:

Step 1: Create blank VI.

Step 2: Create a numeric indicator to indicate water level and two Boolean
round LEDs to indicate water level as more or less.

Step 3: When the knob is rotated, the water level in the tank

varies. Step 4: This level is indicated in the water level

indicator.

Step 5: When the water level crosses 8, Water level more LED

glows.

Step 6: When the water level is less than 2, water level less

LED glows.

Result: A VI was built to simulate a simple calculator using Formula Node. The results
43
were verified using manual calculations.

Front Panel:

Block Diagram:

44
Sample Output :

45
46
Experiment 12:

Demonstrate how to create a basic VI which calculates the area and


perimeter of a
circle.

Aim: To build a VI that calculates the Area and Perimeter of a Circle

Components Needed:

Front Panel: Numeric Palette: Numeric Control (1), Numeric Indicators (2) Block
Diagram: Structures Palette: Formula Node (1), Numeric Palette: Math Constant: pi
(1)

Algorithm:

Step 1: Create blank VI.

Step 2: Create Input Control and Output indicators in Front Panel. Add Formula
Node in Block Diagram.

Step 3: Create Local Input and Output Variables in Formula Node.

Step 4: Write the Equations in Formula Node, linking Local Input and Output

Variables. Step 5: Connect the local variables to the corresponding Controls

and Indicators.

Result: A VI was built to calculate the Area and Perimeter for a Circle, given the
Radius as Input. The results were verified with manual calculations.

47
Front Panel:

Block Diagram:

Sample Output:

48

You might also like