How to Make a Simple Calculator in LabVIEW™

[Pages:55]How to Make a Simple Calculator in LabVIEWTM

Lita Wilch TECM 2700.022 4/28/2013

2

How to Make a Simple Calculator in LabVIEWTM

Table of Contents

iii

Table of Contents

Table of Contents ...................................................................................................................... iii Introduction ................................................................................................................................v

Manual Overview ....................................................................................................................v Supplies ...................................................................................................................................v Supply Cost .............................................................................................................................v Opening the LabVIEWTM Main Menu .........................................................................................3 Opening a Blank VI ....................................................................................................................7 Option 1: Opening the VI using the Main Menu ......................................................................7 Option 2: Opening the VI using the Create Project Menu.........................................................8 Adding Function to the Block Diagram .....................................................................................13 Adding Numeric Controls to the Front Panel .........................................................................13 Adding Numeric Indicators to the Front Panel .......................................................................15 Renaming the Numeric Controls and Indicators.........................................................................19 Renaming the Numeric Controls ............................................................................................19 Renaming the Numeric Indicators..........................................................................................20 Adding Functions to the Block Diagram....................................................................................23 Adding the Add Function to the Block Diagram ....................................................................23 Adding the Subtract Function to the Block Diagram ..............................................................26 .............................................................................................................................................. 26 Adding the Multiply Function to the Block Diagram .............................................................27 Adding the Divide Function the Block Diagram ....................................................................28 Connecting the Controls in the Block Diagram..........................................................................31 Connecting the X Numeric Control to the Functions ..............................................................31 Connecting the Y Numeric Control to the Functions ..............................................................33 Connecting the Functions to the Numeric Indicators ..............................................................35 How Everything Connects: A Visual Overview .....................................................................37 ................................................................................................................................................. 37 Using the Simple Calculator in the Front Panel .........................................................................40 Glossary .................................................................................................................................... 45

iv

How to Make a Simple Calculator in LabVIEWTM

Index ......................................................................................................................................... 47

Introduction

v

Introduction

So you are heading into the electrical engineering program at your college and one of the professors you talk to mentions that one of the programs you will work with is LabVIEWTM (Laboratory Virtual Instrumentation Engineering Workbench). This manual will help you to gain some experience with this program as you make this simple calculator in LabVIEWTM.

Manual Overview

After reading this manual you will know how to: Open LabVIEWTM Open a VI (Virtual Instrument) in LabVIEWTM Locate Numeric Controls in the front panel Locate Numeric Indicators in the front panel Rename the Numeric Controls Rename the Numeric Indicators Locate the Add Function in the block diagram Locate the Subtract Function in the block diagram Locate the Divide Function in the block diagram Locate the Multiply Function in the block diagram Connect the controls, indicators, and functions together in the block diagram Run the simple calculator using the front panel

I will not explain how to purchase or how to download LabVIEWTM. I will not explain any buttons on the front panel and block diagram that have no use for completing this project. I will not explain how to open LabVIEWTM with Apple? computers. I will also not include the cost of a computer or laptop because the price will vary depending on the user's needs.

Supplies

Before you start to make this simple calculator in LabVIEWTM make sure you have the following supplies:

LabVIEWTM software LabVIEWTM license Computer

After you have all the supplies, you will have everything you need to make this simple calculator in LabVIEWTM.

Supply Cost

The basic LabVIEWTM Student Edition program costs approximately $21.

Take notice of arrows surrounded by an oval

to the right of buttons or other items. They

point out things that you must use or should take note of.

Words that are bolded and colored yellow can be found in the glossary on page 45.

vi

How to Make a Simple Calculator in LabVIEWTM

Opening the LabVIEWTM Main Menu

2

How to Make a Simple Calculator in LabVIEWTM

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download