Text based ades, Measurement studio (visual basic, .net, and c#), Programmable ni-daqmx properties – National Instruments Module SCXI-1125 User Manual

Page 51: Text based ades -14, Programmable ni-daqmx properties -14

Advertising
background image

Chapter 5 Using the SCXI-1125

SCXI-1125 User Manual

5-14

ni.com

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-1125.

LabWindows/CVI

LabWindows/CVI works with the DAQ Assistant in MAX to generate
code for a 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 task following the instructions in the

Creating a Voltage 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 property of the channel programmatically, use the

DAQmxSetChanAttribute

function.

Note

Refer to the NI LabWindows/CVI Help for more information on creating NI-DAQmx

tasks in LabWindows/CVI and NI-DAQmx property information.

Measurement Studio (Visual Basic, .NET, and C#)

When creating a task in Visual Basic .NET and C#, follow the general
programming flow in Figure 5-1. You can then use the appropriate function
calls to modify the task. This example creates a new task and configures an
NI-DAQmx channel on the SCXI-112511251125. You can use the same
functions for Visual Basic .NET and C#.

Programmable NI-DAQmx Properties

All of the different ADEs that configure the SCXI-1125 access an
underlying set of NI-DAQmx properties. Table 5-5 provides a list of some
of the properties that configure the SCXI-1125. You can use this list to
determine what kind of properties you need to set to configure the device
for your application. For a complete list of NI-DAQmx properties, refer to
your ADE help file.

Advertising