| |
| |
Preface | |
| |
| |
| |
Introduction | |
| |
| |
Outline | |
| |
| |
The Audience for This Book | |
| |
| |
Introduction to Measurements and Errors | |
| |
| |
Overview of the Data Acquisition Process | |
| |
| |
Graphical Programming with LabVIEW | |
| |
| |
Summary | |
| |
| |
Exercises | |
| |
| |
| |
The LabVIEW Environment | |
| |
| |
Introduction | |
| |
| |
Outline | |
| |
| |
The Circle Area Program | |
| |
| |
Conventions Used in the Text | |
| |
| |
Launching LabVIEW | |
| |
| |
Developing the User Interface on the Front Panel | |
| |
| |
The LabVIEW Cursor and Tools Palette | |
| |
| |
Develop Code on the Block Diagram | |
| |
| |
Documentation | |
| |
| |
Comparing LabVIEW with a C Text-Based Program | |
| |
| |
Simplified Interactions Between the Graphical Program and the Computer | |
| |
| |
Introduction to Data Types | |
| |
| |
Simple Calculations | |
| |
| |
Arithmetic in LabVIEW | |
| |
| |
Data Flow | |
| |
| |
Block Diagram Cleanup | |
| |
| |
Debugging | |
| |
| |
LabVIEW Help | |
| |
| |
Units | |
| |
| |
Summary | |
| |
| |
Exercises | |
| |
| |
| |
Data Acquisition | |
| |
| |
Introduction | |
| |
| |
Outline | |
| |
| |
The Temperature Measurement Program | |
| |
| |
BNC-2120 DAQ Accessory | |
| |
| |
Additional Features of the BNC-2120 | |
| |
| |
Measurement & Automation Explorer | |
| |
| |
DAQ Assistant Express VI | |
| |
| |
Measurement-Type Configuration | |
| |
| |
Channel Configuration | |
| |
| |
DAQ Task Configuration | |
| |
| |
Digitizing Resolution | |
| |
| |
Terminal Configuration | |
| |
| |
Ground Loops | |
| |
| |
Temperature Measurement VI Completion | |
| |
| |
NI myDAQ | |
| |
| |
NI myDAQ Temperature Measurement VI | |
| |
| |
Thermistor Signal Units Conversion | |
| |
| |
Dynamic Data Type | |
| |
| |
Modifying the DAQ Assistant Configuration | |
| |
| |
DAQ Assistant Express VI Connection Diagram | |
| |
| |
Code Developed by the DAQ Assistant | |
| |
| |
Selecting a DAQ Device for Analog Input | |
| |
| |
Summary | |
| |
| |
Exercises | |
| |
| |
| |
Basic DAQ Software Design and Flow Control | |
| |
| |
Introduction | |
| |
| |
Outline | |
| |
| |
Continuous Temperature Measurement | |
| |
| |
Implementing User Preferences | |
| |
| |
Algorithms, Pseudo Code, and Flowcharts | |
| |
| |
Case Structure | |
| |
| |
The Broken Run Arrow | |
| |
| |
Default Values of Controls | |
| |
| |
Data Types | |
| |
| |
While Loop | |
| |
| |
Explicit Execution Timing | |
| |
| |
Software Control Timing | |
| |
| |
Point-by-Point Continuous Measurement with NI myDAQ | |
| |
| |
Property and Invoke Nodes | |
| |
| |
Export Chart Data | |
| |
| |
Event Structure | |
| |
| |
Summary | |
| |
| |
Exercises | |
| |
| |
| |
Hierarchical Programming and State Machines | |
| |
| |
Introduction | |
| |
| |
Outline | |
| |
| |
Program Architectures | |
| |
| |
Temperature Measurement State Machine | |
| |
| |
Enumerated Types | |
| |
| |
State Machine Template and Type Def. | |
| |
| |
Shift Registers | |
| |
| |
Block Diagram Development | |
| |
| |
Style | |
| |
| |
Modular Programming with Sub VIs | |
| |
| |
Icon Editing | |
| |
| |
Connector Pane and Terminals | |
| |
| |
Block Diagram Development with a Sub VI | |
| |
| |
The LabVIEW Project | |
| |
| |
Icons or Expandable Nodes | |
| |
| |
Sequence Structure | |
| |
| |
Summary | |
| |
| |
Exercises | |
| |
| |
| |
Working with Data | |
| |
| |
Introduction | |
| |
| |
Outline | |
| |
| |
Arrays | |
| |
| |
The Array Control | |
| |
| |
For Loop | |
| |
| |
Loop Tunnel Indexing | |
| |
| |
Formula Node | |
| |
| |
Graphs and Charts | |
| |
| |
Special Characters | |
| |
| |
Array Functions | |
| |
| |
Multidimensional Arrays | |
| |
| |
Coercion | |
| |
| |
Statistical Analysis | |
| |
| |
Histogram | |
| |
| |
Climate Simulation State Machine | |
| |
| |
Clusters | |
| |
| |
Matrices | |
| |
| |
Picture Control and Indicator | |
| |
| |
Summary | |
| |
| |
Exercises | |
| |
| |
| |
Input and Output | |
| |
| |
Introduction | |
| |
| |
Outline | |
| |
| |
File I/O | |
| |
| |
Error Handling | |
| |
| |
Disk Streaming | |
| |
| |
DAQmx Vis | |
| |
| |
Instrument Communications | |
| |
| |
Instrument Drivers | |
| |
| |
Formatting and Building Command Strings | |
| |
| |
Instrument I/O Assistant Express VI | |
| |
| |
Client/Server Architecture | |
| |
| |
TCP/IP | |
| |
| |
UDP | |
| |
| |
Network Shared Variables | |
| |
| |
Network Streams | |
| |
| |
Remote Communication with a Web Browser | |
| |
| |
Application in Mobile Robotics | |
| |
| |
Summary | |
| |
| |
Exercises | |
| |
| |
| |
High-Frequency DAQ | |
| |
| |
Introduction | |
| |
| |
Outline | |
| |
| |
DAQmx Continuous Acquire and Graph with Internal Clock | |
| |
| |
Sampling Rate | |
| |
| |
Frequency Domain | |
| |
| |
Multiple Loops | |
| |
| |
Variables | |
| |
| |
Mechanical Action of Booleans | |
| |
| |
Problems with Variables | |
| |
| |
Producer Consumer Design Pattern and Queues | |
| |
| |
Signal Conditioning for Simple Sound Measurement | |
| |
| |
DC Blocking and Zero-Referencing the Signal | |
| |
| |
Amplifying the Microphone Signal | |
| |
| |
Application in Music | |
| |
| |
Summary | |
| |
| |
Exercises | |
| |
| |
| |
Summary | |
| |
| |
Introduction | |
| |
| |
Outline | |
| |
| |
Plan the Application | |
| |
| |
Front Panel | |
| |
| |
Initialize and Configure | |
| |
| |
Acquire | |
| |
| |
Analyze and Display | |
| |
| |
Save | |
| |
| |
Close Resources | |
| |
| |
Exercises | |
| |
| |
References | |
| |
| |
Credits | |
| |
| |
Index | |