Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

Introduction to

Programming lvl 1
By: Mark Wong, 16h September 2011 BioOptics Lab
2011, Nanyang Technological University

Front screen
LabVIEW helps engineers and scientists who develop and deploy measurement and control systems and increases development efficiency through new engineeringspecific libraries and its ability to interact with almost any hardware device or deployment target. It supports the latest Microsoft .NET Framework User-community support forum LabVIEW 2011 helps engineers and scientists integrate individual system components into a single, reconfigurable platform so they can do their jobs faster, better, and at a lower cost.

Usercommunity support forum

Blank VI (Virtual Instrument)

Front panel Toolbar controls running of the program And basic editing functions

Block diagram

Every VI is made up of two windows, the front panel and the block diagram. The front panel contains all the I/O and is the primary interface that the user will interact with. The block diagram contains the functional code. I/O are known as controls and indicators and can be added from the palette

Block diagram
Context help (cntrl-H)

Function

Run program

Run and continuous running of the program

Concept of data flow

Functional blocks of code executing sequentially and linearly

Concept of parallel processing


Parallel processing is when two pieces of code execute simultaneously within the same program, this is important in modern multi-core processors and is difficult to do in text-based programming. Loop conditional terminal Controls whether the WHILE loop continues to run Code execute simultaneously This allows true parallel processing, when you click the run button, you can make changes to the front button controls. The two loops are totally independent of each other.

Simple instrument I/O (Oscilloscope)

This code generates a signal, analyzes the signal and displays the result

You might also like