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

A distributed test application using GPIB-ENET


With the connections ready and everything set up, we will run a simple example. In this example, we will set the power supply to 2.3v DC and connect the DS 2022 leads to the power supply:

  1. Launch LabVIEW, open a blank VI, and use Tektronix VI Tree. Drag and drop the following modules on the block diagram in the VI (see the block diagram of the following window):

  2. Connect all wires to have a complete VI, as depicted in the following screenshot:

  3. This will produce the following Front Panel:

  4. On the Front Panel, click on the arrow and choose the appropriate instrument:

    • In our example, we have GPIB0::9::INSTR. Leave all other inputs with their default values.

    • Press the Run arrow icon in the top left corner to execute the VI.

    • LabVIEW chooses the X and Y limit values automatically and they change rapidly, sometimes so rapidly that one cannot see the correct trace that is drawn.

  5. Right-click on the Front Panel window and choose to remove the automatic assignment...