
Chapter 5
Using the SCXI-1521/B
©
National Instruments Corporation
5-7
Developing an Application Using LabVIEW
This section describes in more detail the steps shown in the typical program
flowchart in Figure 5-1, such as how to create a task in LabVIEW and
configure the channels of the SCXI-1521/B. If you need more information
or for further instructions, select
Help»VI, Function, & How-To Help
from the LabVIEW menu bar.
Note
Except where otherwise stated, the VIs in Table 5-2 are located on the
Functions»
All Functions»NI Measurements»DAQmx - Data Acquisition
subpalette and
accompanying subpalettes in LabVIEW.
Table 5-2.
Programming a Task in LabVIEW
Flowchart Step
VI or Program Step
Create Task in DAQ Assistant
Create a
DAQmx Task Name Constant
located on the
Controls»All Controls»I/O»DAQmx Name Controls
subpalette, right-click it, and select
New Task (DAQ
Assistant)
.
Create a Task
Programmatically
(optional)
DAQmx Create Task.vi
—This VI is optional if you created
and configured your task using the DAQ Assistant. However, if
you use it in LabVIEW any changes you make to the task will not
be saved to a task in MAX.
Create AI Strain Channel
(optional)
or
Create AI Custom Voltage
with Excitation Channel
DAQmx Create Virtual Channel.vi
(AI Voltage by default,
to change to a strain gauge channel click
AI Voltage
and select
Analog Input»Strain»Strain Gage
.)—This VI is optional if
you created and configured your task and channels using the
DAQ Assistant. Any channels created with this VI are not saved
in the task in the DAQ Assistant, they are only available for the
present session.
Adjust Timing Settings
(optional)
DAQmx Timing.vi
(Sample Clock by default)—This VI is
optional if you created and configured your task using the DAQ
Assistant. Any timing settings modified with this VI are not
saved in the task in the DAQ Assistant, they are only available for
the present session.