![NI PXI-4220 Скачать руководство пользователя страница 85](http://html1.mh-extra.com/html/ni/pxi-4220/pxi-4220_user-manual_1685516085.webp)
Chapter 5
Developing Your Application
©
National Instruments Corporation
5-15
NI PXI-4220 User Manual
Other Application Documentation and Material
The following locations provide more information that you may find useful
when setting up or connecting signal sources or programming your
application.
•
LabVIEW Example Programs, available by selecting
Open»
Examples
from the opening screen. Most of the examples applicable
to the NI PXI-4220 are located in
Hardware Input and Output»
DAQmx»Analog Measurements
and
Hardware Input and
Output»DAQmx»Synchronization»Multi-Device
.
Note
The example program
Acq
Strain
Samples
(with
Calibration).vi
, located
in
Hardware Input and Output»DAQmx»Analog Measurements»Strain
, allows you
to programmatically perform shunt calibration in LabVIEW.
Set Slave to Use Timebase
from Master
Use a DAQmx Timing Property Node to set
MasterTimebase.Src
and
MasterTimebase.Rate
to the
values retrieved from the master task in the
Get Master Timebase
Source and Rate from Master Task
step.
Configure Slave Triggering
DAQmx Trigger.vi
(Start Digital Edge)—Use
/MasterDevice/ai/StartTrigger
as the source,
substituting the master device identifier for
MasterDevice
.
Start Slave Measurement(s)
DAQmx Start Task.vi
Start Master Measurement
DAQmx Start Task.vi
Read Measurement
DAQmx Read.vi
Continue Sampling
For continuous sampling, use a While Loop. You also need to
have set the sample mode to
Continuous Samples
in the
Configure Master Timing
and
Configure Slave Timing
steps.
To set the sample mode, right-click the terminal of the
DAQmx Timing.vi
labeled
sample mode
and select
Create»Constant
. Click the box that opens and select
Continuous Samples
.
Clear Master Task
DAQmx Clear Task.vi
Clear Slave Task
DAQmx Clear Task.vi
Table 5-3.
Synchronizing the NI PXI-4220 Using LabVIEW (Continued)
Flowchart Step
VI or Program Step
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com