Hands-On Intro to LabVIEW for Scientists and 2nd Release Bob Essick Reed College New Yórk 0xford OXFORD School Push Technicians Contents. Preface 1. THE WHILE LOOP AND WAVEFORM CHART 1 1.1 LabVIEW Development Atmosphere 1.2 Sine-Wave Storyline 1.3 Block 1.4 LabVIEW 1.5 Front Section 22 1.6 27 1.7 Pop-Up Menu Finish the System 1.8 System Setup 31 1.10 System Enhancements Date-Type Répresentations 33 1.11 Auto Creation Feature 46 1.12 System Storage space 48 Perform It YourseIf 50 Complications 51 1.9 2. xiii using a While Cycle 1 and Waveform Graph 3 Diagram Editing and enhancing Assist Window Editing 20 30 43 THE FOR LOOP AND WAVEFORM Chart For 2.2 Sine-Wave Plot 2.3 Waveform Chart 2.4 Possessed and Free Brands 2.5 Creation of Sine Influx 2.6 Cloning Block-Diagram Icons 2.7 56 Basics 2.1 Loop using 2 56 For Cycle and Wavéform á Graph 57 58 59 making use of á Fór Cycle 60 63 Feature 65 2.8 Auto-Indexing Operating the Vl 2.9 x-Axis Calibration of the Waveform 2.10 Sine-Wave Story making use of 2.11 Range Signals and thé 68 a While Graph Loop and Waveform Graph Probe Watch Windowpane 69 75 79 Do It YourseIf 90 Troubles 92 vii Contents THE MATHSCRlPT N0DE AND XY Chart 3. 3.1 MathScript Node Basics Fast MathScript Node Example: Sine-Wave Piece Debugging with Mistake Listing Waveform Simulator using a MathScript Nodé and XY Chart Generating an xy Bunch 3.2 3.3 3.4 3.5 3.6 Working 109 111 115 117 3.8 MathScript Including Shape Options 3.9 The Enumerated Type Handle 122 3.10 Finishing the Block out Diagram 124 3.11 Working the Vl 128 3.12 Handle and Signal Groupings 129 3.13 Creating 3.14 Image 3.15 Connection 142 Perform It YourseIf 146 Problems 148 DATA án lcon to Wavéform Simulator making use of the Image Editor 121 136 137 Design Assignment Order Making use of DAQ Helper 152 152 4.3 Order Vis Data Acquisition Equipment Analog Input Settings 4.4 Variety and Resolution 157 4.5 Sampling Rate of recurrence and the Aliasing Effect Dimension amp; Automation Explorer (Utmost) Basic Analog Insight Operation on á DC Voltage DigitaI Oscilloscope 158 4.9 Analog Output 184 4.10 DC 4.11 Software-Timed Sine-Wave Generator 192 4.12 Hardware-Timed Waveform Generator 194 4.1 4.2 4.6 4.7 4.8 4.13 4.14 4.15 viii 99 102 116 the VI Interactive Screen 3.7 4. 99 Information VoItage 153 155 160 164 175 185 Supply on á Diagram Placing CompIeting and Executing Waveform Power generator (Express) 197 Modified Waveform Generator 201 Perform It YourseIf 203 Troubles 204 a Custom-Made VI Mass 199 Material DATA Data files AND CHARACTER STRINGS 5.1 ASCII Text message and Binary Data Files 5.2 Storing 211 211 File 5.4 Spreadsheet-Formatted Storing Variety Transpose Choice 5.5 Storing a Two-DimensionaI 5.6 Controlling the File format 5.7 The Path Constant and System 5.8 Fundamental File I/U Vis 5.9 Incorporating Text Labels to 5.10 Blackslash Requirements 237 Do It YourseIf 239 Complications 243 5.3 Data in á á 213 One-Dimensional Data Data 214 217 220 Variety of Stored Data á 224 Portability 226 227 Spreadsheet File 233 Change Signs up 252 6.1 Change Register Essentials 252 6.2 255 6.3 Quick Shift Register Illustration: Integer Sum Numerical Incorporation and Differentiation using Shift Signs up 6.4 Power Functionality Simulator Vl 258 6.5 Statistical Incorporation via the Trapezoidal Rule Trapezoidal Guideline VI making use of Single Shift Register Convergence Real estate of the Trapezoidal Guideline Numerical Differentiation making use of a Multiple Shift Registers Modularity and Auto SubVI Development 264 Do It YourseIf 289 Problems 289 6.6 6.7 6.8 6.9 THE Situation Framework 258 267 275 278 284 296 7.1 Situation Structure Basics 7.2 Quick 7.3 Statistical Integration making use of Case Constructions 310 7.4 Numerical Incorporation via Simpson'h Principle 310 7.5 Parity Determiner making use of 7.6 Summation of General Amounts 7.7 7.8 7.9 Case Framework 296 Illustration: Runtime Options using Property or home Nodes 299 a Boolean Situation Construction Top-LeveI 313 Numeric Case Structure using Trapezoidal Principle Contribution using a á Boolean Case Structure Simpson's Guideline VI Assessment of the Trapezoidal Rule and 318 321 323 Simpson'beds Rule 326 Perform It YourseIf 329 Difficulties 330 ix Items 8. Information Addiction AND THE SEQUENCE STRUCTURE 8.1 Data Reliance and Sequence Structure Fundamentals using a Sequence Structure Event Timer making use of Data Addiction Highlight Delivery 338 8.2 Event Tinier 342 Do It YourseIf 354 Problems 355 8.3 8.4 9. 352 9.1 Thermistor Resistance-Temperature Information Document 364 9.2 Temp Measurement making use of Thermistors 367 9.3 The Linear 370 Technique Least-Squarés a VI using Data to Front-Panel Control 371 9.5 Inputting Inputting 9.6 Cutting Up 9.7 Contour 9.8 Left over Plan 391 Do It YourseIf 394 Issues 397 Data to á á Vl á by Reading through from Multi-Dimensional a Drive Document 376 379 Number Installing making use of the Linear Least-Squares Method Evaluation VIS: Quick FOURIER TRANSF0RM 385 405 10.1 The Fourier Transform 405 10.2 Discrete Sample and the Nyquist Regularity 406 10.3 The Discrete Fourier Transform 407 10.4 The Quick Fourier Transfórm 408 10.5 Rate of recurrence 409 10.6 FFT of Sinusoids 10.7 Applying the FFT tó Various SinusoidaI 10.8 421 10.10 Size Complex-Amplitude Observing Leakage Analytic Explanation of Loss 10.11 Description of Loss Making use of the Convolution Théorem 430 10.12 Windowing Estimating Rate of recurrence and Amplitude AIiasing 440 Perform It YourseIf 444 Difficulties 445 10.9 10.13 10.14 back button 349 364 Evaluation VIS: CURVE Installing 9.4 10. 338 Loan calculator VI 412 Inputs of the 414 417 427 434 443 Material 11. Information Buy AND GENERATION Making use of DAQMX Vis 11.1 11.4 DAQmxVIs Basic Analog Insight Procedure on á DC Voltage DigitaI Oscilloscope Show VI Automatic Code Era 11.5 Restriction of Show Vis 11.6 11.7 Improving Digital Oscilloscope making use of Analog Output Operations 11.8 Waveform Power generator 481 Do It YourseIf 485 Issues 485 11.2 11.3 12. 451 451 453 459 466 467 State Machine Structures 480 PID TEMPERATURE CONTROL PROJECT 12.1 Voltage-Controlled 491 Bidirectional Present Motorist for Thermoelectric Gadget 12.2 PID 12.3 PID 491 Formula Temperature Control System Temp Control 492 495 CONTROL OF STAND-ALONE Tools 13. 469 498 13.1 Device Handle 13.2 The VISA Program using VlSA Vis 498 499 13.3 The IEEE 488.2 Regular 503 13.4 Typical Instructions 503 13.5 Standing 504 13.13 Reporting Device-Specific Commands Specific Hardware used in this Part Dimension amp; Automation Explorer (Maximum) Simple VISA-Based Query Operation Message Termination Getting and Placing Communication Qualities making use of Performing a Measurement over the User interface Coach Synchronization Methods 13.14 Dimension VI Centered on the Serial Poll Technique 538 13.15 Dimension VI Centered on the Program 545 13.6 13.7 13.8 13.9 13.10 13.11 13.12 13.16 13.17 508 509 511 518 522 a Property Node 523 Demand Method Instrument Driver Developing an Using the Device Drivers to 527 532 551 Write an Application System 565 Perform It YourseIf 571 Complications 572 APPENDIX I: CONSTRUCTION OF Heat CONTROL Program 575 APPENDIX II: Plan CROSS REFERENCE Desk 583 Index 585 xi
If a VI is not found in the expected place, LabVIEW searches the system libraries and the folders which contain your project files. It won't search anywhere else. If LabVIEW finds a VI in an unexpected place, it pops up a confirmation dialog. The dialog shows the path where the VI was expected, and the path where the replace VI is found.