Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Data Acquisition Using LabVIEW

You're reading from  Data Acquisition Using LabVIEW

Product type Book
Published in Dec 2016
Publisher Packt
ISBN-13 9781782172161
Pages 150 pages
Edition 1st Edition
Languages
Author (1):
Yik Yang Yik Yang
Profile icon Yik Yang

Table of Contents (18) Chapters

Data Acquisition Using LabVIEW
Credits
About the Author
Acknowledgments
About the Reviewer
www.PacktPub.com
Preface
1. LabVIEW Basics 2. Most Common Communication Buses 3. Using the DAQ Assistant to Automatically Generate LabVIEW Code 4. DAQ Programming Using LabVIEW 5. Debugging Techniques 6. Real-World DAQ Programming Techniques 7. Real-Time Issues 8. DAQ at a Distance - Network and Distributed Systems 9. Alternate Software for DAQ 10. Non-National Instrument Devices DAQ 11. LabVIEW and Simple Microcontrollers

Stepping through voltages


In this example, we will use a programmable power supply to step through five different voltages (since we use an array, the number of voltages can be as many as the number of array elements). We will send SCPI commands to a programmable power supply (KORAD KA3005P programmable DC power supply) to set the voltage. In the next step, we query the instrument to report back the value that the power supply is currently set on. Finally, we will collect all the returned values in a different array.

The power supply is connected to the LabVIEW computer via USB. We will use serial communication to send commands and collect returned values. The communication part of the VI is achieved via a SUB VI called Serial P.P.S.

To achieve the prceding scenario, we will only need four SCPI commands:

  1. OUT1: This will set the output to ON mode

  2. VSET1: This will set the output channel 1 to <value> volts

  3. VSET1 : This will query voltage at channel 1

  4. OUT0: This will turn the output off

Note...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime}