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

Introduction To LabVIEW - 2

The document discusses debugging techniques in LabVIEW such as using breakpoints and stepping into, over, and out of code. It also covers working with data types like arrays and clusters, including built-in functions for manipulating them. Additionally, it discusses working with strings and functions for concatenating, searching, replacing, and formatting strings. Finally, it touches on error handling in LabVIEW including finding errors and wiring errors.
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)
17 views

Introduction To LabVIEW - 2

The document discusses debugging techniques in LabVIEW such as using breakpoints and stepping into, over, and out of code. It also covers working with data types like arrays and clusters, including built-in functions for manipulating them. Additionally, it discusses working with strings and functions for concatenating, searching, replacing, and formatting strings. Finally, it touches on error handling in LabVIEW including finding errors and wiring errors.
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/ 62

49

Troubleshooting and Debugging

Exercise: Breakpoints

Set some Breakpoint around in your code and check out how it works. Use the Breakpoint
Manager tool.

Example:

Exercise: Step into/over/out debugging

Use the Step into/over/out functionality together with your Breakpoints and learn how you
can use them and see what the difference between them is.

Tutorial: An Introduction to LabVIEW


7 Working with Data


This chapter explains the basic concepts of creating and using Sub Vis in LabVIEW.

Topics:

• Arrays
• Array Functions
• Cluster

7.1 Arrays
Arrays are very powerful to use in LabVIEW. In all your applications you would probably use
both One-Dimensional Arrays and Two-Dimensional Arrays.

7.1.1 Auto-Indexing
LabVIEW uses a powerful mechanism called “Auto-indexing”.

For Example you may use a For loop to create Array data like this:


Or you may use an Array like this in order to automatically specify number of iterations:

50


51 Working with Data

7.1.2 Array Functions


LabVIEW has lots of built-in functions for manipulating arrays.


The most useful Array functions are:

Array Size

Index Array

Tutorial: An Introduction to LabVIEW


52 Working with Data

Delete from Array

Search 1D Array

Initialize Array

Build Array

Array Subset

Array Constant

All these functions are basic (but very useful) array functions you will probably be using in all
your applications and VIs.

Example: Array functions

In this example we see how we can use these Array functions and what they do.


The resulting Front Panel is as follows:

Tutorial: An Introduction to LabVIEW


53 Working with Data

7.2 Cluster
Clusters group data elements of mixed types, such as a bundle of wires, as in a telephone
cable, where each wire in the cable represents a different element of the cluster. A cluster is
similar to a record or a struct in text-based programming languages. Bundling several data
elements into clusters eliminates wire clutter on the block diagram and reduces the number
of connector pane terminals that subVIs need. The connector pane has, at most, 28
terminals. If a front panel contains more than 28 controls and indicators that you want to
use programmatically, group some of them into a cluster and assign the cluster to a terminal
on the connector pane. Like an array, a cluster is either a control or an indicator. A cluster
cannot contain a mixture of controls and indicators.

Tutorial: An Introduction to LabVIEW


54 Working with Data


Although cluster and array elements are both ordered, you must unbundle all cluster
elements at once rather than index one element at a time. You also can use the “Unbundle
By Name” function to access specific cluster elements.

Example of a Cluster in LabVIEW:

7.2.1 Cluster Order


You may sort the different elements in the cluster by right-click on the cluster border and
select “Reorder Controls in Cluster…”

Tutorial: An Introduction to LabVIEW


55 Working with Data

7.2.2 Cluster Elements


In order to manipulate and work with cluster LabVIEW offers lots of functions, such as the
“Bundle” and “Unbundle” functions.


In order to write to a cluster from the code, you may use the “Bundle” function or the
“Bundle By Name” function. See example below:

Example: Clusters

Tutorial: An Introduction to LabVIEW


56 Working with Data


In order to get access to the different elements in the cluster, you need to “Unbundle” by
using the “Unbundle” function or the “Unbundle By Name”. See example below:

Exercises
Exercise: Arrays

Create some simple VIs where you use these array functions to manipulate array data:

Array Size

Index Array

Delete from Array

Search 1D Array

Initialize Array
Build Array

Array Subset

Exercise: Arrays

Create a SubVI that find the “peaks” in the input array regarding to an input peak level.

Tutorial: An Introduction to LabVIEW


57 Working with Data


Exercise: Clusters

Create a Cluster and get the different values from the controls in the Cluster. See Front Panel
below:

Tutorial: An Introduction to LabVIEW


8 Working with Strings


Working and manipulating with strings is an important part in LabVIEW development.

On the Front panel we have the following String controls and indicators available from the
Control palette:


On the Block Diagram we have the following String functions available from the Functions
palette:


Some of the most important String functions are:

Concatenate Strings

58


59 Working with Strings


This function concatenates several strings into on string:


Search and Replace String


Use this when you want to replace or remove a certain text in a string.

Match Pattern

Tutorial: An Introduction to LabVIEW


60 Working with Strings


This is the most useful function when it comes to string manipulation.

Format Into String


Example:

Exercises
Here are some exercises using some of the String functions that are available in LabVIEW.

Exercise: SubVI: Remove leading zeros in string.vi

Create a SubVI which removes leading zeros in a string. Create a Test VI that uses the SubVI.

Tutorial: An Introduction to LabVIEW


61 Working with Strings

Exercise: SubVI: Remove space from end of string.vi

Create a SubVI which removes all spaces from the end of the string. Create a Test VI that
uses the SubVI.

Exercise: SubVI: Add 2 String.vi

Create a SubVI which adds 2 strings into one. Create a Test VI that uses the SubVI.

Tutorial: An Introduction to LabVIEW


9 Error Handling
This chapter explains the basic concepts of handle errors in your code.

Topics:

• Finding Errors
• Error Wiring
• Error Handling

9.1 Finding Error


If a VI does not run, it is a broken, or “nonexecutable”, VI. The Run button often appears
broken, shown at left, when you create or edit a VI. If it is still broken when you finish wiring
the block diagram, the VI is broken and will not run. Generally, this means that a required
input is not wired, or a wire is broken. Click the broken Run button to display the Error list
window, which lists all the errors. Double-click an error description to display the relevant
block diagram or front panel and highlight the object that contains the error.

9.2 Error Wiring


Error handling is important in all programming languages. LabVIEW has powerful mechanism
for handling errors and error wiring.

You should always wire the Error cluster between all SubVIs, nodes, etc. that support this,
see example below.


The Error cluster is located in the Controls palette here:

62


63 Error Handling

The Error Cluster:


The Error cluster contains of the following parts:

• Status – True/False. False: No Error, True: Error


• Code – Error Code
• Source – Textual Error message

9.3 Error Handling in SubVIs


When creating SubVIs you should always create an Error In and an Error Out. In the SubVI
code you should also use a Case structure and wire the Error in cluster to the Case Selector
as shown below.

Tutorial: An Introduction to LabVIEW


64 Error Handling

9.4 Error Handling


LabVIEW has several useful SubVIs, etc. for Error Handling:

Tutorial: An Introduction to LabVIEW


65 Error Handling


These are:


In general you should always show the error to the user. See LabVIEW Help for more details
of how to use these SubVIs.

Exercises
Exercise: Error Handling

Check out the different Error Vis in LabVIEW. Use them in some of your previous Vis.

Tutorial: An Introduction to LabVIEW


10 Working with Projects


This chapter explains the basic concepts of the project Explorer in LabVIEW.

Topics:

• Project Explorer
• Building .exe (executable) applications
• Deployment: Create an Installer

10.1 Project Explorer


It is not necessary to use the Project Explorer when developing your LabVIEW code, but it is
an easy way to structure your code, especially for larger projects.


The project Explorer is necessary when you want to deploy your code into, e.g., an
executable (.exe) application, build a setup, etc.

66


67 Working with Projects

The Project Explorer is also very useful when you integrate a source control tool, such as
Team Foundation Server, Visual Source Safe, etc. Then you may easily check files in and out
of the source code system.

In order to create a new Project in LabVIEW, simply select “Empty Project” from the Getting
Started window when you open LabVIEW.

10.2 Deployment
When your application is finished, you may want to distribute or deploy your application and
share it with others.

The Project Explorer gives you several choices when it comes to distribute and deploy your
application. Some of the options are:

• Create an executable application (.exe) – this means that the target doesn’t need to
have LabVIEW installed on their computer. All the target need is LabVIEW Run-Rime,
which is a small installation package.
• You may create your own installer, so all the target need is to run a setup.exe in
order to use your application
• Other possibilities is to create a Web Service or a Shared Library (DLL) of your
application

Tutorial: An Introduction to LabVIEW


68 Working with Projects

All these options are available from the Project Explorer, just right-click on your “Build
Specifications” node.

We will go through how we create an executable application. Click Build


Specifications→New→Application (EXE).

In the Properties window fill in your name of the application.

Tutorial: An Introduction to LabVIEW


69 Working with Projects

Make sure you select a Startup VI.


There are lots of properties and setting you may use in order to create your application, go
through all the Categories in the Properties window.

When you have finished all the steps, just select “Build” in order to create your application.

When you make changes in your application, it is easy to rebuild your application:

Exercises
Exercise: Project Explorer

Create a new Project and put on of your existing application into the project

Tutorial: An Introduction to LabVIEW


70 Working with Projects

Exercise: Deployment

Create an executable application

Tutorial: An Introduction to LabVIEW


11 Design Techniques
This chapter explains some useful techniques to use when creating your application.

Topics:

• Force the Program Flow using an Error cluster


• Shift Register
• State Machine
• Multiple Loops
• Templates

11.1 Force Program Flow


As mentioned earlier, LabVIEW follows a dataflow model for running VIs. A block diagram
node executes when all its inputs are available. When a node completes execution, it
supplies data to its output terminals and passes the output data to the next node in the
dataflow path.

In the example below we cannot be sure that the DAQmx Write.vi executes before the
DAQmx Stop Task.vi executes. LabVIEW will in this case randomly execute one of these first.
If the Stop VI happens to execute first then the Write VI will failed because task has been
stopped.

In the example below we wire the Error cluster through all the VIs, and there will be no
doubt that the Write VI will execute before the Stop VI.

71


72 Design Techniques


This approach will also take care of the error handling in your program, which is very
important in real-world applications.

11.2 Shift Register


Use shift registers on For Loops and While Loops to transfer values from one loop iteration
to the next. Shift registers are similar to static variables in text-based programming
languages. A shift register appears as a pair of terminals, directly opposite each other on the
vertical sides of the loop border. The right terminal contains an up arrow and stores data on
the completion of an iteration. LabVIEW transfers the data connected to the right side of the
register to the next iteration. Create a shift register by right-clicking the left or right border
of a loop and selecting Add Shift Register from the shortcut menu.

A shift register transfers any data type and automatically changes to the data type of the
first object wired to the shift register. The data you wire to the terminals of each shift
register must be the same type.

To initialize a shift register, wire any value from outside the loop to the left terminal. If you
do not initialize the shift register, the loop uses the value written to the shift register when
the loop last executed or the default value for the data type if the loop has never executed.

Use a loop with an uninitialized shift register to run a VI repeatedly so that each time the VI
runs, the initial output of the shift register is the last value from the previous execution. Use
an uninitialized shift register to preserve state information between subsequent executions
of a VI. After the loop executes, the last value stored in the shift register remains at the right
terminal. If you wire the right terminal outside the loop, the wire transfers the last value
stored in the shift register. You can add more than one shift register to a loop. If you have
multiple operations within a loop, use multiple shift registers to store the data values from
those different processes in the structure.

Tutorial: An Introduction to LabVIEW


73 Design Techniques

11.3 State Programming Architecture


Creating VIs using the State Machine approach is very useful when creating (large)
applications.

In general, a state machine is a model of behavior composed of a finite number of states,


transitions between those states, and actions. It is similar to a "flow graph" where we can
inspect the way in which the logic runs when certain conditions are met.

Sometimes, you may want to change the order of the sequence, repeat one item in the
sequence more often than the other items, stop a sequence immediately, or have items in
the sequence that may execute only when certain conditions are met. Although your
program may not have any such requirements, there is always the possibility that the
program must be modified in the future. Therefore, a state programming architecture is a
good choice, even if a sequential programming structure is sufficient. The following list
describes more complex programming requirements that justify the use of a state
programming architecture for an application.

Tutorial: An Introduction to LabVIEW


74 Design Techniques

• You need to change the order of the sequence


• You must repeat an item in the sequence more often than other items
• You want some items in the sequence to execute only when certain conditions are
met


The State Machine approach in LabVIEW uses a Case structure inside a While loop to handle
the different states in the program, and the transitions between them. The Shift Register is
used to save data from and between the different states.

Below we see examples of a state machine principle implemented in LabVIEW.

Simple State Machine principle


State Machine with multiple transitions depending on the State:

Tutorial: An Introduction to LabVIEW


75 Design Techniques

More advanced State Machine using Shift Registers:

11.4 Multiple Loops/Parallel


programming
Often, you need to program multiple tasks so that they execute at the same time. In
LabVIEW tasks can run in parallel if they do not have a data dependency between them, and

Tutorial: An Introduction to LabVIEW


76 Design Techniques

if they are not using the same shared resource. An example of a shared resource is a file, or
an instrument.


Using multiple While loops is sometimes useful in applications that need to handle User
interactions in parallel with, e.g., DAQ operations, etc.

Below we see an example of how this structure could look like. The upper loop could handle
interaction with the user, while the lower loop could handle DAQ operations, such as
reading and writing to some I/O equipment.

Tutorial: An Introduction to LabVIEW


77 Design Techniques

In order to pass data between the loops, you may e.g. use local variables. The loop may have
different time cycles. The I/O may require faster cycles than the User interaction loop.

11.5 Templates
You should create your own templates for such VI you use a lot. It is easy to create your own
templates for scratch, just create a VI as you normally do and then save it as a template with
the ending “.vit”. You may also convert a VI you already made just by changing the extension
to “.vit”.

You should copy your templates to the LabVIEW template folder which is default located in
“C:\Program Files\National Instruments\LabVIEW X.X\Templates\”.

The Templates will then be available from the Getting Started Window or File→New… in
LabVIEW.

I may case I have created a sub folder called “My Templates” where I place all my templates.

Tutorial: An Introduction to LabVIEW


78 Design Techniques

Exercises
Here are some exercises about shift-registers, State Machines and parallel programming.

Exercise: Shift-register

Create a VI (see example below) where you have the following states:

• Initialize
• Write
• Read
• Close

In the VI you will use a shift-register as a temporary storage. In the Write state you Write
Data to the storage (shift-register) while you in the Read state will read the Data from the
Storage.

See Example below:

Tutorial: An Introduction to LabVIEW


79 Design Techniques


Write a Test program that test the SubVI, e.g.,


This example shows how you can use a shift-register as a temporary storage, which is very
useful in many situations.

Exercise: State Machine

Use the State Machine principle on one of your previous exercises.

Exercise: Parallel Programming

Create a VI that consists of 2 parallel loops. Use local variables and other mechanisms in
order to share data between the 2 loops.

Exercise: Templates

Strip some of yours previous Vis and save them as reusable Templates.

Tutorial: An Introduction to LabVIEW


12 User Interface
This chapter explains the basic concepts of creating user-friendly Graphical User Interfaces
(GUI) in LabVIEW.

Topics:

• Decorations
• Tab Control
• Splitter
• Sub Panel
• Etc.

Below we see a Front Panel (GUI) with a “poor” design.


The information (Controls and Indicators) on the Front Panel is not structured. You should
group elements that naturally belong together and use different colors with care.

When creating Graphical User Interfaces (GUI) you should use the controls from the System
palette and not from the Modern or Classic palettes. Modern Controls may be used in Sub
Vis with no visible User Interface (for the user).

80


81 User Interface

The appearance of the controls in the System palette is standard MS Windows look and
feeling and this look is familiar for most users. These controls also change appearance due to
changes in the appearance in the operation system.

12.1 VI Properties
In order to make the appearance of the Window that hosts your application, you should
always make some changes in the “VI Properties”.

You find the “VI Properties” by right-click on the icon in the upper right corner of your VI.

Tutorial: An Introduction to LabVIEW


82 User Interface


The first thing you should change is the “Window title”. Here you may type appropriate
name of your application or SubVI.

The next you should do is to the “Customize” button in order to customize the Window
appearance.

Below we see an application with a simple and neat User Interface and with a Customized
Windows appearance.

Tutorial: An Introduction to LabVIEW


83 User Interface

Below we see a professional application created in LabVIEW that implement common GUI
objects such as a Toolbar, a Tree view, a List view, etc..

Tutorial: An Introduction to LabVIEW


84 User Interface

Exercises
Exercise: User Interface

Create a Dialog Box where you use some of the Controls from the System palette. Make the
necessary settings in VI Properties in order to hide menus, buttons, create a Title, etc.

Create a Test VI from where you open this Dialog Box, enter some data in the Dialog Box,
and then retrieve these data in the calling VI.

Example:

Tutorial: An Introduction to LabVIEW


13 Plotting Data
This chapter explains the basic concepts when plotting data in LabVIEW.

LabVIEW offers powerful functionality for plotting data. In the Graph palette we have lots of
useful controls for plotting and visualization of data.


The most useful are:

• Waveform Chart
• Waveform Graph
• XY Graph

Example:

This simple example creates a graph with some random values.

85


86 Plotting Data

The example below show the basic difference between a “Chart” and a “Graph”.

Tutorial: An Introduction to LabVIEW


87 Plotting Data


You use the “Graph” if you want to plot a set of data, e.g., an array with data, plot data from
a file, etc. Use the “Chart” if you want to plot one data point at a time, e.g., inside a loop,
etc.

13.1 Customizing
The different Chart components in LabVIEW offer a great deal of customizing.

You may click on the “Plot Legend” in order to set colors, different line
styles, etc.

If you right-click on the Graph/Chart, you may set properties such as auto-scaling, etc.

Tutorial: An Introduction to LabVIEW


88 Plotting Data

If you select Properties, you get the following dialog:

You may also select which items that should be visible or not.

Tutorial: An Introduction to LabVIEW


89 Plotting Data

The “Graph Palette” lets you zoom in and out on the Graph, etc.

Exercises
Exercise: Graph

Create a VI that reads data from a file and plot the data in a Graph component.

Exercise: Chart

Create a VI where you use Data Binding in order to retrieve data from an OPC demo.

Data Binding is set in the Properties → Data Binding tab:

Tutorial: An Introduction to LabVIEW


90 Plotting Data

Exercise: Customizing

Customize the Graph and the Chart in the examples above in order to set colors, line
thickness, etc.

Tutorial: An Introduction to LabVIEW


14 Tips & Tricks


This chapter gives you some useful Tips & Tricks regarding LabVIEW.

14.1 10 functions you need to know


about
These are the 10 most useful functions in LabVIEW, so you could already now learn how to
use them and where to find them!

Build Array


This example using the Build Array function inside a For loop in order build an array with 10
elements.


Index Array

91


92 Tips & Tricks


It is always useful to find a specific value in an array:


The Index Array is extendible, so you can drag it out to find more than one elements:

Array Size


Find the size of an arbitrary array:

Select

Tutorial: An Introduction to LabVIEW


93 Tips & Tricks


Depending on the input data, go to the Alarm case or the Write Data case.


Concatenate Strings


This function concatenate several strings into on string:


Search and Replace String

Tutorial: An Introduction to LabVIEW


94 Tips & Tricks


Use this when you want to replace or remove a certain text in a string.

Match Pattern


This is the most useful function when it comes to string manipulation.

Format Into String

Tutorial: An Introduction to LabVIEW


95 Tips & Tricks


Example:


Fract/Exp String to Number


This function converts a string into a number:


Example: Number To Fractional String


Example:

Tutorial: An Introduction to LabVIEW


96 Tips & Tricks

14.2 The 10 most useful Short-cuts


These are the 10 most useful short-cuts in LabVIEW, so you could already now learn how to
use them!

Short-Cut Description
Ctrl + B Deletes all broken wires in a VI
Ctrl + . Stops the Running VI
Ctrl + E Toggle between the Front Panel and Block Diagram
Tab Cycles through the most common Tools (Automatic Tool Selection
should be disabled!)
Ctrl + Mouse Scrolls through subdiagrams in Case, Event or Sequence structures
wheel
Ctrl + H Displays the Context Help window
Ctrl + Mouse Opens the Block Diagram directly
Double-click on a
SubVI
Ctrl + Arrows Move faster. You first have to select a SubVI, a Function, Object, etc
(→←←↓ )
Ctrl + W Close the SubVI
Double-click on a Selects the hole wire
wire

Tutorial: An Introduction to LabVIEW


15 Example Application
In this example, we will go through an example application. The application uses most of the
LabVIEW features you have learned in this Tutorial.

The application is called “Glossary”. It is a simple application that learns kid’s words in
English. Since the application is for kids, the user interface is create with a “childish” look
and feel.


This is an example of how to create a user-friendly application in LabVIEW that uses most of
the functionality in LabVIEW, such as State-machine principles, reading and writing to files,
dialog boxes, graphics and sound effects. Basic functions for string and array manipulation,
and of course while loops, case structures, subVIs, etc. The example also uses the Project
Explorer to collect all the files in one place and to create an executable file of the solution.
Finally it uses the Project Explorer to create a setup package you can use to install the
application easily on other computers.

97


98 Example Application

I created this application for my kids in the Primary school who had problems with learning
their homework in English.

Below we see the Glossary List:

If you click on the little book symbol in your application, this window will pop up:

Click tis symbol and you can enter new words:

Tutorial: An Introduction to LabVIEW


99 Example Application

The application uses the Project Explorer:

Tutorial: An Introduction to LabVIEW


100 Example Application

This makes it easy to keep an overview of all your files in your project. You may also use the
Project Explorer to create an executable file of your application. In addition you may also
create an installation package so you can easily install the application on other computers.
As part of the installation the LabVIEW Run-time engine will be installed.

Block Diagram:

The application uses the state machine principle, which makes it easy to create large
applications:

Tutorial: An Introduction to LabVIEW


16 Additional Exercises
This chapter lists lots of additional exercises you could try out in order to improve your
LabVIEW skills.

Exercise: vCard Reader

Create an application that reads information from a vCard.

vCard is a file format standard for electronic business cards. vCards are often attached to e-
mail messages, but can be exchanged in other ways, such as on the World Wide Web. They
can contain name and address information, phone numbers, URLs, logos, photographs, and
even audio clips.

Example:
BEGIN:VCARD
VERSION:2.1
N:Gump;Forrest
FN:Forrest Gump
ORG:Bubba Gump Shrimp Co.
TITLE:Shrimp Man
TEL;WORK;VOICE:(111) 555-1212
TEL;HOME;VOICE:(404) 555-1212
ADR;WORK:;;100 Waters Edge;Baytown;LA;30314;United States of America
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:100 Waters Edge=0D=0ABaytown, LA 30314=0D=0AUSA
ADR;HOME:;;42 Plantation St.;Baytown;LA;30314;United States of America
LABEL;HOME;ENCODING=QUOTED-PRINTABLE:42 Plantation St.=0D=0ABaytown, LA 30314=0D=0AUSA
EMAIL;PREF;INTERNET:forrestgump@example.com
REV:20080424T195243Z
END:VCARD

For more information about the vCard format, see http://en.wikipedia.org/wiki/VCard.

The application should look something like this:


When the user click Open, then a dialog box like this should appear:

101


102 Additional Exercises


Requirements:

• Use the Project Explorer


• Use the State Machine principle
• Use the Event Structure
• Use System Controls
• Set the appropriate settings in the VI Properties.
• Create a executable application (vCard.exe)

Exercise: vCard Write & Read

Extend the application in the previous example. You should now be able to both write and
read vCard files. The application could look something like this:

Tutorial: An Introduction to LabVIEW


103 Additional Exercises


When the user clicks New, the dialog box in the previous exercise appears. The user may
enter a new vCard. If the user clicks Edit, a dialog box with the selected contact should
appear.

Exercise: Read/Write from .ini files

Read/Write from .ini files. Use the Configuration File VIs:

Exercise: ActiveX

Create a simple Web Browser using ActiveX and the Internet Explorer ActiveX control
(Microsoft Web Browser)

Use the ActiveX Container from the Containers control palette:

Tutorial: An Introduction to LabVIEW


104 Additional Exercises


Use the ActiveX function palette:


The application could look something like this:

Exercise: Themes

Tutorial: An Introduction to LabVIEW


105 Additional Exercises

In e.g., ASP.NET we have something called Themes. Themes are used to change the
appearance of your whole application regarding to color, font, pictures, etc.

LabVIEW do not offer such a functionality , but try to create your own Theme Configurator,
so you can change the appearance of your VI instantly.

Here is an example of how Windows XP handles different Themes:

Create a similar Theme Configurator so you may easily change the appearance of your Vis.

Tutorial: An Introduction to LabVIEW


17 What’s Next?
17.1 My Blog
For more information about LabVIEW, visit my Blog:

https://www.halvorsen.blog
LabVIEW resources:

https://www.halvorsen.blog/documents/programming/labview/

17.2 Tutorials
This Tutorial is a part of a series with other Tutorials I have made, such as:

• Introduction to LabVIEW
• Data Acquisition in LabVIEW
• Control and Simulation in LabVIEW
• LabVIEW MathScript
• Linear Algebra in LabVIEW
• Datalogging and Supervisory Control in LabVIEW
• Model Predictive Control in LabVIEW
• Wireless Data Acquisition in LabVIEW
• etc.

These Training Kits are available for download (.pdf files, source code, additional resources,
etc.) from my blog:

https://www.halvorsen.blog

17.3 Additional Resources


You find lots of information about LabVIEW in National Instruments web site:

www.ni.com

106


107 What’s Next?

17.4 Examples
In the NI example Finder (Help → Find Examples…) you find lots of useful examples that you
can play with or use as a start when creating your own applications.

Tutorial: An Introduction to LabVIEW


Quick Reference

108


Quick Reference

Tutorial: An Introduction to LabVIEW


Introduction to LabVIEW

Hans-Petter Halvorsen
Copyright © 2017

E-Mail: hans.p.halvorsen@usn.no

Web: https://www.halvorsen.blog

https://www.halvorsen.blog

You might also like