LabVIEW

 

A GRAPHICAL PROGRAMMING LANGUAGE FOR INSTRUMENTATION, DATA-ACQUISION & ANALYSIS,

AUTOMATION & CONTROL,

AND COMMUNICATION

 

 

Prepared by: Ismail Cicek – a LabVIEW user

 

 

 

LabVIEW & VIRTUAL INSTRUMENTATION:

 

Virtual instrumentation is breaking down the barriers of developing and maintaining instrumentation systems that challenge the world of test, measurement, and industrial automation. By leveraging off the latest computing technology, virtual instrumentation delivers innovative, scalable solutions that incorporate many different I/O options and maximizes code reuse-- saving you time and money.

 

LabVIEW is a graphical program development application developed by National Instruments in 1986 to integrate engineering tasks like;

    1. interfacing computers with the instruments,
    2. collecting, storing, analyzing, transmitting measured data,
    3. developing program in a graphical environment,
    4. providing an effective user interface.

 

LabVIEW delivers real solutions to the practical problems faster than any other graphical environment.

More than a software package for controlling an instrument, LabVIEW can be used to integrate GPIB and VXI for data acquisition, automation, motion control, vision,... almost everything to build a system.

 

 

 

 

 

 

 

 

 

 

 

 

The source for these figures is http://www.natinst.com/labview/product.htm and they show how widely LabVIEW is used as instrumentation and control software, by comparing to some other programming languages.

 

 

WHAT IS LabVIEW?

 

LabVIEW is a program development application, much like various commercial C/C++, FORTRAN or BASIC development systems. However, LabVIEW uses graphical programming language, G, to create programs allowing the program to be in a "Block Diagram" form. This creates excellent GUI capabilities built-in in LabVIEW programs.

 

The programs written in LabVIEW are called "Virtual Instruments" or VI’s due to the instrumentation-related origin . The programs created are independent of the type of machine that they are created for so programs can be transferred between different operating systems.

 

Additionally LabVIEW has a large set of built-in mathematical functions and graphical data visualization and data input objects typically found in data acquisition and analysis applications. You can write most of your "code" with only the mouse. If structured "properly", this "code" can pass as your flow chart.

 

During the last 10 years the original LabVIEW version has been enriched and refined, ported to several

platforms, accurately documented, completed with software drivers for a full line of hardware products.

Some features of LabVIEW:

hundreds of complete examples, ready to run and customizable, covering all important functions.

 

 

AN EXAMPLE – DATA ACQUISION IS NOW EASIER WITH LabVIEW :

 

All of the LabVIEW functions are very easy to use. The illustration below shows an example program which is used for data acquisition.

 

A LabVIEW program has two parts;

    1. control panel or front panel,
    2. diagram (flow diagram).

 

The control panel looks exactly what you would expect from an instrument to have. The control boxes on the left of the panel are the controls (or inputs). The graph window is an indicator (output). These controls and indicators are pulled from the menu using the mouse.

 

The diagram window is where the connections are made. The icons on the left of the diagram windows are the representations of the inputs that we inserted into the front panel. The icons that we see in the control diagram are the functions to configure the board, start reading, and get Analog Input data functions which were pulled from the functions menu using a mouse. Then the icons are connected using a wiring tool. The icon named as "transposed voltage graph" is the representation of the graph in the front panel. The orange wire from "AI Read" to "Graph" shows the path. Any analysis would be similar icons on this path, the would be plotted similarly after the analysis.

 

Using LabVIEW, almost all of the instruments that are used in a lab could be simulated (saving money!).

 

FRONT PANEL:

 

 

BLOCK DIAGRAM WINDOW:

 

 

EXAMPLE – DATA ANALYSIS IN LabVIEW – LESS TIME AND EFFORT:

 

The program below is created by modifying one of the examples supplied with LabVIEW 4.1 software. The program generates sinusoidal signal combined with noise generated by "White noise" function and filters the signal using "Butterworth filter" function. The signal before and after filtering is plotted in the panel window, then power spectra of both signals are plotted in a similar graph.

 

This is a good example to see how complex routines might be simplified using LabVIEW so huge amount of time and effort could be saved!

 



CONTROL PANEL






DIAGRAM WINDOW

 

 

 

Did you know?

 

 

 

 

 

 

 

 

"I calculate that we saved

probably 20 man-months in

just this one effort alone...

our productivity doubled."

-- Bill O'Brien, Senior

Systems Engineer,

Motorola Satellite

Communications Group

 

 

 

 

 

REFERENCES:

 

 

 

 

 

 

 

 

 

 

 

 

 

Ismail Cicek,

 

Ph.D. Student,

Mechanical Engineering Dept.

Texas Tech University,

Lubbock, TX