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: Revision 1


In this revision of the Power Supply Voltage Steps example, we will accomplish three tasks:

  • We will create a SUB VI to collect voltages from an oscilloscope

  • We will add condition selections such that the blank array elements are removed

  • We will add code to display measured voltage as opposed to set voltages

To create a SUB VI that will use the oscilloscope to display the measured voltages that the power supply puts out, we will do the following:

  1. From the Tektronix functions pallet, choose and place "Initialize.vi" and "Read Measurement.vi" on a Block Diagram of a new VI.

  2. Connect a Boolean False to the "Reset" input of the Initialize.vi.

  3. Connect serial input and output VISA as in the following diagram.

  4. Right click on the "Measurement Type" input of the measurement type VI and choose "Mean" from the drop-down menu.

  5. Create a SUB VI and save all:

With this SUB VI in place, we can modify the original VI to implement parts 2 and 3.

There are four main changes needed...