Programming instructions
Chapter 3 Basic LabVIEW Data Acquisition Concepts
LabVIEW Data Acquisition Basics Manual 3-10
©
National Instruments Corporation
Channel Name Addressing
If you use the DAQ Channel Wizard to configure your analog and digital
channels, you can address your channels by name in the
channel list
parameter in LabVIEW.
channel list
can be an array of strings or, as with
the Easy VIs, a scalar string control, as shown in Figure 3-6. If you have a
channel list
array, you can use one channel entry per array element, specify
the entire list in a single element, or use any combination of these two.
If you enter multiple channel names in
channel list
, all of the channels in
the list must be configured for the same DAQ Device. If you configure
channels with names of
temperature
and
pressure
, both of which are
measured by the same DAQ Device, you can specify a list of channels
in a single element by separating them by commas—for example
temperature,pressure
. In specifying channel names, spelling and
spaces are important, but case is not.
Figure 3-6.
Channel String Controls
Using channel names, you do not need to wire the
device
,
input limits
,
or
input config
input parameters. The
device
input is always ignored
by LabVIEW when using channel names. LabVIEW configures your
hardware in terms of your channel configuration. Unless you need to
overwrite your channel name configuration, do not wire
input limits
or
input config
; allow LabVIEW to set them up for you. In addition,
LabVIEW orders and pads the channels specified in
channel list
for you
as needed according to any special device requirements.
Channel Number Addressing
If you are not using channel names to address your channels, you can
address your channels by channel numbers in the
channel list
parameter.
The
channel list
can be an array of strings or, as with the Easy VIs, a
scalar string control. If you have a
channel list
array, you can use one
channel entry per array element, specify the entire list in a single element,
or use any combination of these two methods. For instance, if
0
,
1
, and
2










