Lab Objective:: Lab: 1 Introduction To LABVIEW
Lab Objective:: Lab: 1 Introduction To LABVIEW
Introduction to LABVIEW
LAB OBJECTIVE:
The main objective of this lab is to get familiar with LabVIEW basics.
INTRODUCTION:
Laboratory Virtual Instrument Engineering Workbench is a system-design platform and
development environment for a visual programming language from National Instruments
This section explains how to navigate NI LabVIEW and use the block diagram, front panel, and
Functions and Controls palettes.
This section includes:
Virtual Instruments (VIs)
Front Panel
Controls Palette
Controls and Indicators
Block Diagram
Block Diagram Terminals
Block Diagram Nodes
Functions Palette
Searching for Controls, VIs, and Functions
IN-LAB TASKS:
Task 1: Implement the following VI with array control as input instead of array constant.
Task description:
Task description:
In this task we will see temperature conversion using case structure.
Brief description of blocks used in VI:
Case structure: It is used for different condition.
Screenshot:
POST-LAB TASKS:
Principles of Communication Systems (EEE351)
Task 1: Perform the following array operation in LabVIEW:
Generate an array with name ‘array 1’ as [1 2 3 4 5 6 7 8 9 10] and find its size.
Delete 2nd to 5th index values from ‘array1’ and name this new array as ‘array 2’.
Now take the square of ‘array 2’ and name it as ‘array 3’ and add both of these arrays to
form ‘array 4’.
Concatenate ‘array 2’ and ‘array 4’ to generate ‘array 5’.
Find the indexes of maximum and minimum values in array 5.
Task description:
We will perform different operation on array and observe their outcome/result.
Brief description of main blocks used in VI :
Already mentioned
Screenshot:
Task 2: Create a subVI that converts kelvin temperature to Celsius and Fahrenheit.
Useful formulae:
C = K - 273
F = 1.8(K - 273) + 32
Task description:
We will perform temperature conversion from kelvin to Celsius and Fahrenheit.
Brief description of main blocks used in VI:
Toggle Switch: Used for on and off.
Screenshot:
Figure 1: SubVI
(Front Panel and Block Diagram)
Figure 2: SubVI
(Front Panel and Block Diagram)
Task 3: Design a calculator in LabVIEW that will add, subtract, divide, multiply, divide,
take the square root, and raise to a power. Add the following features also
Add functionality for trigonometric functions such as sine, cosine, and tangent.
Add a conversion from angle in degrees to radians.
Add a delay to the While Loop to decrease the CPU usage.
Note:
You have to use Enum to select the operation you want to perform
There should be error display when user takes square root of negative number
You have to paste screenshots of all the functions with their outputs
Task description:
We will make a simple calculator like addition, subtraction etc .
Brief description of main blocks used in VI:
Screenshot:
Figure 1: Addition
(Front Panel and Block Diagram)
Figure 3: Multiplication
(Front Panel and Block Diagram)
Figure 4: Division
(Front Panel and Block Diagram)
Figure 9: Cos
(Front Panel and Block Diagram)
CONCLUSION:
In this lab we were able to what LabView is and how it works. We came to know more about loops and
their working.