O'Reilly logo

LabVIEW Graphical Programming Cookbook by Yik Yang

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using a simple DAQ device

Buying a DAQ device does not have to be costly. The NI USB-6000 is a USB-based DAQ device with 8 SE/4 DIFF analog input with 10 kS/s sampling rate and 12 bits resolution. It also has 4 DIO and a 32 bits counter. With so many features, it only costs $149. In this recipe, we will use DAQmx to work with such a device.

How to do it…

We will write an application that controls a NI USB-6000 with a state machine.

  1. Build the state machine, as shown in the following screenshot. The first state is "User Input". When a user clicks on the Start button, it puts all user inputs onto a cluster and sends it to the next state.
    How to do it…
  2. The next state ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required