[go: up one dir, main page]

0% found this document useful (0 votes)
274 views7 pages

LabView Report

The document provides information about LabView, a graphical programming language developed by National Instruments. It discusses that LabView allows creating programs called VIs using a graphical interface without writing lines of code. It also summarizes that LabView supports data collection, signal generation and analysis, and is widely used due to its ease of use and support for National Instruments hardware. The document then lists some key benefits of LabView, such as interfacing with devices, code compiling, large libraries, parallel programming and ecosystem support. It concludes with mentioning some disadvantages like being proprietary and non-textual code.

Uploaded by

Usama
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)
274 views7 pages

LabView Report

The document provides information about LabView, a graphical programming language developed by National Instruments. It discusses that LabView allows creating programs called VIs using a graphical interface without writing lines of code. It also summarizes that LabView supports data collection, signal generation and analysis, and is widely used due to its ease of use and support for National Instruments hardware. The document then lists some key benefits of LabView, such as interfacing with devices, code compiling, large libraries, parallel programming and ecosystem support. It concludes with mentioning some disadvantages like being proprietary and non-textual code.

Uploaded by

Usama
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/ 7

LabView Report

NAME: USAMA WAKEE

ROLL # 150668

Class: BEMTS V-C

Subject: Instrumentation & Measurements System

SUBMITTED TO:
Miss. Anum Maqbool
INTRODUCTION TO LABVIEW

LabView is a graphical programming language developed by National Instruments


sometime in the mid to late 80’s by Jeff Kodosky. A program in LabView is called a VI, which
stands for Virtural Instrument. To create a VI, the programmer uses the LabView programming
environment to make the user interface by dragging and dropping objects, and arranging them as
desired. To add functionality to the interface, the diagram, which resembles a flow chart is “wired”
with the various structures and functions. So, in most LabView programs, no lines of code are
written, the functionality of the program is provided by the diagram.For this reason LabView is
called a graphical programming language.

Another nicety of LabView is that it closely supports a multitude of processing cards


available from National Instruments. Other vendors also build cards that are LabView compatible.
The cards are so tightly coupled to the LabView system that it is not uncommon to be collecting
data within a few hours of receiving the data collection cards in the mail.

In addition to controlling the instruments, LabView allows us to get the information


recorded into the computer where we can use a variety of math functions to alter it, fit it, analyze
it using statistical functions, plot it on a graph, and store it to a file. These capabilities allow us to
focus on the devices being studied, not on the mechanics of taking the measurements.

The beauty of LabView is its intuitive graphical environment. Creating VI’s is easy
because you can think as if you are making an instrument. In the front panel programming window,
you can envision all the controls that you want on the front panel of your instrument. As you place
them on the front panel, they appear in the block diagram window. Now all you have to do is put
in the logic circuits to execute the commands and wire together your controls and your logic
functions. It has an extensive library of functions for controlling just about any GPIB (general
purpose interface bus) instrument available. This makes controlling and measuring data with the
instruments as easy as plunking down a downloaded VI and providing it with the correct inputs
and outputs.
For these reasons, LabView has become one of the most popular data collection systems
in recent years.Within the framework of LabView, user interfaces can be created, data can be
collected, signals can be generated and transmitted from LabView cards, data can be analyzed and
stored, etc.If LabView does not provide what is needed, C code or MatLab programs can be tied
to it to provide the required functionality.

In summary, LabView is a powerful graphical programming system that is compatible with a


multitude of data collection cards and equipment. People use it because it is convenient and no
knowledge of conventional programming languages is required.

Benefits
Interfacing to devices:

LabVIEW includes extensive support for interfacing to devices, instruments, camera, and
other devices. Users interface to hardware by either writing direct bus commands (USB, GPIB,
Serial) or using high-level, device-specific, drivers that provide native LabVIEW function nodes
for controlling the device.

LabVIEW includes built-in support for NI hardware platforms such


as CompactDAQ and CompactRIO, with a large number of device-specific blocks for such
hardware, the Measurement and Automation eXplorer (MAX) and Virtual Instrument Software
Architecture (VISA) toolsets.

National Instruments makes thousands of device drivers available for download on the NI
Instrument Driver Network (IDNet).

Code compiling:

LabVIEW includes a compiler that produces native code for the CPU platform. This aids
performance. The graphical code is translated into executable machine code by interpreting the
syntax and by compiling. The LabVIEW syntax is strictly enforced during the editing process and
compiled into the executable machine code when requested to run or upon saving. In the latter
case, the executable and the source code are merged into a single file. The executable runs with
the help of the LabVIEW run-time engine, which contains some precompiled code to perform
common tasks that are defined by the G language. The run-time engine reduces compiling time
and provides a consistent interface to various operating systems, graphic systems, hardware
components, etc. The run-time environment makes the code portable across platforms. Generally,
LabVIEW code can be slower than equivalent compiled C code, although the differences often lie
more with program optimization than inherent execution speed

Large libraries:

Many libraries with a large number of functions for data acquisition, signal generation,
mathematics, statistics, signal conditioning, analysis, etc., along with numerous for functions such
as integration, filters, and other specialized abilities usually associated with data capture from
hardware sensors is enormous. In addition, LabVIEW includes a text-based programming
component named MathScript with added functions for signal processing, analysis, and
mathematics. MathScript can be integrated with graphical programming using script nodes and
uses a syntax that is compatible generally with MATLAB.

Parallel programming:

LabVIEW is an inherently concurrent language, so it is very easy to program multiple tasks


that are performed in parallel via multithreading. For example, this is done easily by drawing two
or more parallel while loops and connecting them to two separate nodes. This is a great benefit for
test system automation, where it is common practice to run processes like test sequencing, data
recording, and hardware interfacing in parallel.

Ecosystem:

Due to the longevity and popularity of the LabVIEW language, and the ability for users to
extend its functions, a large ecosystem of third party add-ons has developed via contributions from
the community. This ecosystem is available on the LabVIEW Tools Network, which is a
marketplace for both free and paid LabVIEW add-ons.

User community:

There is a low-cost LabVIEW Student Edition aimed at educational institutions for learning
purposes. There is also an active community of LabVIEW users who communicate through
several electronic mailing lists (email groups) and Internet forums.
Disadvantage:
LabVIEW is a proprietary product of National Instruments. Unlike common programming
languages such as C or Fortran, LabVIEW is not managed or specified by a third party standards
committee such as American National Standards Institute (ANSI), Institute of Electrical and
Electronics Engineers (IEEE), International Organization for Standardization(ISO), etc.

Slow:

Very small applications still have to start the runtime environment which is a large and
slow task. This tends to restrict LabVIEW to monolithic applications. Examples of this might be
tiny programs to grab a single value from some hardware that can be used in a scripting language
- the overheads of the runtime environment render this approach impractical with LabVIEW.

Non-textual:

G language being non-textual, software tools such as versioning, side-by-side (or diff)
comparison, and version code change tracking cannot be applied in the same manner as for textual
programming languages. There is some additional tool to make comparison and merge of code
with source code control (versioning) like subversion, CVS, Perforce.

No zoom function:

There is no ability to zoom in to (or enlarge) a VI which will be hard to see on a large,
high-resolution monitor, although this feature is under development as of 2016.
Examples
1) Equation:
(A + B) x (A - B)}2-A2

2) Equation :
[(4x2-5)/(x-2)] + [(5y2-x) / {(√8) -(3y)}] + √[(3z-2z)/(4z2)]
Sample Codes

FOR LOOP:-

#include <iostream>

using namespace std; // So the program can see cout and endl

int main()
{
// The loop goes while x < 10, and x increases by one every loop
for ( int x = 0; x < 10; x++ ) {
// Keep in mind that the loop condition checks
// the conditional statement before it loops again.
// consequently, when x equals 10 the loop breaks.
// x is updated before the condition is checked.
cout<< x <<endl;
}
cin.get();
}

WHILE LOOP:-

#include <iostream>

using namespace std; // So we can see cout and endl

int main()
{
int x = 0; // Don't forget to declare variables

while ( x < 10 ) { // While x is less than 10


cout<< x <<endl;
x++; // Update x so the condition can be met eventually
}
cin.get();
}

You might also like