Book Image

Data Acquisition using LabVIEW

By : Behzad Ehsani
Book Image

Data Acquisition using LabVIEW

By: Behzad Ehsani

Overview of this book

NI LabVIEW's intuitive graphical interface eliminates the steep learning curve associated with text-based languages such as C or C++. LabVIEW is a proven and powerful integrated development environment to interact with measurement and control hardware, analyze data, publish results, and distribute systems. This hands-on tutorial guide helps you harness the power of LabVIEW for data acquisition. This book begins with a quick introduction to LabVIEW, running through the fundamentals of communication and data collection. Then get to grips with the auto-code generation feature of LabVIEW using its GUI interface. You will learn how to use NI-DAQmax Data acquisition VIs, showing how LabVIEW can be used to appropriate a true physical phenomenon (such as temperature, light, and so on) and convert it to an appropriate data type that can be manipulated and analyzed with a computer. You will also learn how to create Distribution Kit for LabVIEW, acquainting yourself with various debugging techniques offered by LabVIEW to help you in situations where bugs are not letting you run your programs as intended. By the end of the book, you will have a clear idea how to build your own data acquisition system independently and much more.
Table of Contents (18 chapters)
Data Acquisition Using LabVIEW
Credits
About the Author
Acknowledgments
About the Reviewer
www.PacktPub.com
Preface
9
Alternate Software for DAQ

Power supply voltage steps


What this VI attempts to do is simply set five different voltages and query the current value every time that a new value is set. We also need to set the output of the power supply to ON mode in the beginning and set it to OFF at the end. We are going to use an array to send SCPI commands to achieve each step.

We begin by creating this unpopulated array:

  1. Place an "Array constant" on the Block Diagram: Functions | Programming | Array | array Constant.

  2. Drop a "String Constant" on the "Array Constant": Functions | Programming | String | String Constant.

  3. Fill the array element as shown in the VI. The array should have 12 elements:

  4. Add a "For Loop": Functions Programming Structures "For Loop".

  5. Drop the SUB VI we built inside the "For Loop": Functions Select a VI... navigate, and find the SUBVI and place it inside the "For Loop".

  6. Place a "Build Array" inside the loop. Click on "Build Array" and expand it to two inputs.

  7. Connect the "Read buffer" output of the SUB VI and connect...