National Instruments SCXI -1125 Manual De Usuario

Descargar
Página de 101
Chapter 5    Using the SCXI-1125
5-10
ni.com
Table 5-4.  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»Modern»I/O»DAQmx Name Controls subpalette, 
right-click it, and select New NI-DAQmxTask (MAX...).
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 Channel (optional)
DAQmx Create Virtual Channel.vi
 (AI Voltage by default, 
to change to a channel, click AI Voltage and select the type of 
analog input you want.—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 DAQ Assistant. 
They are only available for the present session of the task in 
LabVIEW.
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 DAQ Assistant. They are only available for the 
present session.
Configure Channels (optional)
DAQmx Channel Property Node, refer to the 
 section for more 
information. This step is optional if you created and fully 
configured the channels using the DAQ Assistant. Any channel 
modifications made with a channel property node are not saved 
in the task in the DAQ Assistant. They are only available for the 
present session.
Start Measurement
DAQmx Start Task.vi
Read Measurement
DAQmx Read.vi
Analyze Data
Some examples of data analysis include filtering, scaling, 
harmonic analysis, or level checking. Some data analysis tools 
are located on the Functions»Signal Analysis subpalette and on 
the Functions»All Functions»Analyze subpalette.