0% found this document useful (0 votes)
5 views21 pages

Ilovepdf Merged

Uploaded by

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

Ilovepdf Merged

Uploaded by

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

“Virtual Calculator Shapes Using LabVIEW”

PROJECT REPORT (BEC358A)


Submitted in partial fulfillment of the requirements for the award of

Bachelor of Engineering
In
Electronics and Communication Engineering

Submitted to

Visvesvaraya Technological University


Belagavi – 590018, Karnataka.

Submitted By

Lavanya S.V. (2KE23EC055)

Kiran Patil (2KE23EC054)

Devansh Rastogi (2KE23EC037)

Keerti M.H. (2KE23EC051)

Under the Guidance of

Mrs. Kavita G Killiketar


Department of Electronics and Communication Engineering
(NBA Accredited)

K. L. E. SOCIETY’S
K. L. E. INSTITUTE OF TECHNOLOGY,
(Affiliated to VTU, Approved by AICTE and ISO 21001:2018 Certified Institute)
(ALL UG PROGRAMS ARE ACCREDITED BY NBA)
Hubballi-27

2024-2025
K. L. E .SOCIETY’S
K.L.E. INSTITUTE OF TECHNOLOGY
(Affiliated to VTU, Approved by AICTE and ISO 21001:2018 Certified Institute)
(ALL UG PROGRAMS ARE ACCREDITED BY NBA)
Hubballi-27
K.L.E.S Department of Electronics and Communication Engineering

CERTIFICATE

This is to certify that the Major Project work entitled “Virtual Calculator Using
LabVIEW” is a bonafide work carried out by Lavanya S.V. (2KE23EC055), Kiran Patil
(2KE23EC054), Devansh Rastogi (2KE23EC037), Keerti M.H. (2KE23EC051), in
partial fulfilment for the award of degree of Bachelor of Engineering in III Semester,
Electronics and Communication Engineering, K.L.E. Institute of Technology under
the Visvesvaraya Technological University, Belagavi, during the year 2024-2025. It is
certified that all corrections/suggestions indicated for internal assessment have been
incorporated in the report deposited in the department library. The Mini Project report has
been approved as it satisfies the academic requirements in respect of Mini Project work
prescribed for the said degree.

GUIDE: Mrs. Kavita G. Killiketar HOD: Dr. G.A. Bidkar


(Assistant Professor)
DECLARATION

We, Lavanya S.V. (2KE23EC055), Kiran Patil (2KE23EC040), Devansh Rastogi


(2KE23EC037), Keerti M.H. (2KE23EC051), students of III Semester B.E., K.L.E. Institute
ofTechnology, Hubballi, hereby declare that the project work has been carried out by us and
submitted in partial fulfilment of the requirements for the III Semester degree of Bachelor of
Engineering in Electronics and Communication Engineering of Visvesvaraya Technological
University, Belagavi during academic year 2024-2025.

Lavanya S.V. (2KE23EC055)

Kiran Patil (2KE23EC054)

Devansh Rastogi (2KE23EC037)

Keerti M.H. (2KE23EC051)

Place: Hubballi
ACKNOWLEDGEMENT

The project report on “Virtual Calculator Using LabVIEW” is the outcome of guidance, moral
support and devotion bestowed on me throughout our work. For this we acknowledge and
express our profound sense of gratitude and thanks to our guide Mrs. Kavita G Killiketar our
acknowledge that we have learnt the importance of research and good presentation skills .

We feel deeply indebted to our HOD Dr. G.A. Bidkar for the constant support and
encouragement in all our endeavors. The academic ambience has helped us to excel in our
academics.

We take this opportunity offer our sincere thanks to our beloved Principal Dr. Manu T.M. who is
always keen on enhancing the quality of teaching-learning and always a source of inspiration to
us. We would like to thank our Dean Academics and Dean S.W.O Dr.Yerriswamy T. for his
constant encouragement for our academic progress.

Finally, we would like to thank all the Technical and Non-Technical staff of Electronics and
Communication department for their valuable help and support.
ABSTRACT

Virtual Calculator Using LabVIEW

This project presents the design and implementation of a virtual calculator using LabVIEW
(Laboratory Virtual Instrument Engineering Workbench). The calculator is developed as a graphical
user interface (GUI) application to perform basic arithmetic operations, including addition,
subtraction, multiplication, and division. Utilizing LabVIEW’s intuitive visual programming
environment, the project demonstrates the potential of graphical coding in developing interactive and
user-friendly applications.

The virtual calculator integrates user input through control elements and displays the results
dynamically, emphasizing real-time computation and seamless data flow. This project highlights
LabVIEW's capability to simplify mathematical problem-solving and underscores its broader
applications in engineering and scientific domains.

The design is modular, scalable, and adaptable, providing a foundation for extending functionalities,
such as integrating advanced mathematical operations or linking with external hardware for
enhanced use cases.

This virtual calculator serves as an educational tool, showcasing the versatility of LabVIEW for
beginners and professionals aiming to explore virtual instrument development.
INDEX

Chapter no. Chapter Name Page no.


1. Introduction to LabVIEW 01
2. Working 05
3. 07

4. Algorithm 11
5. Flow chart 11
6. Working Model 12
7. Advantages and Applications 14
8. Conclusion 15
Virtual Calculator Using LabVIEW

Introduction to LabVIEW

LabVIEW (Laboratory Virtual Instrument Engineering Workbench) is a system-design platform


and development environment widely used for measurement, automation, and data visualization
applications. Developed by National Instruments, LabVIEW uses a graphical programming language
called G, where programs are created as block diagrams. This approach makes it highly intuitive and
user-friendly, especially for applications requiring real-time processing and interfacing with hardware
systems.

In this project, LabVIEW is leveraged to create a Virtual Calculator, a graphical interface that
performs basic arithmetic operations. The selection of LabVIEW as the development platform is based
on its advantages in creating interactive and modular applications. Its data flow model allows for
seamless execution of mathematical computations, while the drag-and-drop interface simplifies GUI
creation.

The primary features of LabVIEW, such as real-time signal processing, modular design, and
interactive front-panel controls, enable developers to build efficient and visually engaging tools. In the
context of this project, LabVIEW facilitates the design of a calculator where users can input values,
perform calculations, and view results dynamically, all through a visually intuitive interface. By
demonstrating LabVIEW's ease of use and versatility, this project serves as an example of its potential
in educational and professional applications.

Dept. Of Electronics and Communication Engg. KLEIT,Hubballi Page 1


Virtual Calculator Using LabVIEW

LabVIEW consists of several main components that work together to create an integrated
development environment for measurement, control, and data analysis applications. Below are
the primary parts of LabVIEW:

1. Front Panel

 Purpose: The Front Panel is the user interface of the LabVIEW program (Virtual
Instrument or VI). It allows users to interact with the program and provides a
graphical interface to control and monitor the application.
 Components:

 Usage: The Front Panel is used for data input, display of results, and real-time
monitoring of the system.

Dept. Of Electronics and Communication Engg. KLEIT,Hubballi Page 2


Virtual Calculator Using LabVIEW

2. Block Diagram

 Purpose: The Block Diagram is where the actual program logic is created. It consists
of various functional blocks that perform specific operations such as mathematical
computations, data processing, or hardware control.
 Components:
o Functions: Built-in functions for operations like addition, subtraction, data
analysis, file I/O, and more.
o Structures: Loops (For Loop, While Loop) and Case Structures for
controlling program flow.
o Wires: Wires are used to connect different blocks to pass data between them.
 Usage: The Block Diagram defines how data flows between different operations and
controls the execution of tasks within the program.

3.VI’s (Virtual Instruments)

 Purpose: A VI is a LabVIEW program, similar to a function or method in traditional


programming languages. It contains both a Front Panel and a Block Diagram.
 Components: Every VI has two main parts—its Front Panel (UI) and Block Diagram
(program logic).
 Usage: VI’s can be standalone or used as sub VI’s within other VI’s to build
complex applications. VI’s can be nested, allowing for modular design and
reusability.

4.Controls and Indicators

 Purpose: These are the interactive components used on the Front Panel to allow user
interaction with the program.
 Controls: Allow users to provide input (e.g., numeric values, sliders, switches).
 Indicators: Display outputs to the user (e.g., numeric results, graphs, LEDs).
 Usage: Controls are used to send data to the Block Diagram for processing, while
indicators are used to display the processed results.

Dept. Of Electronics and Communication Engg. KLEIT,Hubballi Page 3


Virtual Calculator Using LabVIEW

5.Block Diagram Objects

 Purpose: These are the functional elements in the Block Diagram that define the
program's behavior.
 Types of Objects:
o Functions: Perform calculations, mathematical operations, data conversion,
etc.
o Structures: Control the flow of data (e.g., Loops, Case Structures, Sequence
Structures).
o Variables: Store and manipulate data (e.g., shift registers, global variables).
o SubVI’s: Reusable VI’s that can be called within other VI’s to modularize code.
 Usage: These objects work together to build a fully functional program, with
operations defined by the user.

6.Block Diagram Wiring

 Purpose: Wires connect the different elements on the Block Diagram to pass data and
control the flow of information.
 Usage: Wires connect inputs, outputs, functions, and structures, enabling the proper
flow of data between component

Dept. Of Electronics and Communication Engg. KLEIT,Hubballi Page 4


Virtual Calculator Using LabVIEW

Working of Virtual Calculator

A virtual calculator works by simulating the basic functions of a physical calculator using software.
Here's a general overview of how it operates:
Key Components and Functions:

1. User Interface (UI):


Buttons: Represent the digits (0-9), operations (addition, subtraction, multiplication, division), and
other functions (clear, equals, etc.).
Display: Shows the numbers entered, ongoing calculations, and the final result.

2. Event Handling:
Input Detection: The calculator detects button presses and identifies the corresponding input (digit,
operation, etc.).
Event Triggers: Each button press triggers an event that the software handles accordingly.

3. Input Processing:
Digit Input: When a digit button is pressed, the calculator appends it to the current number being
entered.
Operation Selection: When an operation button is pressed (like + or *), the calculator stores the
current number and the selected operation for future calculation.

4. Arithmetic Operations:
Executing Operations: Upon pressing the equals (=) button, the calculator performs the stored
arithmetic operation (addition, subtraction, multiplication, or division) on the numbers entered.
Storing Results: The result of the operation is stored and displayed on the screen.

5. Error Handling:
Invalid Operations: The calculator must handle invalid operations (like division by zero) and
provide appropriate error messages.

6. Display Update:
Result Display: After performing calculations, the result is updated on the display for the user to
see.

Dept. Of Electronics and Communication Engg. KLEIT,Hubballi Page 5


Virtual Calculator Using LabVIEW

Algorithm
1. Initialize Variables and UI Elements:
- Set up the front panel with buttons for digits (0-9), basic operations (+, -, *, /), clear (CLC), and
equals (=).
- Initialize variables for storing the current input, previous input, and the selected operation.

2. Event Handling Loop:


- Create a while loop to continuously check for user inputs.
- Use event structures inside the loop to handle button presses.

3. Digit Button Press:


- Append the digit to the current input string when a digit button (0-9) is pressed.
- Update the display to show the current input.

4. Operation Button Press:


- When an operation button (+, -, *, /) is pressed:
- Store the current input as the previous input.
- Store the selected operation.
- Clear the current input for the next number entry.

5. Equals Button Press:


- When the equals button (=) is pressed:
- Convert the current input and previous input strings to numeric values.
- Perform the selected operation (addition, subtraction, multiplication, or division).
- Store the result in the current input.
- Update the display to show the result.

6. Clear Button Press:


- When the clear button (CLC) is pressed:
- Clear the current input and previous input.
- Reset the selected operation.
- Update the display to show an empty or default value.

Dept. Of Electronics and Communication Engg. KLEIT,Hubballi Page 6


Virtual Calculator Using LabVIEW

7. Display Update:
- Use property nodes to update the display label with the current input or result.

8. End Loop:
- Continue the loop until a stop condition is met (e.g., a stop button is pressed).

9. Cleanup:
- Perform any necessary cleanup operations, such as resetting variables or closing references

Dept. Of Electronics and Communication Engg. KLEIT,Hubballi Page 7


Virtual Calculator Using LabVIEW

Flowchart
1. Start
- Initialize UI and Variables

2. Event Handling Loop:


- Check for button presses (digit, operation, equals, clear)

3. Digit Button Pressed?


- Append digit to current input
- Update display

4. Operation Button Pressed?


- Store current input in previous input
- Store selected operation
- Clear current input
- Update display

5. Equals Button Pressed?


- Convert inputs to numbers
- Perform stored operation
- Store result in current input
- Update display with result

6. Clear Button Pressed?


- Clear inputs and operation
- Reset display

7. End Event Handling Loop


- Continue until stop condition is met

Dept. Of Electronics and Communication Engg. KLEIT,Hubballi Page 8


Virtual Calculator Using LabVIEW

Advantages

1. Provides practical knowledge in programming and UI design.

2. Reinforces basic arithmetic and mathematical concepts.

3. Tailored features according to user needs.

4. Customizable user interface for enhanced usability.

5. Useful in classrooms for teaching math and programming.

6. Engages students with interactive learning.

7. Showcases software development skills.

8. Valuable addition to academic or professional portfolios.

9. Eliminates the need for physical calculators, reducing costs.

Often available for free or as open-source software.

Dept. Of Electronics and Communication Engg. KLEIT,Hubballi Page 9


Virtual Calculator Using LabVIEW

Applications

1. Teaching aid in classrooms and e-learning platforms.

2. Supports interactive learning for students.

3. Used for quick and accurate data analysis.

4. Helps in calculating complex formulas and models.

5. Assists in budget planning and financial forecasting.

6. Useful for calculating loan payments and interest rates.

7. Essential for design calculations and analysis.

8. Assists in project management and cost estimations.

9. Useful for managing household budgets and expenses.

10. Helps with shopping calculations, like discounts and taxes.

Dept. Of Electronics and Communication Engg. KLEIT,Hubballi Page 10


Virtual Calculator Using LabVIEW

Conclusion

The "Virtual Calculator using LabVIEW VI" project successfully demonstrates the potential of
LabVIEW as a robust platform for creating interactive and user-friendly applications. By utilizing
LabVIEW’s graphical programming approach, the project simplifies the implementation of basic
arithmetic operations while providing an intuitive graphical user interface. The seamless data flow and
modular design highlight LabVIEW's efficiency in handling real-time computation tasks.

Through this project, the versatility and flexibility of LabVIEW have been effectively showcased,
reinforcing its importance as a tool for both beginners and professionals in engineering and scientific
domains. The virtual calculator not only performs fundamental mathematical operations but also
serves as a stepping stone for exploring more advanced capabilities such as integrating trigonometric,
logarithmic, and statistical functions or connecting to external devices for automation tasks.

This project has also demonstrated the ease with which LabVIEW enables the creation of visually
appealing and interactive front panels, making it an ideal platform for developing educational tools
and prototypes. Additionally, the modular design allows for scalability, enabling future extensions and
enhancements to the application.

Overall, the "Virtual Calculator using LabVIEW VI" exemplifies the practical application of
LabVIEW in simplifying programming for virtual instruments. It provides an accessible and efficient
solution for basic computational needs while encouraging further exploration and innovation in
software-based tools and applications. This project highlights the broader implications of using
LabVIEW for diverse industries, including education, research, and industrial automation.

Dept. Of Electronics and Communication Engg. KLEIT,Hubballi Page 11


Virtual Calculator Using LabVIEW

Bibliography

1. National Instruments. LabVIEW 2023 Documentation. National Instruments, 2023.

2. Gonzalez, Rafael C., and Richard E. Woods. Digital Image Processing. Pearson, 2020.

Dept. Of Electronics and Communication Engg. KLEIT,Hubballi Page 12


Virtual Calculator Using LabVIEW

Dept. Of Electronics and Communication Engg. KLEIT,Hubballi Page 13


Virtual Calculator Using LabVIEW

Dept. Of Electronics and Communication Engg. KLEIT,Hubballi Page 14


Virtual Calculator Using LabVIEW

3. "LabVIEW 3D Picture Control Toolkit". National Instruments Tutorials.


4. Gonzalez, Rafael C., and Richard E. Woods. Digital Image Processing. Pearson, 2020.
5. Research articles and white papers on 3D geometric modeling using LabVIEW.

Dept. Of Electronics and Communication Engg. KLEIT,Hubballi Page 15

You might also like