0% found this document useful (0 votes)
60 views8 pages

Lab Objective:: Lab: 1 Introduction To LABVIEW

This document describes an introductory LabVIEW lab with the following objectives: 1. Get familiar with LabVIEW basics like the front panel, block diagram, controls palette, and functions palette. 2. Complete tasks to work with arrays, plot sine waves using different methods, perform temperature conversions using cases, and design a calculator. 3. Learn about key LabVIEW components like VIs, controls, indicators, nodes, and how to search.

Uploaded by

Umar Khan
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)
60 views8 pages

Lab Objective:: Lab: 1 Introduction To LABVIEW

This document describes an introductory LabVIEW lab with the following objectives: 1. Get familiar with LabVIEW basics like the front panel, block diagram, controls palette, and functions palette. 2. Complete tasks to work with arrays, plot sine waves using different methods, perform temperature conversions using cases, and design a calculator. 3. Learn about key LabVIEW components like VIs, controls, indicators, nodes, and how to search.

Uploaded by

Umar Khan
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/ 8

LAB : 1

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:

Principles of Communication Systems (EEE351)


In this task we will take an array as input in front panel and perform different functions like array
size, build array, Delete from array, Array subset, Search in array and index array. Finally we
will observe these functions output in block diagram using appropriate indicator.
Brief description of blocks used in VI:
Array size: Shows the size of array.
Build array: Append or concatenate the two arrays.
Delete from array: Delete element at specific index.
Array subset: Shows the sub-array.
Search in array: Search the specific element in the array.
Index array: Show array element at specific index.
Initialize array: it initialize array.
Screenshot:

Figure 1: Front Panel Figure 2 : Block Diagram


Task 2: Plot sine wave having 10Hz frequency both in LabVIEW Functions and
Mathscript node.
Task description:
In this task we will plot sine wave using signal simulation and Mathscript node.
Brief description of blocks used in VI:
MathScript: It is a coding section like matlab.
Simulate signal: Built in function for signal generation.
Screenshot:

Figure 1: Using Mathscript


(Front Panel)
Figure 2: Using Simulation
(Front Panel)

Principles of Communication Systems (EEE351)


Figure 3: Block Diagram
Task 3: Use the case structure and enum to implement the following temperature
conversion:

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:

Figure 1: Front Panel Figure 2: Front Panel

Figure 3: Block Diagram Figure 4: Block Diagram

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:

Figure 1: Front Panel Figure 2: Block Diagram

Task 2: Create a subVI that converts kelvin temperature to Celsius and Fahrenheit.

Figure 1. Front Panel

Principles of Communication Systems (EEE351)


Note:
 Use this subVI in another VI.
 VI should have one input and output.
 Use case structure for different cases.
 Front panel of SubVI should look like as shown in figure 1.
 Create a suitable icon editor as shown below in figure 2.

Figure 2. SubVI Icon

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)

Principles of Communication Systems (EEE351)


Figure 3:VI
(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)

Principles of Communication Systems (EEE351)


Figure 2: Subtraction
(Front Panel and Block Diagram)

Figure 3: Multiplication
(Front Panel and Block Diagram)

Figure 4: Division
(Front Panel and Block Diagram)

Figure 5: Square root


(Front Panel and Block Diagram)

Principles of Communication Systems (EEE351)


Figure 6: Power
(Front Panel and Block Diagram)

Figure 7: Sin radian


(Front Panel and Block Diagram)

Figure 9: Cos
(Front Panel and Block Diagram)

Figure 10: Tan


(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.

Principles of Communication Systems (EEE351)

You might also like