Programming instructions

©
National Instruments Corporation 11-1 LabVIEW Data Acquisition Basics Manual
11
One-Stop Single-Point
Generation
In the preceding chapter, you learned the appropriate time to use
single-point updates. This chapter shows you which VIs to use in
LabVIEW to perform these updates.
Single-Immediate Updates
The most basic way to program single-point updates in LabVIEW is by
using the Easy Analog Output VI, AO Update Channels. Figure 11-1
shows a diagram of a VI that writes values to one or more output
Channels
on the output data acquisition (DAQ)
Device
.
Figure 11-1.
Single Immediate Update Using the AO Update Channels VI
Notice that an array of values is passed as an input to the VI. The first
element in the array corresponds to the first entry in the channel string,
and the second array element corresponds to the second channel entry.
If you use channel names configured in the DAQ Channel Wizard in your
channel string,
values
is relative to the physical units you specify in the
DAQ Channel Wizard. Otherwise,
values
is relative to volts. For more
information on channel string syntax, refer to Chapter 3,
Basic LabVIEW
Data Acquisition Concepts
. Remember that Easy VIs already have built-in
error handling.