0% found this document useful (0 votes)
51 views

Experiment No.1: Components of Lab View: Objective: To Open, and Explore The Components of Labview. Theory

The document discusses the components and interface of LabVIEW, including: - LabVIEW uses data flow programming and its interface consists of a front panel and block diagram. The front panel contains controls and indicators while the block diagram contains code. - When launched, LabVIEW opens a dialog box that allows opening, creating, and searching for VIs. It also provides access to the DAQ solutions wizard and LabVIEW tutorials. - The block diagram contains tools for debugging like highlighting execution, stepping into/over/out of code, and viewing warnings. Additional palettes provide tools and functions to build the front panel and block diagram. VIs can be saved individually or in libraries.

Uploaded by

Kuber Gupta
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)
51 views

Experiment No.1: Components of Lab View: Objective: To Open, and Explore The Components of Labview. Theory

The document discusses the components and interface of LabVIEW, including: - LabVIEW uses data flow programming and its interface consists of a front panel and block diagram. The front panel contains controls and indicators while the block diagram contains code. - When launched, LabVIEW opens a dialog box that allows opening, creating, and searching for VIs. It also provides access to the DAQ solutions wizard and LabVIEW tutorials. - The block diagram contains tools for debugging like highlighting execution, stepping into/over/out of code, and viewing warnings. Additional palettes provide tools and functions to build the front panel and block diagram. VIs can be saved individually or in libraries.

Uploaded by

Kuber Gupta
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/ 5

Experiment No.

1: Components of Lab VIEW


Objective: To open, and explore the components of LabView.
Theory:
LabVIEW is a graphical programming language that uses icons instead of lines of
text to create applications. In contrast to text-based programming languages,
where instructions determine program execution, LabVIEW uses data flow
programming, where data determine execution. In LabVIEW, you build a user
interface by using a set of tools and objects. The user interface is known as the
front panel. You then add code using graphical representations of functions to
control the front panel objects. The block diagram contains this code. If organized
properly, the block diagram resembles a flowchart. You can purchase several
add-on software toolsets for developing specialized applications. All the toolsets
integrate seamlessly in LabVIEW.
Virtual Instruments
LabVIEW programs are called virtual instruments (VIs). VIs contain three main
componentsthe front panel, the block diagram, and the icon and connector
pane. The front panel is the user interface of the VI. The following example
shows a front panel.

You build the front panel with controls and indicators, which are the interactive
input and output terminals of the VI, respectively. Controls are knobs, push
buttons, dials, and other input devices. Indicators are graphs, LEDs, and other
displays. Controls simulate instrument input devices and supply data to the block
diagram of the VI. Indicators simulate instrument output devices and display data
the block diagram acquires or generates.

Procedure:
LabVIEW Environment
When you launch LabVIEW, the following dialog box appears.

The LabVIEW dialog box includes the following components:


Click the New VI button to create a new VI. Click the arrow next to the
button to create another type of LabVIEW object, such as a control.
Click the Open VI button to open an existing VI. Click the arrow next to the
button to open recently opened files.
Click the DAQ Solutions button to launch the DAQ Solution Wizard, which
helps you find solutions for common DAQ applications.
Click the Search Examples button to open a help file that lists and links to all
available LabVIEW example VIs.
Click the LabVIEW Tutorial button to open the interactive LabVIEW Tutorial.
Use this tutorial to learn basic LabVIEW concepts.
Block Diagram Toolbar
When you run a VI, buttons appear on the block diagram toolbar that you can use
to debug the VI. The following toolbar appears on the block diagram.

Click the Highlight Execution button to see the flow of data through the block
diagram. Click the button again to disable execution highlighting.

Click the Step Into button to single-step into a loop, subVI, and so on. Single-
stepping through a VI steps through the VI node to node. Each node blinks to
denote when it is ready to execute. By stepping into the node, you are ready to
single-step inside the node.

Click the Step Over button to step over a loop, subVI, and so on. By stepping over
the node, you execute the node without single-stepping through the node.

Click the Step Out button to step out of a loop, subVI, and so on. By stepping out
of a node, you complete single-stepping through the node and go to the next
node.

The Warning button appears when there is a potential problem with the block
diagram, but it does not stop the VI from running. You can enable the Warning
button by selecting ToolsOptions and selecting Debugging from the top pull-
down menu.

Tools Palette
You can create, modify, and debug VIs using the tools located on the floating
Tools palette. The Tools palette is available on the front panel and the block
diagram. A tool is a special operating mode of the mouse cursor. When you select
a tool, the cursor icon changes to the tool icon. Use the tools to operate and
modify front panel and block diagram objects.

Functions Palette
Use the Functions palette to build the block diagram. The Functions palette is
available only on the block diagram. Select WindowShow Functions Palette or
right-click the block diagramworkspace to display the Functions palette.You also
can display the Functions palette by right-clicking an open area on the block
diagram. Tack down the Functions palette by clicking the pushpin on the top left
corner of the palette.
Saving VIs
Select Save, Save As, Save All, or Save with Options from the File menu to save VIs
as individual files or group several VIs together and save them in a VI library. VI
library files end with the extension .llb. National Instruments recommends that
you save VIs as individual files, organized in directories, especially if multiple
developers are working on the same project. LabVIEW uses native file dialogs for
loading and saving. You can disable this feature by selecting ToolsOptions and
selecting Miscellaneous from the top pull-down menu.

You might also like