Learning With LabVIEW 2009 introduces students to the basics of LabVIEW programming and relates those concepts to real applications in academia and industry. With LabVIEW, students can design graphical programming solutions to their homework problems and laboratory experiments.
Produktinformation
- Utgivningsdatum2010-04-23
- Mått188 x 232 x 26 mm
- Vikt1 130 g
- FormatHäftad
- SpråkEngelska
- FörlagPearson Education (US)
- ISBN9780132141314
Tillhör följande kategorier
- Preface xvii1 LabVIEW Basics 11.1 System Configuration Requirements 21.2 Installing the LabVIEW Student Edition 21.3 The LabVIEW Environment 31.4 The Getting Started Screen 51.5 Panel and Diagram Windows 81.5.1 Front Panel Toolbar 101.5.2 Block Diagram Toolbar 121.6 Shortcut Menus 141.7 Pull-Down Menus 161.7.1 File Menu 161.7.2 Edit Menu 161.7.3 View Menu 171.7.4 Project Menu 191.7.5 Operate Menu 191.7.6 Tools Menu 201.7.7 Window Menu 221.7.8 Help Menu 221.8 Palettes 231.8.1 Tools Palette 231.8.2 Controls Palette 241.8.3 Functions Palette 261.8.4 Searching the Palettes and Quick Drop 271.9 Opening, Loading, and Saving VIs 301.10 LabVIEW Help Options 331.10.1 Context Help Window 331.10.2 LabVIEW Help 341.11 Building Blocks: Pulse Width Modulation 351.12 Relaxed Reading: Controlling the World’s Largest Particle Accelerator 371.13 Summary 39Exercises 41Problems 45Design Problems 482 Virtual Instruments 522.1 What Are Virtual Instruments? 532.2 Several Worked Examples 552.3 The Front Panel 622.3.1 Numeric Controls and Indicators 622.3.2 Boolean Controls and Indicators 642.3.3 Configuring Controls and Indicators 682.4 The Block Diagram 682.4.1 VIs and Express VIs 692.4.2 Nodes 702.4.3 Terminals 712.4.4 Wiring 742.5 Building Your First VI 772.6 Data Flow Programming 822.7 Building a VI Using Express VIs 842.8 Building Blocks: Pulse Width Modulation 912.9 Relaxed Reading: Autonomous Driving in the DARPA Urban Challenge 932.10 Summary 96Exercises 97Problems 102Design Problems 1063 Editing and Debugging Virtual Instruments 1113.1 Editing Techniques 1123.1.1 Creating Controls and Indicators on the Block Diagram 1123.1.2 Selecting Objects 1143.1.3 Moving Objects 1163.1.4 Deleting and Duplicating Objects 1173.1.5 Resizing Objects 1173.1.6 Labeling Objects 1193.1.7 Changing Font, Style, and Size of Text 1203.1.8 Selecting and Deleting Wires 1223.1.9 Wire Stretching and Broken Wires 1233.1.10 Aligning, Distributing, and Resizing Objects 1283.1.11 Coloring Objects 1303.1.12 Cleaning Up the Block Diagram 1373.1.13 Routing Wires 1393.1.14 Reusing Snippets of Code 1403.2 Debugging Techniques 1413.2.1 Finding Errors 1423.2.2 Highlight Execution 1443.2.3 Single-Stepping Through a VI and Its SubVIs 1463.2.4 Breakpoints and Probes 1473.2.5 Navigation Window 1523.3 Property Nodes 1533.4 A Few Shortcuts 1553.5 Building Blocks: Pulse Width Modulation 1563.6 Relaxed Reading: Using Graphical System Design for Tumor Treatments 1583.7 Summary 160Exercises 162Problems 164Design Problems 1684 SubVIs 1724.1 What Is a SubVI? 1734.2 Review of the Basics 1744.3 Editing the Icon and Connector 1774.3.1 Icons 1774.3.2 Connectors 1804.3.3 Selecting and Modifying Terminal Patterns 1824.3.4 Assigning Terminals to Controls and Indicators 1834.4 The Help Window 1844.5 Using a VI as a SubVI 1884.6 Creating a SubVI from a Selection 1914.7 Error Checking and Error Handling 1934.7.1 Automatic Error Handling 1934.7.2 Manual Error Handling 1944.7.3 Error Clusters 1944.8 Saving Your SubVI 1954.9 The VI Hierarchy Window 1964.10 Building Blocks: Pulse Width Modulation 1984.11 Relaxed Reading: Embedded Graphical System Design Empowers Life-Saving Spider Robots 2014.12 Summary 203Exercises 204Problems 207Design Problems 2105 Structures 2135.1 The For Loop 2145.1.1 Numeric Conversion 2165.1.2 For Loops with Conditional Terminals 2205.2 The While Loop 2215.3 Shift Registers and Feedback Nodes 2275.3.1 Shift Registers 2275.3.2 Using Shift Registers to Remember Data Values from Previous Loop Iterations 2295.3.3 Initializing Shift Registers 2315.3.4 Feedback Nodes 2335.4 Case Structures 2365.4.1 Adding and Deleting Cases 2395.4.2 Wiring Inputs and Outputs 2415.5 Flat Sequence Structures 2475.5.1 Evaluate and Control Timing in a Sequence Structure 2485.5.2 Avoid the Overuse of Sequence Structures 2505.6 The Formula Node 2505.6.1 Formula Node Input and Output Variables 2515.6.2 Formula Statements 2515.7 Diagram Disable Structures 2545.8 Local Variables 2555.8.1 Creating Local Variables 2555.8.2 Use Local Variables with Care 2575.8.3 Initializing Local Variables 2575.8.4 Memory and Execution-Speed Considerations 2585.9 Common Programming Techniques 2585.9.1 Sequential Programming 2585.9.2 State Programming and State Machines 2605.9.3 Parallelism 2645.10 Some Common Problems in Wiring Structures 2655.10.1 Failing to Wire a Tunnel in All Cases of a Case Structure 2655.10.2 Overlapping Tunnels 2665.10.3 Wiring Underneath Rather Than through a Structure 2665.11 Building Blocks: Pulse Width Modulation 2675.12 Relaxed Reading: Refining the Process of Steel Recycling 2715.13 Summary 272Exercises 275Problems 279Design Problems 2846 Arrays and Clusters 2886.1 Arrays 2896.1.1 Creating Array Controls and Indicators 2906.1.2 Multidimensional Arrays 2926.2 Creating Arrays with Loops 2936.2.1 Creating Two-Dimensional Arrays 2966.3 Array Functions 2976.3.1 Array Size 2976.3.2 Initialize Array 2986.3.3 Build Array 3006.3.4 Array Subset 3016.3.5 Index Array 3026.4 Polymorphism 3106.5 Clusters 3136.6 Creating Cluster Controls and Indicators 3146.6.1 Cluster Order 3166.6.2 Using Clusters to Pass Data to and from SubVIs 3186.7 Cluster Functions 3196.7.1 The Bundle Function 3196.7.2 The Unbundle Function 3236.7.3 Creating Cluster Constants on the Block Diagram 3236.7.4 Using Polymorphism with Clusters 3256.8 Matrix Data Type and Matrix Functions 3266.8.1 Creating Matrix Controls, Indicators, and Constants 3266.8.2 Matrix Functions 3286.9 VI Memory Usage 3306.10 Building Blocks: Pulse Width Modulation 3316.11 Relaxed Reading: User Friendly and Intelligent Acupuncture 3346.12 Summary 336Exercises 338Problems 341Design Problems 3447 Charts and Graphs 3487.1 Waveform Charts 3497.2 Waveform Graphs 3577.3 XY Graphs 3657.4 Customizing Charts and Graphs 3687.4.1 Axes Scaling 3687.4.2 The Plot Legend 3727.4.3 The Graph Palette and Scale Legend 3747.4.4 Special Chart Customization Features 3767.4.5 Special Graph Customization Features: Cursor Legend 3777.4.6 Using Graph Annotations 3807.4.7 Exporting Images of Graphs, Charts, and Tables 3817.4.8 Using Context Help 3817.5 Using Math Plots for 2D and 3D Graphs 3827.5.1 2D Graphs 3827.5.2 3D Graphs 3867.6 Building Blocks: Pulse Width Modulation 3907.7 Relaxed Reading: Environmental Monitoring in the Costa Rican Rain Forest 3917.8 Summary 394Exercises 396Problems 397Design Problems 3998 Data Acquisition 4028.1 Components of a DAQ System 4038.2 Types of Signals 4048.2.1 Digital Signals 4068.2.2 Analog DC Signals 4078.2.3 Analog AC Signals 4088.2.4 Analog Frequency-Domain Signals 4098.2.5 One Signal–Five Measurement Perspectives 4118.3 Common Transducers and Signal Conditioning 4128.4 Signal Grounding and Measurements 4168.4.1 Signal Source Reference Configuration 4168.4.2 Measurement System 4178.5 Analog to Digital Conversion Considerations 4228.6 DAQ VI Organization 4278.7 Choosing Your Data Acquisition Device 4288.7.1 M Series Data Acquisition Devices 4298.7.2 Low Cost Data Acquisition for Students 4298.7.3 Simulated Data Acquisition 4298.7.4 Macintosh, Linux, Palm OS, Windows Mobile for Pocket PC, and Select Windows CE OS Devices 4308.8 DAQ Hardware Configuration 4318.8.1 Windows 4318.8.2 Channels and Tasks 4398.9 Using the DAQ Assistant 4418.9.1 DAQmx Task Name Constant 4458.10 Analog Input 4488.10.1 Task Timing 4488.10.2 Task Triggering 4498.11 Analog Output 4538.11.1 Task Timing 4548.11.2 Task Triggering 4558.12 Digital Input and Output 4608.13 Building Blocks: Pulse Width Modulation 4668.13.1 Generating Pulse Width Modulated Signals with Hardware Counters 4678.13.2 Applications of Pulse Width Modulation 4688.14 Relaxed Reading: Structural Health Monitoring of the Olympic Venues 4698.15 Summary 471Exercises 474Problems 475Design Problems 4769 Strings and File I/O 4789.1 Strings 4799.1.1 Converting Numeric Values to Strings with Build Text Express VI 4869.2 File I/O 4879.2.1 Writing Data to a File 4919.2.2 Reading Data from a File 4949.2.3 Manipulating Spreadsheet Files 4959.2.4 File I/O Express VIs 4989.2.5 Obtaining the Path to the System Directories 5039.3 Building Blocks: Pulse Width Modulation 5049.4 Relaxed Reading: Optimizing Professional CyclistPerformance 5069.5 Summary 508Exercises 509Problems 511Design Problems 51210 MathScript RT Module 51610.1 What Is MathScript RT Module? 51710.2 Accessing the MathScript Interactive Window 51810.2.1 The Command History and Output Windows 52010.2.2 Viewing Data in a Variety of Formats 52110.3 MathScript Help 52410.4 Syntax 52610.4.1 Key MathScript Functions 53510.5 Defining Functions and Creating Scripts 53610.5.1 User-Defined Functions 53710.5.2 Scripts 54010.6 Saving, Loading, and Exporting Data Files 54310.6.1 Saving and Loading Data Files 54310.6.2 Exporting Data 54610.7 MathScript Nodes 54710.7.1 Accessing the MathScript Node 54810.7.2 Entering Scripts into the MathScript Node 55010.7.3 Input and Output Variables 55010.7.4 Script Highlighting 55410.7.5 Debugging Scripts 55610.7.6 Saving Scripts from within the MathScript Node 56110.8 Applications of MathScript RT Module 56310.8.1 Instrument Your Algorithms 56310.8.2 Graphical Signal Processing, Analysis, and Mathematics 56410.8.3 Integrating Measurement Hardware 56510.9 Building Blocks: Pulse Width Modulation 56610.10 Relaxed Reading: Acquiring and Analyzing the Bioacoustic Communication of Killer Whales 56810.11 Summary 570Exercises 572Problems 573Design Problems 57411 Analysis 57611.1 Linear Algebra 57711.1.1 Review of Matrices 57711.1.2 Systems of Algebraic Equations 58111.1.3 Linear System VIs 58411.2 Statistics and Curve Fitting 58711.2.1 Curve Fits Based on Least Squares Methods 58711.2.2 Fitting a Curve to Data with Normal Distributions 59111.2.3 The Curve Fitting Express VI 59311.3 Differential Equations 59711.4 Finding Zeroes of Functions 60611.5 Integration and Differentiation 60911.6 Signal Generation 61111.6.1 Normalized Frequency 61111.6.2 Wave, Pattern, and Noise VIs 61511.6.3 The Simulate Signal Express VI 61811.7 Signal Processing 62011.7.1 The Fourier Transform 62011.7.2 Smoothing Windows 62411.7.3 The Spectral Measurements Express VI 62911.7.4 Filtering 63211.7.5 The Filter Express VI 64111.8 Building Blocks: Pulse Width Modulation 64411.9 Relaxed Reading: Controlling the World’s Largest Telescope in Real Time 64611.10 Summary 648Exercises 650Problems 651Design Problems 651 A Instrument Control 653A.1 Components of an Instrument Control System 654A.1.1 What Is GPIB? 654A.1.2 GPIB Messages 655A.1.3 GPIB Devices and Configurations 657A.1.4 Serial Port Communication 659A.1.5 Other Bus Technologies 661A.2 Detecting and Configuring Instruments 662A.2.1 Windows 662A.2.2 Macintosh OS X 662A.3 Using the Instrument I/O Assistant 665A.4 Instrument Drivers 672A.4.1 Developing Your Own Instrument Driver 679A.5 Future of Instrument Drivers and Instrument Control 680A.6 Summary 681B LabVIEW Developer Certification 684B.1 Overview of the NI LabVIEW Certification Structure 685B.2 Logistics of the CLAD Examination 685B.3 Benefits of CLAD 686B.4 Sample CLAD Examination 687B.5 Detailed Sample CLAD Test Solutions 698B.6 Additional Study Resources 705B.7 Summary 705Index 707