Specifying channel strings in ni-daqmx, Text based ades, Specifying channel strings in ni-daqmx -11 – National Instruments Module SCXI-1503 User Manual

Page 54: Text based ades -11

Advertising
background image

Chapter 5

Using the SCXI-1503

© National Instruments Corporation

5-11

SCXI-1503 User Manual

Note

Refer to the LabVIEW Help for information about property nodes and specific

NI-DAQmx properties.

Specifying Channel Strings in NI-DAQmx

Use the channel input of DAQmx Create Channel to specify the
SCXI-1503 channels. The input control/constant has a pull-down menu
showing all available external channels. The strings take one of the
following forms:

single device identifier/channel number—for example

SC1Mod1/ai0

multiple, noncontinuous channels—for example

SC1Mod1/ai0

,

SC1Mod1/ai4

.

multiple continuous channels—for example

SC1Mod1/ai0:4

(channels 0 through 4)

When you have a task containing SCXI-1503 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 6, .NET, and C# to create code for using the
SCXI-1503.

LabWindows/CVI

LabWindows/CVI works with the DAQ Assistant in MAX to generate
code for an voltage measurement 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.

The DAQ Assistant creates the code for the task based on the
parameters you define in MAX and the device defaults. To change
a property of the channel programmatically, use the

DAQmxSetChanAttribute

function.

Advertising