Chapter 5
Using the SCXI-1521/B
5-10
ni.com
Specifying Channel Strings in NI-DAQmx
Use the channel input of
DAQmx Create Channel
to specify the
SCXI-1521/B channels. The input control/constant has a drop-down menu
showing all available external channels. You can right-click the physical
channel input, select
I/O Name Filtering
, and check
Internal Channels
.
This allows you to select the SCXI-1521/B excitation channels. The strings
take one of the following forms:
•
Single device identifier/channel number—for example
SC1Mod1/ch0
•
Multiple, noncontinuous channels—for example
SC1Mod1/ch0,
SC1Mod1/ch4
•
Multiple continuous channels—for example
SC1Mod1/ch0:4
(channels 0 through 4)
•
Excitation on a particular SCXI-1521/B channel—for example
SC1Mod1/_Vex0
,
SC1Mod1/_Vex1
Once you have a task containing SCXI-1521/B channels, you can set the
properties of the channels programmatically using the
DAQmx Channel
Property Node
.
Text Based ADEs
You can use text based ADEs such as LabWindows/CVI, Measurement
Studio, Visual Basic, .NET, and C# to create code for using the
SCXI-1521/B.
LabWindows/CVI
LabWindows/CVI works with the
DAQ Assistant
in MAX to generate
code for a strain task. You can then use the appropriate function call to
modify the task. To create a configurable channel or task in
LabWindows/CVI, complete the following steps:
1.
Launch LabWindows/CVI.
2.
Open a new or existing project.
3.
From the menu bar, select
Tools»Create/Edit DAQmx Tasks
.
4.
Choose
Create New Task In MAX
or
Create New Task In Project
to load the DAQ Assistant.
5.
Configure the NI-DAQmx strain task following the instructions in the
Creating a Strain Global Channel or Task
section.
6.
The DAQ Assistant creates the code for the task based on the
parameters you define in MAX and the device defaults. To change a