
Chapter 5
Developing Your Application
©
National Instruments Corporation
5-3
NI PXI-4220 User Manual
General Discussion of Typical Flow Chart
The following sections briefly discuss some considerations for a few of the
steps in Figure 5-1. These sections are meant to give you an overview of
some of the options and features available when programming with
NI-DAQmx.
Creating a Task Using DAQ Assistant or
Programmatically
When creating an application, you must first decide whether to create the
appropriate task using the DAQ Assistant or programmatically in the ADE.
Developing your application using NI-DAQmx gives you the ability to
configure most settings such as measurement type, selection of channels,
bridge configuration, excitation voltage, signal input limits, task timing,
and task triggering using the DAQ Assistant tool. You can access the DAQ
Assistant either through MAX or through your NI ADE. Choosing to use
the DAQ Assistant can simplify the development of your application.
NI recommends creating tasks using the DAQ Assistant for ease of use,
when using a sensor that requires complex scaling, or when many
properties differ between channels in the same task.
If you are using an ADE other than an NI ADE, or if you want to explicitly
create and configure a task for a certain type of acquisition, you can
programmatically create the task from your ADE using function or VI calls.
If you create a task using the DAQ Assistant, you can still further configure
the individual properties of the task programmatically using function calls
or property nodes in your ADE. NI recommends creating a task
programmatically if you need explicit control of programmatically
adjustable properties of the DAQ system. Programmatically creating tasks
is also recommended if you are synchronizing multiple devices using
master and slave tasks. Refer to the
Synchronizing the NI PXI-4220
section
for more information about synchronizing multiple NI PXI-4220 devices.
Programmatically adjusting properties for a task created in the DAQ
Assistant overrides the original, or default, settings only for that session.
The changes are not saved to the task configuration. The next time you load
the task, the task uses the settings originally configured in the DAQ
Assistant.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com