labview高级教程(Labview Advanced P
Labview Advanced Programming Techniques second edition
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. Automation
has reduced the costs and increased the manufacturing outputs of factories
around the world. Cycle times for product development have been shortened and
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 many
organizations for accomplishing these goals.
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 handling,
and state machines were very difficult to find. In addition, newer areas such
as multi-threading and ActiveX are even harder to locate and sometimes documentation
is non-existent. 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 some good background information for
programmers 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 working
with and how it interacts with the system. We present a chapter on multithreading’s
impact on LabVIEW. Version 5.0 was LabVIEW’s debut into the world
of multi-threaded capable programming languages. A number of the issues that occur
with multi-threading programming were abstracted from the programmer, but a
working knowledge of muti-threaded interactions is needed.