Bitter, Rick et al "Frontmatter"
LabVIEW Advanced Programming Techinques
Boca Raton: CRC Press LLC,2001
©2001 CRC Press LLC
L
AB
VIEW A
DVANCED
P
ROGRAMMING
T
ECHINIQUES
Rick Bitter
Taqi Mohiuddin
Matt Nawrocki
CRC Press
Boca Raton New York London Tokyo
©2001 CRC Press LLC
Preface and Acknowledgments
As the power of the standard personal computer has steadily evolved, so have the
capabilities of LabVIEW. LabVIEW has simplified the working lives of thousands
of scientists, engineers, and technicians, and has increased their productivity. Auto-
mation has reduced the costs and increased the manufacturing outputs of factories
around the world. Cycle times for product development have been shortened and
the quality of many products has steadily improved. LabVIEW does not get credit
for all of these improvements, but has without question played a valuable role in
accomplishing these goals in many organizations.
In our earlier experiences with LabVIEW, we found that adequate coverage of
key topics was lacking. Subjects that are useful to users without a formal background
in computer science, such as approaches to software development, exception han-
dling, and state machines, were very difficult to find. In addition, newer areas such
as multithreading and ActiveX are even harder to locate, and sometimes documen-
tation is nonexistent. Part of our intent in this book is to cover these topics that are
difficult to find in other books on LabVIEW.
The chapters in this book are written in a manner that will allow readers to study
the topic of interest without having to read the contents in sequential order. Users
of LabVIEW with varying levels of expertise will find this book beneficial.
Proficiency with a programming language requires an understanding of the
language constructs and the tools needed to produce and debug code. The first two
chapters provide an overview of LabVIEW’s Integrated Development Environment,
programming constructs, and main features. These chapters are meant to supplement
LabVIEW’s documentation, and provide good background information for program-
mers new to the language.
Effective programmers have an understanding of programming techniques that
are applicable to a large number of programming problems. Programming tools such
as state machines that simplify logic of handling various occurrences, and the use
of instrument drivers are two such programming tools. Exception handling is left
out of more applications than we want to discuss (including some of our own), but
we have included a chapter specifically on exception handling in LabVIEW.
Advanced programmers understand the operation of the language they are work-
ing with and how it interacts with the system. We present a chapter on multithread-
ing’s impact on LabVIEW. Version 5.0 was LabVIEW’s debut into the world of
multithreaded-capable programming languages. A number of the issues that occur
with multithreading programming were abstracted from the programmer, but a
working knowledge of mutithreaded interactions is needed.
Object Oriented Programming (OOP) is commonly employed in languages such
as C++ and Java. LabVIEW programmers can realize some of the benefits to such
©2001 CRC Press LLC
an approach as well. We define key terms often used in OOP, give an explanation
of object analysis, and introduce the application of these concepts within a LabVIEW
environment.
Finally, we present two chapters on ActiveX. An explanation of related tech-
nologies such as Component Object Model (COM) and Object Linking and Embed-
ding (OLE) is provided, along with the significance of ActiveX. A description on
the use of ActiveX in LabVIEW applications is then provided. We follow this up
with several useful examples of ActiveX, such as embedding a browser on the front
panel, use of the tree view control, and automating tasks with Microsoft Word, Excel,
and Access.
This book would not have been possible without the efforts of many individuals.
First, we want to thank our friends at National Instruments. Ravi Marawar was
invaluable in his support for the completion of this book. We would also like to
thank Norma Dorst and Steve Rogers for their assistance.
Our publisher at CRC Press, Dawn Mesa, has provided us with guidance from
the first day we began working on this book until its completion. This was truly
helpful considering this is our first book. Thanks also go out to Felicia Shapiro,
our editor, who was very understanding and flexible.
A special thanks to Tim Sussman, our colleague and friend. He came through
for us at times when we needed him. Also thanks to Greg Stehling, John Gervasio,
Jeff Hunt, Ron Wegner, Joe Luptak, Mike Crowley, the Tellabs Automation team
(Paul Mueller, Kevin Ross, Bruce Miller, Mark Yedinak, and Purvi Shah), and Waj
Hussain (if it weren’t for Waj, we would have never written the papers which got
us to writing this book).
Finally, we owe many thanks for the love and support of our families. They
had to put up with us during the many hours spent on this book. Thank you, moms
and dads: Auradker and Mariam Mohiuddin, Rich and Madalyn Bitter, Barney an
Veronica Nawrocki. For moral support we thank Jahanara, Mazhar, Tanweer,
Faheem, and Firdaus; Matt Bitter, Andrea and Jerry Lehmacher; Sheila Boyle, andy,
Corinne, Mark, and Colleen Nawrocki, Sue and Steve Fechtner.
©2001 CRC Press LLC
The Authors
Rick Bitter graduated from the University of Illinois at Chicago in 1994. He has
presented papers at Motorola and National Instruments-sponsored symposiums. Rick
currently develops performance testing applications in Motorola’s Wireless Data
Solutions Engineering department as a Senior Software Engineer.
Taqi Mohiuddin graduated in Electrical Engineering from the University of
Illinois at Chicago in 1995. He obtained his MBA from DePaul University. He has
worked with LabVIEW since 1995, beginning with version 3.1, ranging in various
telecommunications applications. He is presently a Senior Engineer working with
the Product Integration Test department at Motorola. He has presented papers on
LabVIEW at Motorola and National Instruments conferences.
Matt Nawrocki graduated from Northern Illinois University in 1995. He has
written papers and has done presentations on LabVIEW topics at Motorola, National
Instruments, and Tellabs. Matt currently works in the Broadband Media Group at
Tellabs, where he writes test automation software for the Cablespan test organization.
评论0