Ni Daqmx - 11 14 2023
Ni Daqmx - 11 14 2023
2023-11-14
NI-DAQmx
Contents
NI-DAQmx Help. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
LabVIEW. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
LabWindows/CVI. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Measurement Studio. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
ANSI C. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
.NET. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
SignalExpress. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Getting Started. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Finding Examples. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Troubleshooting. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
NI-DAQmx Key Concepts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Channels and Tasks in NI-DAQmx. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Channels: Physical, Virtual, Local Virtual, and Global Virtual. . . . . . . . . . . . . . . . 36
Tasks in NI-DAQmx. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Creating Channels and Tasks with the DAQ Assistant. . . . . . . . . . . . . . . . . . . . . . 54
Choosing Whether to Use the API or the DAQ Assistant. . . . . . . . . . . . . . . . . . . . . 55
Timing and Triggering. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Timing, Hardware Versus Software. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Triggering. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
Synchronization. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
Subsystem. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Timing Engines. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
Events. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
Exported Signal Behaviors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
Software Events. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
Reading and Writing Data. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
Selecting Read and Write Data Format and Organization. . . . . . . . . . . . . . . . . . . 92
Buffering. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
Regeneration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
TDMS Logging. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
Signal Routing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
Specifying a Route. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
2 ni.com
NI-DAQmx
© National Instruments 3
NI-DAQmx
4 ni.com
NI-DAQmx
Encoders. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 230
IEPE and Charge. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 232
Overview of Temperature Sensor Types. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236
LVDTs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244
RVDTs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 245
TEDS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 245
Control Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 246
Proportional-Integral-Derivative (PID). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247
Real Time. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247
Loop Cycle Time. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248
Jitter Overview for Control Applications. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248
Event Response. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249
Common Applications. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250
Acceleration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251
Acceleration Flowchart. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251
Frequency (Analog). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252
Frequency Flowchart. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255
Hysteresis with Analog Frequency. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256
Angular Displacement. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256
Encoder Flowchart. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257
RVDT Flowchart. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 258
Control. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259
Event Response. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 260
Control Loops. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 261
Counting Edges. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262
Edge Count Flowchart. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263
Charge. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264
Measuring Charge Programming Flowchart. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264
Current Generation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 265
Current Generation Flowchart. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267
Current Measurement. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267
Current Flowchart. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 270
AC Current. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 270
Digital Value Generation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 271
© National Instruments 5
NI-DAQmx
6 ni.com
NI-DAQmx
© National Instruments 7
NI-DAQmx
8 ni.com
NI-DAQmx
© National Instruments 9
NI-DAQmx
10 ni.com
NI-DAQmx
© National Instruments 11
NI-DAQmx
12 ni.com
NI-DAQmx
© National Instruments 13
NI-DAQmx
NI 4464. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
PXIe-4466/4467. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
NI 447x. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 631
NI 449x. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 632
PXIe-4610. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 633
USB-6000. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 634
USB-6001. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 635
USB-6002. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 636
USB-6003. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 637
USB-6008. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 638
USB-6009. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 639
NI 6020E. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 639
DAQPad-6020E (BNC). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 641
DAQPad-6052E (BNC). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 641
DAQCard-6062E. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 642
NI 6010. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 644
NI 6110. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 645
NI 6111. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 646
NI 6115. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 647
NI 6120. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 648
NI 6122. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 649
NI 6123. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 650
NI 6124. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 651
NI 6132. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 653
NI 6133. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 654
NI 6143. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 655
NI 6154. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 656
USB-6210. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 657
USB-6211. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 659
USB-6212 (BNC). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 661
USB-6212 (Mass Termination). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 663
USB-6212 (Screw Terminal). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 665
USB-6215. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 667
USB-6216 (BNC). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 669
14 ni.com
NI-DAQmx
© National Instruments 15
NI-DAQmx
16 ni.com
NI-DAQmx
© National Instruments 17
NI-DAQmx
NI 6520. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 850
NI 6521. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 851
USB-6525. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 852
NI 6527. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 853
NI 6528. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 853
NI 6529. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 854
NI 6533. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 855
NI 6534. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 856
NI 6535. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 857
NI 6536. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 858
NI 6537. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 859
NI 6601. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 860
NI 6602. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 863
NI 6608. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 866
NI 6612. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 869
NI 6614. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 870
NI 6624. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 871
NI 6703. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 873
NI 6704. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 873
NI 6711. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 875
NI 6713. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 876
DAQCard-6715. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 877
NI 6722. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 878
NI 6723 (Extended AO Connector). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 879
NI 6731. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 880
NI 6733. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 881
PCIe/PXIe-6738. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 882
PXIe-6739. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 884
NI 9201. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 886
NI 9201 (DSUB). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 887
USB-9201. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 887
USB-9201 (DSUB). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 888
NI 9202. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 888
NI 9202 (DSUB). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 889
18 ni.com
NI-DAQmx
NI 9203. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 890
NI 9205. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 891
NI 9205 (DSUB). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 892
NI 9206. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 892
NI 9207 DSUB. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 893
NI 9207 (Spring Terminal). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 894
NI 9208 (DSUB). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 895
NI 9208 (Spring Terminal). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 896
NI 9209 (DSUB). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 897
NI 9209 (Spring Terminal). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 898
NI 9210. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 899
NI 9210 (Spring Terminal). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 900
NI 9211. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 901
USB-9211A. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 901
NI 9212 (Mini TC). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 902
TB-9212. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 903
NI 9213. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 905
USB-9213. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 905
TB-9214. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 906
NI 9215. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 907
USB-9215A. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 907
USB-9215A (BNC). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 907
NI 9216. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 908
NI 9216 (DSUB). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 908
NI 9217. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 909
NI 9218. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 909
NI 9218 (DSUB). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 912
NI 9219. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 914
USB-9219. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 915
NI 9220. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 916
NI 9221. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 917
NI 9221 (DSUB). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 918
USB-9221. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 918
USB-9221 (DSUB). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 919
© National Instruments 19
NI-DAQmx
NI 9222. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 919
NI 9222 (BNC). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 920
NI 9223. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 920
NI 9223 (BNC). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 921
NI 9224. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 921
NI 9225. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 922
NI 9226. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 923
NI 9226 (DSUB). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 923
NI 9227. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 924
NI 9228. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 924
NI 9229. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 925
NI 9229 (BNC). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 926
USB-9229. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 927
USB-9229 (BNC). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 928
NI 9230. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 929
NI 9230 (BNC). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 929
NI 9231. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 930
NI 9232. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 931
NI 9232 (BNC). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 932
USB-9233. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 933
NI 9234. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 933
USB-9234. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 934
NI 9235. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 934
NI 9236. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 935
NI 9237. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 936
NI 9237 (DSUB). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 937
USB-9237. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 938
NI 9238. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 939
NI 9239. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 939
NI 9239 (BNC). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 940
USB-9239. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 942
NI 9242. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 942
NI 9244. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 943
NI 9246. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 943
20 ni.com
NI-DAQmx
NI 9247. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 944
NI 9250 (BNC). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 944
NI 9251 (Mini XLR). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 945
NI 9252 (DSUB). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 946
NI 9252 (Screw Terminal). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 946
NI 9253 (Screw Terminal). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 947
NI 9260 (Mini XLR). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 948
NI 9260 (BNC). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 949
NI 9262. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 950
NI 9263. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 951
USB-9263. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 952
NI 9264. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 952
NI 9264 (DSUB). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 953
USB-9264. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 954
NI 9265. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 955
USB-9265. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 955
NI 9266. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 956
NI 9269. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 957
NI 9326. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 957
NI 9344. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 959
NI 9361. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 959
NI 9375. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 961
NI 9401. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 962
NI 9402. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 964
NI 9403. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 965
NI 9411. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 965
NI 9421. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 967
NI 9421 (DSUB). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 970
USB-9421. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 973
USB-9421 (DSUB). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 973
NI 9422. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 974
NI 9423. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 975
NI 9425. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 977
NI 9426. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 977
© National Instruments 21
NI-DAQmx
NI 9435. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 978
NI 9436. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 979
NI 9437. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 981
NI 9469. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 982
NI 9472. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 982
NI 9472 (DSUB). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 983
USB-9472. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 984
USB-9472 (DSUB). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 985
NI 9474. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 986
NI 9475. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 986
NI 9476 (DSUB). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 987
NI 9476 (Spring Terminal). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 988
NI 9477. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 989
NI 9478. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 990
NI 9481. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 991
USB-9481. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 992
NI 9482. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 992
USB-9482. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 993
NI 9485. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 993
sbRIO-9628. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 994
sbRIO-9629. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 997
sbRIO-9638. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1000
NI 9775. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1007
DAQCard-DIO-24. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1007
myDAQ. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1008
PCI-DIO-96. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1010
SCC-68. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1012
SensorDAQ. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1013
USB-TC01. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1014
Signal Conditioning. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1014
RM-24999. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1015
PXIe-4300. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
TB-4300. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1016
TB-4300B. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1017
22 ni.com
NI-DAQmx
TB-4300C. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1018
PXIe-4302. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
RM-4302. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1019
TB-4302. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1022
TB-4302C. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1022
PXIe-4303. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
PXIe-4304. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
RM-4304. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1023
TB-4304. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1025
PXIe-4305. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
NI CAL-4309. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1026
PXIe-4309. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
TB-4309 (MT). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1027
TB-4309 (ST). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1029
PXIe-4310. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
TB-4310 (10V). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1029
TB-4310 (600V). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1030
PXIe-4322. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
TB-4322. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1030
PXIe-4330. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
TB-4330. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1031
PXIe-4331. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
PXIe-4339. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
RM-4339. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1032
TB-4339. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1035
PXIe-4340. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
TB-4340. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1036
NI CAL-4353. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1037
PXIe-4353. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
TB-4353. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1038
TC-4353. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1039
PXIe-4357. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
TB-4357. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1040
PXIe-4480. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
© National Instruments 23
NI-DAQmx
PXIe-4481. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SC-2345 Carrier. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1040
SC-2350 Carrier. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1041
SCC-68. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1043
Switch Modules. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1044
Related Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1046
24 ni.com
NI-DAQmx
NI-DAQmx Help
July 2022
This help file contains information about using NI-DAQmx to program your National
Instruments device. NI-DAQmx is the software you use to communicate with and
control your NI data acquisition (DAQ) device. Refer to Device Support in NI-
DAQmx in the NI-DAQmx Readme for a list of devices supported in NI-DAQmx.
For more information about this help file, refer to the following topics:
Related Documentation
© 2003–2022 National Instruments. All rights reserved. Refer to the <National I
nstruments>\_Legal Information directory for information about NI
copyright, patents, trademarks, warranties, product warnings, and export
compliance.
© National Instruments 25
NI-DAQmx
NI-DAQmx Overview
What is DAQmx?
NI-DAQmx is the driver software you use to communicate with and control your NI
data acquisition (DAQ) devices. It includes an extensive library of functions and VIs
you can call from your application software, such as LabVIEW or LabWindows/CVI, to
program your devices.
For information on getting started, refer to Getting Started.
26 ni.com
NI-DAQmx
How does DAQmx Work Together with Other Applications and Text Based
Programming Environments?
DAQmx has an application programming interface (API), which is a library of VIs,
functions, classes, attributes, and properties for creating applications for your
device. For information on getting started, refer to Getting Started. For a brief
description of using DAQmx with these applications, refer to the following topics.
■ LabVIEW
■
LabWindows/CVI
■ Measurement Studio with Visual C++, Visual C#, or Visual Basic .NET
■ ANSI C Application without LabWindows/CVI
■
.NET Application without Measurement Studio
■ SignalExpress
Related information
Finding Examples
Troubleshooting
Related Documentation
© National Instruments 27
NI-DAQmx
LabVIEW
If you program your NI-DAQmx-supported device in LabVIEW, you can interactively
create virtual channels—both global and local—and tasks by launching the DAQ
Assistant from MAX or from within LabVIEW. You also can create local virtual
channels and tasks, and write your own applications using the NI-DAQmx API.
To learn about which NI-DAQmx VIs are most commonly used when creating a NI-
DAQmx data acquisition application, see Learn 10 Functions in NI-DAQmx and
Handle 80% of your Data Acquisition Applications.
For help with NI-DAQmx VIs, refer to DAQmx - Data Acquisition VIs and Functions.
For general help with programming in LabVIEW, refer to LabVIEW Help.
For help with using the DAQ Assistant with LabVIEW, refer to Using the DAQ Assistant
to Automatically Generate LabVIEW Code.
LabWindows/CVI
If you program your NI-DAQmx-supported device in LabWindows/CVI, you can
interactively create global or local virtual channels and tasks by launching the DAQ
Assistant from MAX or from within LabWindows/CVI. You can generate the
configuration code based on your task or channel in LabWindows/CVI. Refer to the
DAQ Assistant Help for additional information about generating code. You also can
28 ni.com
NI-DAQmx
create local virtual channels and tasks, and write your own applications using the
NI-DAQmx API.
For help with NI-DAQmx functions, refer to NI-DAQmx C Function Reference Help.
For general help with programming in LabWindows/CVI, refer to LabWindows/CVI
Help, accessible through Start»All Programs»National
Instruments»LabWindows CVI»LabWindows CVI Help.
For help with using the DAQ Assistant with LabWindows/CVI, refer to Using the DAQ
Assistant in NI LabWindows/CVI.
© National Instruments 29
NI-DAQmx
2. Open existing or new source files (.c), and add them to the project. Make sure
you include the NI-DAQmx header file, nidaqmx.h, in your source code files.
You can find this header file at NI-DAQ\DAQmx ANSI C Dev\include.
3. Add the NI-DAQmx import library, nidaqmx.lib, to the project. The import
library files are located under NI-DAQ\DAQmx ANSI C Dev\lib\.
4. To view examples of NI-DAQmx applications, go to the NI-DAQ\Examples\
DAQmx ANSI C directory.
5. Build your application.
For help with NI-DAQmx functions, refer to the NI-DAQmx C Reference Help, which
is installed by default at Start»All Programs»National Instruments»NI-
DAQ»Text-Based Code Support»NI-DAQmx C Reference Help.
For help with using the DAQ Assistant with ANSI C, refer to Using NI-DAQmx in Text
Based Programming Environments.
30 ni.com
NI-DAQmx
For help with using the DAQ Assistant with Visual Studio .NET, refer to Using NI-
DAQmx in Text Based Programming Environments.
SignalExpress
If you use your NI-DAQmx-supported device in SignalExpress, you can create a
project that includes NI-DAQmx steps. With SignalExpress, you can log and analyze
data. You can also add global virtual channels that you created in MAX to your NI-
DAQmx steps in SignalExpress. Refer to the DAQ Assistant Help for additional
information.
For help with using the DAQ Assistant with SignalExpress, refer to Taking an NI-
DAQmx Measurement in SignalExpress. For general help with programming in
SignalExpress, refer to SignalExpress Help.
© National Instruments 31
NI-DAQmx
Finding Examples
Each API includes a collection of programming examples to help you get started
developing an application. You can modify example code and save it in an
application. You can use examples to develop a new application or add example
code to an existing application.
32 ni.com
NI-DAQmx
To run examples without hardware installed, you can use an NI-DAQmx simulated
device. In MAX, refer to the Measurement & Automation Explorer Help for NI-
DAQmx by selecting Help»Help Topics» NI-DAQmx for information on NI-DAQmx
simulated devices.
To find the locations of examples for your software application, refer to the
following table.
Troubleshooting
Installation and Configuration
Refer to the DAQ Getting Started Guide for general installation and configuration
instructions.
Use the following resources if you have problems installing your DAQ hardware
and/or software:
© National Instruments 33
NI-DAQmx
Programming
To help you get started programming, you can use the shipping examples for your
ADE.
You can also visit NI's extensive library of technical support resources at ni.com/s
upport.
You can interactively configure global virtual channels and tasks with the DAQ
Assistant. For NI application software such as LabVIEW, you can use the DAQ
Assistant to generate code.
You can use NI I/O Trace to analyze the functions you have called in the API with NI
application software. With NI I/O Trace, you can watch the order of execution of the
application and locate errors as they happen.
Note I/O Trace is not supported by the NI-DAQmx .NET API.
Finally, the NI-DAQmx Help contains programming flowcharts for common
applications such as measuring temperature, current, strain, position, and
acceleration.
34 ni.com
NI-DAQmx
External Connections
In addition to the information on making signal connections in this help file, the
Connection Diagram tab in the DAQ Assistant within MAX shows you how to connect
signals.
Calibration
■ For information on externally calibrating your device, including step-by-step
calibration procedures, refer to ni.com/calibration.
■ For an overview of calibration, including the difference between self-
calibration and external calibration, refer to Device Calibration.
■ For device-specific information required for calibration with NI-DAQmx,
refer to Device-Specific Calibration.
■ For information on channel calibration, refer to What Is Channel
Calibration?
CPU Usage
NI-DAQmx tasks use 100% of the CPU if no other processes are running. However, as
soon as another process requires the CPU, the NI-DAQmx task yields to that process.
© National Instruments 35
NI-DAQmx
36 ni.com
NI-DAQmx
function/VI, you choose the name to assign for the virtual channel, which is used in
the rest of the NI-DAQmx software framework to refer to the physical channel.
If you create virtual channels with the DAQ Assistant, you can use them in other
tasks and reference them outside the context of a task. Because these channels can
apply to multiple tasks, they are called global virtual channels. You can select global
virtual channels with the NI-DAQmx API or DAQ Assistant and add them to a task. If
you add a global virtual channel to several tasks and modify that global virtual
channel with the DAQ Assistant, the change applies to all tasks that use that global
virtual channel. You must save the changes before they become globally available.
Creating Virtual Channels with the API
The following example illustrates the difference between physical and virtual
channels and demonstrates how to create virtual channels with the API.
Problem
Solution
© National Instruments 37
NI-DAQmx
channels can be either global virtual channels or local virtual channels. For
information on specific functions/VIs, refer to the NI reference help for your ADE.
38 ni.com
NI-DAQmx
Power Channels
Power channels source voltage and current and also provide measurements
of those sources. You can change the voltage and current setpoints
dynamically at runtime. You can use a power channel to control (enable or
disable) the power output as well as to detect various error states that impact
power output.
© National Instruments 39
NI-DAQmx
Line
A line is an individual signal. It refers to a physical terminal. The data that the
line carries are called bits, binary values that are either 1 or 0. The terms line
and bit are fairly interchangeable. For example, an 8-bit port is the same as a
port with eight lines.
40 ni.com
NI-DAQmx
Port
A port is a collection of digital lines. Usually, the lines are grouped into an 8-bit
or 32-bit port.
Port Width
The port width refers to the number of lines in a port. For example, a device
with one port with eight lines has a port width of eight.
© National Instruments 41
NI-DAQmx
■ You can use underscores within the channel, task, or scale name, but you
cannot use leading underscores, such as _Dev1 .
Note: You can use other nonalphanumeric
characters when creating channels, tasks,
and scales, but exporting that configuration
to another system might not work correctly,
especially if the operating system is in a
different language.
■ You must use no more than 256 characters.
Cold-Junction Compensation Channels
On devices with built-in cold-junction compensation (CJC) channels, the CJC
channel is read once per sample clock edge.
Tasks in NI-DAQmx
A task is a collection of one or more virtual channels with timing, triggering, and
other properties. Conceptually, a task represents a measurement or generation you
want to perform. All channels in a task must be of the same I/O type, such as analog
input or counter output. However, a task can include channels of different
measurement types, such as an analog input temperature channel and an analog
input voltage channel. For most devices, only one task per subsystem can run at
once, but some devices can run multiple tasks simultaneously. With some devices,
you can include channels from multiple devices in a task. To perform a
measurement or a generation with a task, follow these steps:
1. Create or load a task. You can create tasks interactively with the DAQ Assistant
or programmatically in your ADE such as LabVIEW or LabWindows/CVI.
2. Configure the channel, timing, and triggering properties as necessary.
3. Optionally, perform various task state transitions to prepare the task to
perform the specified operation.
4. Read or write samples.
5. Clear the task.
If appropriate for your application, repeat steps 2 through 4. For instance, after
reading or writing samples, you can reconfigure the virtual channel, timing, or
42 ni.com
NI-DAQmx
triggering properties and then read or write additional samples based on this new
configuration.
If properties need to be set to values other than their defaults for your task to be
successful, your program must set these properties every time it executes. For
example, if you run a program that sets property A to a nondefault value and follow
that with a second program that does not set property A, the second program uses
the default value of property A. The only way to avoid setting properties
programmatically each time a program runs is to use virtual channels and/or tasks
created in the DAQ Assistant.
Creating Tasks with the API
The following example illustrates how to create a task with the API:
Problem
Create an NI-DAQmx task to measure temperature in the range 50°C to 200°C using a
J-type thermocouple that is wired to channel 0 on an M Series device configured as
Device 1. Sample the temperature 10 times per second, and acquire 10,000 samples.
Use LabVIEW or LabWindows/CVI to write your application.
Solution
© National Instruments 43
NI-DAQmx
1. The task is returned to the Verified state and the samples are no longer
accessible.
2. Future calls of the Read function/VI start new read operations rather than
reading from the completed operation.
44 ni.com
NI-DAQmx
For this situation, explicitly commit the task by calling the Control Task function/VI
with the Action parameter set to Commit. Then, after performing the initial read
operation and before performing the subsequent read operations, set the Auto-Start
Read attribute/property to False.
© National Instruments 45
NI-DAQmx
generations, always write at least part of the waveform to generate before starting
the task.
46 ni.com
NI-DAQmx
© National Instruments 47
NI-DAQmx
If you explicitly invoke a state transition that has already occurred, it is not repeated
and an error is not returned. For example, if the task has already reserved its
resources and, therefore, is in the Reserved state, calling the Control Task
function/VI with the Action parameter set to Reserve does not reserve the resources
again.
Sometimes, calling a function/VI may require multiple state transitions, such as
calling the Start Task function/VI while in the Verified state. In these cases, the task
will implicitly transition between each of the necessary states to get to the final
desired state, as shown in the following diagram.
Transitioning backwards in the Task State Model will undo any implicit forwards
transitions in addition to the requested explicit transition. Continuing with the
example above, calling the Stop Task function/VI after implicitly transitioning to the
Running State from the Verified State will cause the task to return to the Verified
State, as shown in the following diagram.
Unverified State
48 ni.com
NI-DAQmx
© National Instruments 49
NI-DAQmx
buffer memory in the computer. Other settings, such as the sample counter, cannot
be programmed when the task is committed because they need to be programmed
every time the task is started. When a task is committed, it transitions from the
Reserved state to the Committed state. You can explicitly perform this transition by
invoking the Control Task function/VI with Action set to Commit. In general, the
commit transition should not fail. If it does, it is an exceptional condition and the
task remains in the Reserved state. If the settings for the resources used by the task
are programmed, the task is successfully committed and transitions to the
Committed state.
Running State
When the task begins to perform the specified operation, the task transitions from
the Committed state to the Running state. You can explicitly perform this transition
by invoking the Start Task function/VI. Notice that starting a task does not
necessarily start acquiring samples or generating a waveform. You might have
specified the timing and triggering attributes/properties such that a sample is not
acquired until you call the Read function/VI or a waveform is not generated until a
trigger is detected. In general, the start transition does not fail. If it does, it is an
exceptional condition, and the task remains in the Committed state. If the task
begins to perform the specified operation, the task is successfully started and
transitions to the Running state.
Running to Committed State
The task ceases to perform the specified operation when the task transitions from
the Running state to the Committed state. To explicitly perform this transition, call
the Stop Task function/VI. Notice that you might have specified the timing and
triggering attributes/properties such that all the samples are acquired before this
transition occurs. For output operations, the last value written will typically
continue to be generated after the task is stopped. In this situation, despite the fact
that no additional samples are acquired, the task is still in the Running state until
this transition occurs. In general, the stop transition does not fail. If it does, it is an
exceptional condition, and the task is returned to the Reserved state. If the task is
stopped, the task successfully transitions back to the Committed state.
Committed to Verified State
50 ni.com
NI-DAQmx
When the task resources that perform the specified operation are released, the task
transitions from the Committed state to the Verified state. These resources may be
clocks or channels on a device, trigger lines on a PXI chassis, or buffer memory in
the computer. To explicitly perform this transition, call the Control Task function/VI
with Action set to Unreserve. After the task releases all of its resources, it
successfully transitions back to the Verified state.
Explicit Versus Implicit State Transitions
When should you perform explicit state transitions, and when should you rely on the
task to perform implicit state transitions? The answer depends on your application.
The following list identifies instances in which you should use explicit state
transitions:
Verify
If in your application users interactively configure a task by setting various
channel, timing, and triggering attributes/properties, explicitly verify the task
occasionally to inform the users if they have set an attribute/property to an
invalid value.
Reserve
If the following is true, explicitly reserve a task: your application contains
many different tasks that use the same set of resources, one of these tasks
repeatedly performs its operation, and you want to ensure that none of the
other tasks acquires these resources after the task begins its sequence of
operations. Reserving the task exclusively acquires the resources that the task
uses, ensuring that other tasks cannot acquire these resources. For example, if
your application contains two tasks that each perform a sequence of
measurements and you want to ensure that each sequence is completed
before the other sequence begins, you can explicitly reserve each task before
it begins its sequence of measurements.
Commit
If your application performs multiple measurements or generations by
repeatedly starting and stopping a task, explicitly commit a task. Committing
the task exclusively acquires the resources that the task uses and programs
some of the settings for these resources. By explicitly committing the task,
these operations are performed once, not each time the task is started, which
can considerably decrease the time needed to start your task. For example, if
© National Instruments 51
NI-DAQmx
52 ni.com
NI-DAQmx
You implicitly transition the task to a new state when you perform an operation that
requires that the task be in a specific state and it is not. If this occurs, the task is
implicitly transitioned to the required state. Some operations that require state
transitions include the following:
© National Instruments 53
NI-DAQmx
you invoke the Stop Task function/VI, the task is not just stopped and transitioned
from the Running state to the Committed state. If this were the case, the result is
unexpected because the task still has its resources reserved despite the fact that
you never explicitly reserved them. Instead, the task is stopped, uncommitted, and
unreserved, returning to the Verified state, its state immediately before you
performed the last operation that resulted in the state transition, calling the Start
Task function/VI.
As another example, suppose the task is in the Reserved state, and you call the Read
function/VI to perform a finite measurement. This results in the task implicitly
transitioning from the Reserved state to the Committed state and then to the
Running state before performing the read operation. When the read operation
completes, the task does not remain in the running state. If this were the case, the
result is unexpected behavior, because you need to stop the task and unreserve its
resources despite the fact you never explicitly reserved the resources or started the
task. Instead, after the finite read operation completes, the task is implicitly
transitioned from the Running state to the Committed state to the Reserved state.
This results in the task returning to the state before you performed the read
operation.
Keep in mind that setting the value of a channel, timing, or triggering attribute/
property does not implicitly transition the task back to the Unverified state. Instead,
the task remains in its current state and is implicitly verified when the next state
transition occurs. For example, if the task is in the Reserved state and you set the
value of timing attribute/property, the task remains in the Reserved state. The next
time the task, either implicitly or explicitly, is committed, the task is verified.
Because the task is implicitly verified when the next state transition occurs, NI-
DAQmx can return an error specifying that the value of attribute/property is invalid.
Creating Channels and Tasks with the DAQ Assistant
You can launch the DAQ Assistant from your NI application software or from MAX.
The DAQ Assistant is a graphical interface for configuring channels, tasks, and
scales.
After you launch the DAQ Assistant, follow the wizard instructions to create your
new task or channel. When the wizard is done, you can configure measurement-
specific settings, scaling, and, if necessary, timing and triggering.
54 ni.com
NI-DAQmx
LabVIEW
In LabVIEW, there are several ways to open the DAQ Assistant. A couple of common
ones are the following:
■ Drop the DAQ Assistant Express VI from the Express Input palette.
■ Use the DAQmx Task Name control to open the DAQ Assistant.
■ Open the DAQ Assistant from within a LabVIEW Project as described in Using
NI-DAQmx with LabVIEW Project in the LabVIEW Help.
LabWindows/CVI
In LabWindows/CVI, select Tools»Create/Edit DAQmx Tasks. You also can launch
the DAQ Assistant by clicking the Task Name control of the DAQmx LoadTask
function panel and selecting New Task.
Measurement Studio
In Measurement Studio, open Visual Studio .NET and select Project»Add New
Item to open the Add New Item dialog box. In the Categories pane, select
Measurement Studio»Assistants. In the Templates pane, select DAQmx Task
Class.
MAX
In MAX, right-click Data Neighborhood, and select Create New from the shortcut
menu. Select NI-DAQmx Task or NI-DAQmx Global Virtual Channel in the
Create New window, and click Next.
Signal Express
In SignalExpress, add a DAQmx Acquire or DAQmx Generate step.
Choosing Whether to Use the API or the DAQ Assistant
When creating a new application, you can choose to use DAQ Assistant or the API.
Advantages of Using the DAQ Assistant:
© National Instruments 55
NI-DAQmx
■ The API contains advanced features not exposed by the DAQ Assistant.
■ The API provides additional flexibility, allowing you to customize your
application to suit your needs.
■ The API gives you tighter control over the performance of your application.
56 ni.com
NI-DAQmx
Clocks
Periodic digital edges measure time and are called clocks. Clocks such as a sample
timebase clock and the 20 MHz timebase clock mark the passing of time or are used
to align other signals in time. Clocks usually do not cause actions in the sense that
triggers do. The names of clocks usually do not refer to actions. The sample clock is
a notable exception.
The following are some common clocks used by DAQ devices. Refer to your device
documentation for all the clocks on your device.
AI Convert Clock
The clock on a multiplexed device that directly causes ADC conversions. The
default AI Convert Clock rate uses 10 µs of additional settling time between
channels, compared to the fastest AI Convert Clock rate for the device. When
the Sample Clock rate is too high to allow for 10 µs of additional settling time,
the default AI Convert Clock rate uses as much settling time as is allowed by
the Sample Clock rate. If there are multiple devices in the same task, the same
amount of additional settling time is used for all devices in the task, even if
their maximum AI Convert Clock rates differ.
AI Convert Clock Timebase
The clock that is divided down to produce the AI convert clock.
AI Sample Clock
The clock that controls the time interval between samples. Each time the
sample clock ticks (produces a pulse), one sample per channel is acquired.
AI Sample Clock Timebase
The onboard clock used as the source of the AI sample clock. The AI Sample
Clock Timebase is divided down to produce the AI sample clock.
Counter Timebase
The clock connected to the source terminal of a counter (Ctr0Source, for
example).
© National Instruments 57
NI-DAQmx
DI Sample Clock
The clock that controls the time interval between samples. Each time the
sample clock ticks (produces a pulse), one sample per channel is acquired.
DO Sample Clock
The clock that controls the time interval between samples. Each time the
sample clock ticks (produces a pulse), one sample per channel is acquired.
DO Sample Clock Timebase
The onboard clock used as the source of the DO sample clock. The DO Sample
Clock Timebase is divided down to produce the DO sample clock.
Master Timebase
An onboard clock used by other counters on the device. The master timebase
is divided down to produce a slower clock or to measure elapsed time. This
timebase is the onboard clock used as the source of the AI Sample Clock
timebase, the AO Sample Clock timebase, and the counter timebases, for
example.
12.8 MHz Timebase
The onboard clock source for the master timebase from which other
timebases are derived. This timebase is often used to synchronize tasks across
chassis.
13.1072 MHz Timebase
The onboard clock source for the master timebase from which other
timebases are derived. This timebase is often used to synchronize tasks across
chassis.
20 MHz Timebase
The onboard clock source for the master timebase from which other
timebases are derived, if the device does not support an 80 MHz Timebase.
Otherwise, the clock produced by dividing the 80 MHz Timebase by 4.
80 MHz Timebase
The onboard clock source for the master timebase from which other
timebases are derived.
100 MHz Timebase
The onboard clock source for the master timebase from which other
timebases are derived.
100 kHz Timebase
The clock produced by dividing the 20 MHz Timebase by 200.
58 ni.com
NI-DAQmx
The following diagram illustrates the C Series clocks that comprise analog input and
analog output timing.
© National Instruments 59
NI-DAQmx
The following diagram illustrates the X Series clocks that comprise analog input,
analog output, digital input, and digital output timing. The black circles in the
diagram represent terminals.
60 ni.com
NI-DAQmx
The following diagram illustrates the E Series clocks that comprise analog input and
analog output timing. The black circles in the diagram represent terminals.
© National Instruments 61
NI-DAQmx
NI-DAQmx introduces the concept of a sample timing type. Each sample timing type
is a different stimulus for triggering the action of producing a sample. When you
select a Timing function/VI, you select your sample timing type. There also is an
attribute/property for setting the following sample timing types:
Sample Clock
A digital edge produces each sample. Nearly all devices have an onboard clock
that is dedicated to producing these edges periodically. Even when the edges
are not periodic, as they might be when the clock source is something other
than the dedicated onboard clock, you still use sample clock timing. Sample
clock timing is a type of hardware timing.
On Demand
Every time the Read or Write function/VI executes, the device produces the
requested samples as fast as possible. In this mode, the Sample Quantity
attributes/properties are ignored. On-demand timing is a type of software
timing.
Change Detection
Change detection timing captures samples from digital physical channels
when NI-DAQmx detects a change-a rising edge, a falling edge, or both rising
and falling edges-on one or more digital lines or ports. Change detection
timing reduces the digital data an application has to process. One issue to be
aware of with change detection on some devices is overflow. Overflow occurs
when NI-DAQmx cannot read a sample prior to the next change detection
event. The effect is that one or more samples can be missed.
Programmatically, you include the Change Detection Timing function/VI,
specifying the physical channels for rising and falling edges on which to detect
62 ni.com
NI-DAQmx
changes. You can query for an overflow by using the Overflow attribute/
property in your application after the task starts.
Handshake
The handshake sample timing type is used to acquire or generate digital data
with the 8255 protocol. Many devices have an 8255 chip, and other devices
emulate the 8255 protocol by default with the handshake timing type.
Burst Handshake
Burst handshake timing acquires or generates digital data on the data lines
with a clocked protocol. This timing type involves three control signals: the
sample clock, the Pause Trigger, and the Ready for Transfer Event. Data is
transferred on each active sample clock edge if the peripheral device
deasserts the Pause Trigger and the DAQ device asserts the Ready for Transfer
Event.
There are separate Burst Handshake Timing functions/VIs based on whether
you import or export a sample clock. Using the appropriate function/VI is
important because there are timing restrictions (such as setup and hold
times) when sharing a clock between the two devices.
Implicit
The implicit sample timing type is used for acquiring period or frequency
samples using counters. It is also used for generating pulses. This timing type
is called implicit because the signal being measured is itself the timing signal
or the timing is implicit in the rate of the generated pulse train.
Sample Clock
Your device uses a sample clock to control the rate at which samples are acquired
and generated. This sample clock sets the time interval between samples. Each tick
of this clock initiates the acquisition or generation of one sample per channel. You
also can connect an outside source as your clock. In software, you can specify the
interval (how fast the clock acquires or generates signals) by specifying the sample
rate. You can limit the sample rate by the signal conditioning you apply to the
signals or the number of channels in your application. However, the number of
channels affects your measurement only if you are sampling close to the maximum
sample rate for your device.
© National Instruments 63
NI-DAQmx
1. The scanner sends a pulse to your measurement device after it scans the
image and is ready to transfer the data.
2. Your measurement device reads an 8-, 16-, or 32-bit digital sample.
3. Your measurement device then sends a pulse to the scanner to inform the
scanner that the digital sample has been read.
4. The scanner sends out another pulse when the scanner is ready to send
another digital sample.
5. After your measurement device receives this digital pulse, the device reads the
sample.
This process repeats until all the samples are transferred.
64 ni.com
NI-DAQmx
For digital input tasks, when the Pause Trigger signal is logic low and the Ready for
Transfer Event is logic high, the samples are sent to the measurement device. For
digital output tasks, when the Pause Trigger signal is logic low and the Ready for
Transfer Event is logic high, the NI-DAQmx device sends the samples to a peripheral
device. The sample clock, either onboard or external, controls the timing. Data is
transferred or acquired on either the rising or falling edge of the sample clock.
The default terminals used for burst handshaking signals vary from device to device.
Handshaking Signals for Devices That Emulate the 8255 Protocol
Devices that emulate the 8255 protocol support two handshaking signals:
Handshake Trigger
Also called Strobe Input (STB) and Acknowledge Input (ACK)
Handshake Event
Also called Input Buffer Full (IBF) and Output Buffer Full (OBF)
For input tasks, when the Handshake Trigger signal is low, the samples are sent to
the measurement device. After the samples have been sent, Handshake Event is
high, which tells the peripheral device that the data has been read. For digital
output, Handshake Event is low while the NI-DAQmx device sends the samples to a
peripheral device. After the peripheral device receives the samples, it sends a low
pulse back on the Handshake Trigger line. Refer to your device documentation to
determine which digital ports you can configure for handshaking signals.
The default terminals used for handshaking signals vary from device to device.
Handshaking Signals for 8255-Based Devices
8255-based devices that perform handshaking support four handshaking signals:
© National Instruments 65
NI-DAQmx
Use the STB and IBF signals for digital input operations and the OBF and ACK signals
for digital output operations. When the STB line is low, the samples are sent to the
measurement device. After the samples have been sent, IBF is high, which tells the
peripheral device that the data has been read. For digital output, OBF is low while
the software sends the samples to a peripheral device. After the peripheral device
receives the samples, it sends a low pulse back on the ACK line. Refer to your device
documentation to determine which digital ports you can configure for handshaking
signals.
If you group ports for digital output on an 8255-based device, connect only the
handshaking signals of the last port in the port list, as shown in the following figure.
66 ni.com
NI-DAQmx
When performing handshaking, some lines are automatically reserved for control
purposes and are unavailable for use. The control lines used depend on the ports
you are using and whether you are handshaking with input or output channels. The
remaining lines in the port not used for control are still available for use. If you are
transferring data across any line in a port in a handshaking task, the entire port is
reserved for handshaking data and the remaining lines in the port are unavailable
for use.
Hardware-Timed Single Point Sample Mode
In hardware-timed single-point sample mode, samples are acquired or generated
continuously using hardware timing and no buffer. You must use the sample clock
or change detection timing types. No other timing types are supported.
Use hardware-timed single-point sample mode if you need to know if a loop
executes in a given amount of time, such as in a control application.
Because there is no buffer if you use hardware-timed single-point sample mode,
ensure that reads or writes execute fast enough to keep up with hardware timing. If
a read or write executes late, it returns a warning.
Continuous Pulses (HW Timed Updates) is hardware-timed single point for counter
output.
Multiplexed Versus Simultaneous Sampling
Devices use either multiplexed or simultaneous sampling. Simultaneous sampling
devices have an ADC for each analog channel and can sample from all channels at
the same time, as shown in the following figure.
© National Instruments 67
NI-DAQmx
Multiplexed sampling devices have a single ADC for all analog input channels. These
devices use both a sample clock and a convert clock. The sample clock initiates the
acquisition of a sample from all channels in the scan list. The convert clock causes
the ADC conversion for each individual channel. The following figure depicts a three-
channel analog input task on a device that uses multiplexed sampling. Notice that,
unlike S Series devices, the samples are not digitized simultaneously.
The convert clock must run faster than the sample clock to achieve the specified
sample rate. For instance, if you specify a sample rate of 10 S/s for 8 analog input
channels, the convert clock must run at least eight times the sample rate (80 Hz) to
ensure that each channel is sampled 10 times a second. At faster sampling rates,
you must also take settling time between channels into account.
Setup and Hold Times
When a DAQ device samples a digital signal, the signal must remain stable for a
period of time before and after the assertion of the clock edge used for timing. The
amount of time before the assertion of the clock is called the setup time. The
amount of time after the assertion of the clock edge is called the hold time. Refer to
your device documentation for minimum setup and hold times.
Simultaneous Analog Output On-Demand Timing
Typically, when you use software timing to output samples on multiple AO channels,
NI-DAQmx writes a sample to the first DAC, and the sample is generated. Then, NI-
DAQmx writes a sample to the second DAC, and that sample is generated, and so on.
However, with the simultaneous single-point on-demand timing, all of the data is
generated at the same time after NI-DAQmx writes to each DAC. You set this timing
with the Simultaneous Analog Output Enable attribute/property.
Timing Response Modes
68 ni.com
NI-DAQmx
Digital I/O and DAQ devices typically use the single-cycle timing response mode,
meaning the device responds to an external signal by the next active sample clock
edge.
Devices that support the pipelined timing response mode, such as the PCIe-6536
and PCIe-6537, can respond to an external signal a few sample clock edges later.
This mode uses a source-synchronous clock scheme, which simultaneously returns
the clock and data to the acquiring device. With a source-synchronous data transfer,
you can acquire and generate data at much higher rates than with single-cycle
timing response mode.
With the pipelined timing response mode, you can configure external sample clocks,
but the sample clock must be free-running and started before the task commits. If
you export the sample clock, the export occurs during a task commit. As with other
events, when the task uncommits, the signal remains exported.
Triggering
When a device controlled by NI-DAQmx does something, it performs an action. Two
very common actions are producing a sample and starting a waveform acquisition.
Every NI-DAQmx action needs a stimulus or cause. When the stimulus occurs, the
action is performed. Causes for actions are called triggers. Triggers are named after
the actions they cause:
■ Advance Trigger
■ Expiration Trigger
■ Handshake Trigger
■ Pause Trigger
■ Reference Trigger
■ Start Trigger
■
Arm Start Trigger
In addition to specifying the action you want a trigger to cause, you must select the
type of trigger to use, which determines how the trigger is produced.
Advance Trigger
© National Instruments 69
NI-DAQmx
An Advance Trigger causes a switch device to execute the next entry in its instruction
(scan) list. You can configure this trigger to occur on a digital edge or when the Send
Software Trigger function/VI runs.
Arm Start Trigger
When you configure an Arm Start Trigger, a counter task does not respond to any
Start Triggers until after the Arm Start Trigger occurs. You can configure this trigger
to occur on a digital edge or at a specified time (for devices that support time
triggering). The Arm Start Trigger is separate from a Start Trigger and is typically
used in advanced counter/timer applications. You might use an Arm Start Trigger to
synchronize multiple tasks, such as counting edges and pulse generation. The Start
Trigger then would be used to start the acquisition or generation.
Expiration Trigger
An Expiration Trigger expires a watchdog task. You can use this trigger instead of the
watchdog timer to signal an expiration. You can configure this trigger to occur on a
digital edge.
Handshake Trigger
A Handshake Trigger is a control signal from a peripheral device. The peripheral
device asserts the Handshake Trigger to indicate to the DAQ device that it has
acquired a sample (for output tasks) or generated a sample (for input tasks). For
input tasks, the DAQ device latches data, by default, at the trigger position specified
by the Sample Input Data When attribute/property, or when the peripheral device
asserts the Handshake Trigger.
Pause Trigger
With sample clock timing or burst handshake timing, the Pause Trigger pauses an
ongoing acquisition or generation. Deasserting this trigger resumes an acquisition
or generation. Depending on your device, there are some additional issues you need
to remember.
Reference Trigger
A Reference Trigger establishes the reference point in a set of input samples. You can
configure this trigger to occur on a digital edge, a digital pattern, an analog edge, or
70 ni.com
NI-DAQmx
when an analog signal enters or leaves a window. Data acquired up to the reference
point is pretrigger data. Data acquired after this reference point is posttrigger data.
Start Trigger
A Start Trigger begins an acquisition or generation. You can configure this trigger to
occur on a digital edge, a digital pattern, an analog edge, when an analog signal
enters or leaves a window, or at a specified time (for devices that support time
triggering).
Trigger Types
In addition to specifying the action you want a trigger to cause, you must select the
type of trigger to use, which determines how the trigger is produced. If you need to
trigger off an analog signal, use an analog edge trigger or an analog window trigger.
If the trigger signal is digital, choose a digital edge trigger with the source typically
being one of the PFI pins.
Analog Edge Triggering
For analog edge triggering, you configure the measurement device to look for a
certain signal level and slope (either rising or falling). After the device identifies the
trigger condition, the device performs the specified action associated with the
trigger, such as starting the measurement or marking which sample was acquired
when the trigger occurred. You connect analog trigger signals to any analog input
channel or terminal capable of accepting analog signals. Refer to the device-specific
analog triggering considerations for your device for additional information.
In the following figure, the trigger is set to capture data for a rising edge signal when
the signal reaches 3.2.
© National Instruments 71
NI-DAQmx
Hysteresis adds a window above or below the trigger level and often is used to
reduce false triggering due to noise or jitter in the signal. When using hysteresis with
a rising slope, the trigger asserts when the signal starts below level (or threshold
level) minus hysteresis and then crosses above level. The trigger deasserts when the
signal crosses below level minus hysteresis.
For example, if you add a hysteresis of 1 to the previous example, which used a level
of 3.2, the signal must start at or drop below 2.2 for triggering to occur. The trigger
then asserts as the signal rises above 3.2 and deasserts when it falls below 2.2.
When using hysteresis with a falling slope, the trigger asserts when the signal starts
or rises above level (or threshold level) plus hysteresis and then crosses below level.
The trigger deasserts when the signal crosses above level plus hysteresis. If you
instead trigger on a falling edge at 3.2 with a hysteresis of 1, the signal must start at
or rise above 4.2 and then fall below 3.2 for triggering to occur. The trigger will then
assert as the signal falls below 3.2 and deassert when it rises above 4.2.
72 ni.com
NI-DAQmx
© National Instruments 73
NI-DAQmx
The following image demonstrates a trigger that acquires data when the signal
leaves the window.
A digital trigger is usually a TTL signal with two discrete levels: a high and a low
level. When the signal moves from high to low or from low to high, a digital edge is
created. There are two types of edges: rising and falling. You can produce Start or
Reference Triggers from the rising or falling edge of your digital signal.
In the following figure, the acquisition begins after the falling edge of the digital
trigger signal. Usually, digital trigger signals are connected to PFI pins on your
measurement device.
74 ni.com
NI-DAQmx
© National Instruments 75
NI-DAQmx
For pattern triggers on ports, the pattern match occurs in reverse order. For
instance, if you specify a pattern of "11000000" and a source of "dev1/port0," the
pattern match occurs when physical channels "dev1/line0" and "dev1/line1" are
logic high and the other six lines are logic low.
Software Triggers
Software triggering starts, stops, or pauses an acquisition or measurement or
advances a scan list based on a software trigger command being sent. You generate
a software trigger command with the DAQmx Send Software Trigger function/VI.
Time Triggering
For devices that support it, a time trigger starts an acquisition or measurement at a
specific time. If the specified time has already elapsed, you will get an error message
indicating the time has already elapsed.
The timestamp timescale can be configured using the Timestamp.Timescale
attribute/property. Time triggers and timestamps can be specified in I/O Device
Time or Host Time, depending on the needs of your application.
76 ni.com
NI-DAQmx
such as the Linux 1970 epoch), it removes other sources of skew related to
Windows system time or other systems that are not network-synchronized to
the same 802.1AS subnet. In that way, the I/O Device Time provides the best
precision and relative accuracy but may reduce usability if it is not correlated
to a recognizable global time. I/O Device Time also has the advantage of being
monotonically increasing, so time triggers and timestamps spread across
multiple devices or tasks accurately maintain their offsets from each other.
■
Host Time
The timescale your PC or NI Linux Real-Time controller uses. In cases where
the NI Linux Real-Time controller is the Grand Master of your 802.1AS subnet,
Host Time and I/O Device Time are the same. However, Host Time is typically
synchronized to a local Real Time Clock or a Network Time Protocol server,
and it is usually traceable to global time. Using Host Time is more intuitive
because triggers and timestamps on the chassis are specified in times that are
easily correlated to your local system time. However, this usability comes at
the cost of reduced relative accuracy between time triggers and timestamps
that are spread across multiple devices or tasks, because using the calculated
offset between the two timescales is not as accurate as using I/O Device Time
directly. To help account for this loss of accuracy in a specific and common
use-case, NI-DAQmx guarantees that two events that are scheduled for the
same Host Time are guaranteed to start at the same I/O Device Time,
preserving precise synchronization between chassis.
Whether a device supports time triggers or not can be queried using
TimeTrigSupported attribute/property.
Network-synchronized devices include the cDAQ-9185, 9189; FD-11601,
FD-11603, FD-11605, FD-11613, FD-11614, FD-11634, FD-11637; cRIO-9040,
9041, 9042, 9043, 9045, 9046, 9047, 9048, 9049, 9053, 9054, 9055, 9056, 9057,
9058; and sbRIO-9603, 9608, 9609, 9628, 9629, and 9638.
Synchronization
Synchronized operations are created by routing timing and control signals.
Synchronization can be within a single device—for instance, synchronizing analog
© National Instruments 77
NI-DAQmx
input and analog output on an M Series device—or on multiple devices. Timing and
control signals that synchronize operations fall into three categories: clocks,
triggers, and events.
These timing and control signals are routed by connecting two terminals together.
Selecting a terminal as the source of a clock or a trigger constructs a route. On PCI
devices, the RTSI bus provides the pathways for signal routing. On PXI devices, the
PXI trigger bus provides the same pathways. For NI-DAQmx to find a free PXI trigger
line, you must perform a PXI chassis identification in MAX. For NI-DAQmx to find a
free RTSI line, you must create a RTSI cable in MAX and populate it with the devices
connected by the cable. You can discover what routes are possible by referencing a
table of possible routes in MAX.
On some devices, you synchronize analog input, analog output, and digital input/
output channels from multiple modules by including those channels in the same
task. All channels within a task must be of the same channel type, such as analog
input or counter output.
Types of Synchronization, Lockstep and Handshaked
Lockstep synchronization involves two or more similar devices sharing the same
timing and triggering and essentially acting as a single device. Sharing a sample
clock between analog input and analog output operations on a single device is also
considered lockstep synchronization. The goal of lockstep synchronization is to
eliminate skew as much as possible. In lockstep synchronization, clocks and triggers
are typically shared.
Handshaked synchronization (or stimulus/response) is two or more devices acting
in sequence. In handshaked synchronization, triggers and events are typically
shared. A simplified DAC test is an example of this type of synchronization. A digital
device sends a digital pattern to the DAC and a signal causing the DAC to create a
voltage in response to this pattern. At the same time or soon after, the digital device
sends a signal to a DMM causing the DMM to measure the voltage output by the DAC.
When the DMM has finished the measurement, it sends a signal back to the digital
device causing the digital device to send the next pattern to the DAC.
In lockstep synchronization, the operations involved all use a clock or trigger for the
same purpose. In handshaked synchronization, the roles of the trigger or event are
78 ni.com
NI-DAQmx
typically reversed between the operations (for example a Sample Complete Event
from a DMM is used as a Sample Clock by the digital device that receives it).
Master and Slave Devices
Most synchronization applications involve using a signal from another device. For
example, when performing Sample Clock synchronization, a device or set of devices
use the Sample Clock from another device. Even for Reference Clock
synchronization, where devices lock their onboard oscillators to a shared clock
rather than use that clock directly, the synchronized devices use the Start Trigger
from one of the devices.
The device that provides the signal is called the master device, and all other devices
in the application that use that signal are called slave devices. Because the master
device provides all the signals, it begins acquiring or generating samples
immediately when the task starts. The slave devices, however, cannot acquire or
generate data until receiving the signals from the master. Therefore, you must start
any tasks on slave devices before starting the task on the master device. When you
start the tasks on the slave devices, they wait for the signals from the master device.
Then, when the task starts on the master device, that device emits the synchronized
signals, ensuring all devices start acquiring or generating samples simultaneously. If
you start the task on the master device before starting the tasks on slave devices,
the master device will acquire or generate data for a non-deterministic amount of
time before the tasks start on the slave devices. The application is not truly
synchronized in such cases, and can result in errors.
Sources of Error
There are several sources of error when synchronizing measurements:
■ Jitter
■ Stability
■ Accuracy
■ Skew
Jitter
Jitter is small variations in the period of the clock (from sample to sample). It shows
up as noise in the digitized signal and affects higher-frequency signals more. Each
© National Instruments 79
NI-DAQmx
component added to the clock's path adds additional jitter. You can control jitter
but not eliminate it by using an accurate clock source.
Stability
Stability describes how well the clock frequency resists fluctuations. Factors that
can cause the frequency to fluctuate include variations in temperature, time (aging),
supply voltage, shock, vibration, and capacitive load that the clock must drive.
Temperature is often the dominant factor that affects crystal oscillator stability.
Some oscillators are housed inside small ovens with controlled temperature to
provide stability that can be orders of magnitude better than with other techniques.
These oscillators are known as oven controlled crystal oscillators (OCXOs). For
example, the NI 6608 contains an OCXO.
Accuracy
Clock accuracy describes how well the actual frequency of the clock matches the
specified frequency. An oscillator generates a clock. However, an oscillator never
generates a perfect frequency. The accuracy of the oscillator-generated clock is
affected by the quality of the crystal and the oscillator's assembly.
You can describe timing errors in several different ways. Some common units of
timing error are parts per million (ppm) and parts per billion (ppb). Parts per million
gives you a fractional value of error. For example, to find the error in Hertz of an 80
MHz oscillator with 5 ppm error, you multiply the frequency of the oscillator—
80,000,000—by 5 divided by 1,000,000 or [80,000,000 Hz (5 Hz/1,000,000 Hz) = 400
Hz].
From this equation, you see that the oscillator can be off by as much as 400 Hz.
Therefore, the actual frequency of the oscillator can be anywhere between
79,999,600 Hz and 80,000,400 Hz. Parts per billion is similar to parts per million, and
it is used to describe more accurate clocks.
Skew
Skew is a propagation delay that is caused when a signal arrives at two places at
different times. For instance, a signal is sent by a controlling device at time T0. A
receiving device A acts upon the signal at time T1. A receiving device B acts upon the
signal at time T2. If T1 is not equal to T2, the difference between T1 and T2 is the
80 ni.com
NI-DAQmx
skew. The distance between devices and the cabling between your devices and
signal paths within the devices themselves all affect signal arrival times.
Methods of Synchronization
Several methods exist for synchronizing devices, depending on the devices involved
and the requirements of the application.
■ Start Trigger
■ Sample Clock
■ Reference Clock
■ Master Timebase
■ Sample Clock Timebase
■ Mixed-clock
Start Trigger Synchronization
For synchronizing multiple tasks on a single device, even at different rates and on
different subsystems, you do not need to synchronize any clocks. Because the
device derives those clocks from the same internal oscillator, you need to share only
the Start Trigger among the tasks so the clocks start at the same time.
To perform Start Trigger synchronization, configure start triggering on all slave
tasks, setting the trigger source to the internal Start Trigger terminal from the
master task, such as ai/StartTrigger. You do not have to configure start triggering on
the master task. All tasks include an implicit Start Trigger, which occurs immediately
when the task starts.
© National Instruments 81
NI-DAQmx
To perform Sample Clock synchronization, configure all devices to use Sample Clock
timing. Set the source of the Sample Clock on all slave devices to the internal
Sample Clock terminal from the master device. For example, the name of the
Sample Clock terminal from the AI subsystem is ai/SampleClock.
82 ni.com
NI-DAQmx
© National Instruments 83
NI-DAQmx
Each device then derives other clocks from the synchronized oscillators. You must
share a Start Trigger for the derived clocks to start in phase.
84 ni.com
NI-DAQmx
© National Instruments 85
NI-DAQmx
CI Counter Timebase. More generally, one device can be queried for its CI Counter
Timebase source and that terminal can be set as the source of the CI Counter
Timebase for the other devices.
To synchronize Sample Clock-timed buffered counter input applications, use
Sample Clock synchronization. The Sample Clock must be externally supplied to
one of your devices. The other synchronized devices are programmed to use as their
Sample Clock the CtrnGate signal, where n is the number of the counter.
To synchronize pulse generation counter output applications, share the CO Counter
Timebase and Start Trigger signal. Program all devices to use the same signal
(usually the 20MHzTimebase from one of the devices) as their CO Counter Timebase.
More generally, one device can be queried for its CO Counter Timebase source and
that terminal can be set as the source of the CO Counter Timebase for the other
devices. Program all devices to use the same signal as their Digital Edge Start
Trigger. This is typically the CtrnGate signal from one of the devices, where n is the
number of the counter.
Trigger Skew Correction
When sharing a trigger across multiple devices, the master device must respond to
and export the trigger, and the trigger signal must travel from the master device to
slave devices. This results in skew in the trigger signal. On some devices using
Reference Clock synchronization, you can compensate for that skew by locking the
trigger to the Reference Clock or to a clock derived from the Reference Clock. When
you lock triggers to a clock, the device responds to those triggers on a subsequent
edge of that clock, rather than immediately. Therefore, skew correction results in
increased latency.
To enable trigger skew correction for an application, specify which device is the
master and which devices are slaves using the SyncType DAQmx Trigger property.
Subsystem
A subsystem is the circuitry (ADCs, DACs, clocks, triggers, timing signals, timing
engines, and so on) that a device uses to acquire or generate samples. On DAQ
devices, there are separate subsystems for analog input, analog output, each
counter, and digital I/O. A subsystem is not synonymous with I/O type, however. For
86 ni.com
NI-DAQmx
instance, each counter's input and output circuitry make up one subsystem. The
trigger bus can also function as a subsystem.
Timing Engines
A timing engine is the circuitry a device uses to control an acquisition or generation.
Controlling an acquisition or generation includes:
© National Instruments 87
NI-DAQmx
Sample Clock. As a result, another task can not use the Sample Clock from the
analog input timing engine.
88 ni.com
NI-DAQmx
configuration is to mimic the 8255 protocol, which means that for input tasks,
this event asserts after the device has space available in its FIFO; for output
tasks, it asserts after valid data has been driven on the data lines; and in both
input and output tasks, the event deasserts after the Handshake Trigger has
been asserted.
Ready For Start Event
A signal produced when a device is ready to accept a Start Trigger.
Ready For Transfer Event
A signal sent to the peripheral device. The signal indicates that the DAQ device
is ready for a transfer. For burst handshake output tasks, this means that the
data is on the data lines. For input tasks, this means that there is space
available in the device FIFO. This event is used by devices that support burst
handshake timing.
Sample Complete Event
A signal produced when the device acquires a sample from every channel in a
task.
Watchdog Timer Expired Event
A signal produced when a watchdog timer expires. Watchdog timers are
hardware features that can detect failures in the software controlling the
device.
© National Instruments 89
NI-DAQmx
behaviors. The Sample Clock supports pulse and level behaviors. You specify the
behavior through the Output Behavior attribute/property for the exported signal.
Most exported signals exhibit the pulse behavior. When the event occurs, a finite
pulse is generated. The pulse width of some exported triggers and events is
configurable. The polarity of a signal exported as a pulse is also sometimes
configurable. In the following illustration, the polarity is set to active high, meaning
the initial state change of the signal is from low to high. When an event is exported
as a pulse, each time the event occurs, the exported signal pulses.
When an event is exported as a toggle, each time the event occurs the exported
signal changes state just once and remains at its new state until the next occurrence
of the event. You can also set the initial state. In the following illustration, the initial
state is set to high. The Counter Output Event is an example of a signal that can
toggle.
For level behavior, the signal changes state and remains at that state for a period of
time that is dependent on some configurable aspect of your task. If you are
exporting the Sample Clock, the exported signal goes high at the beginning of the
sample and goes low when the last AI Convert Clock pulse begins, as shown in the
illustration.
Software Events
Software events provide an asynchronous notification mechanism for a set of DAQ
events. Unlike hardware events, software events do not require you to use a thread
to wait until data is available. Using event-based programming, you can write an
90 ni.com
NI-DAQmx
application that continues to perform work while waiting for data without resorting
to developing a multi-threaded application.
NI-DAQmx includes the following software events:
© National Instruments 91
NI-DAQmx
Waveform
The waveform data format includes the channel name, timing, and unit
information with the actual 64-bit scaled floating-point data. Your ADE
92 ni.com
NI-DAQmx
Waveform
The waveform data format includes the channel name and timing information
with the actual data represented in a dedicated digital format. Your ADE
provides a mechanism for extracting and setting individual parts of the
waveform.
© National Instruments 93
NI-DAQmx
The dedicated digital format represents digital data similar to logic analyzers
and digital simulation tools. Each channel has no limits on the number of
lines. In addition, the digital format allows for additional states beyond basic
1s and 0s. The ADE can take advantage of this format by tailoring data and
graph displays for the digital data.
For input tasks, you can use the additional information for a variety
of purposes. For example, you can update graphs to show the timing
information and include labels with the channel names. Because there is
overhead associated with including this additional information, NI-DAQmx
allows you to configure the information you want to include.
For output tasks, the timing information is the primary field that is useful. A
waveform generated by a library may include timing information that you can
use to set up the timing for your output task.
When reading data, the waveform data includes the time when the first
sample in the waveform was acquired, t0, and the amount of time that
elapsed between each sample, dt. However, there are limitations on these
two values.
Line Format (Boolean)
The line format represents each line within a channel as a single Boolean
value (a single byte). The states of the data are limited to 1s (true) and 0s
(false). Line formats are only provided for single sample reads and writes.
Use the line format when it is convenient for manipulating or displaying the
digital data. A typical application is controlling or reading back relay states.
For high-speed digital applications, you should generally not use the line
format.
Port Format (Integer)
The port format matches the native format of digital devices that can
represent only two digital states and organize individual lines into collections
known as ports. For more information, refer to Digital Data-Integer Format.
The port format is the most efficient in terms of space, as it requires only a bit
of memory per line. In addition, the port format is often the most efficient in
time as it matches the native format of many devices.
94 ni.com
NI-DAQmx
The largest integer supported is 32 bits; therefore, you can read and write
digital channels with no more than 32 lines when using the port format.
© National Instruments 95
NI-DAQmx
96 ni.com
NI-DAQmx
port0/line0 0
port0/line1 0
port0/line2 1
port0/line3 0
port0/line4 1
port0/line5 1
port0/line6 0
port0/line7 1
port1/line0 1
port1/line1 1
port1/line2 1
port1/line3 0
port1/line4 1
port1/line5 0
port1/line6 0
port1/line7 1
The 32-bit binary representation of the channel is the following:
port0/line0 1
port0/line3 1
yield the following 8-bit representation:
© National Instruments 97
NI-DAQmx
Interleaved samples prioritize samples before channels, such that the array lists the
first sample from every channel in the task, then the second sample from every
channel, up to the last sample from every channel.
Channel 0—Sample 1
Channel 1—Sample 1
Channel 2—Sample 1
Channel 0—Sample 2
Channel 1—Sample 2
Channel 2—Sample 2
...
Channel 0—Sample N
Channel 1—Sample N
Channel 2—Sample N
Non-interleaved samples prioritize channels before samples, such that the array
lists all samples from the first channel in the task, then all samples from the second
channel, up to all samples from the last channel.
Channel 0—Sample 1
Channel 0—Sample 2
...
Channel 0—Sample N
Channel 1—Sample 1
Channel 1—Sample 2
...
Channel 1—Sample N
Channel 2—Sample 1
Channel 2—Sample 2
...
98 ni.com
NI-DAQmx
Channel 2—Sample N
Raw Data
Raw data is in the native format and organization of the device, read directly from
the device or buffer without scaling or reordering. The native format of a device can
be an 8-, 16-, or 32-bit integer, signed or unsigned.
If you use a different integer size than the native format of the device, one integer
can contain multiple samples or one sample can stretch across multiple integers.
For example, if you use 32-bit integers, but the device uses 8-bit samples, one
integer contains up to four samples. If you use 8-bit integers, but the device uses 16-
bit samples, a sample might require two integers. This behavior varies from device
to device. Refer to your device documentation for more information.
NI-DAQmx does not separate raw data into channels. It returns data in an
interleaved or non-interleaved 1D array, depending on the raw ordering of the
device. Refer to your device documentation for more information.
Unscaled Data
Unscaled data is in the native format of the device, read directly from the device or
buffer without scaling. The native format of a device can be an 8-, 16-, or 32-bit
integer, signed or unsigned.
© National Instruments 99
NI-DAQmx
acquired × dt from the system. Therefore, if you call read after the acquisition is
complete, the calculated start time for the task is not accurate. This inaccuracy is
reflected in the t0 returned with the waveform data.
The limitation on dt is that for certain timing types, NI-DAQmx cannot calculate the
value of dt. When you use sample clock timing, NI-DAQmx calculates dt based on
the rate of the clock. Because NI-DAQmx does not know the rate when handshake,
implicit, on demand, or change detection timing is specified, NI-DAQmx returns dt
as 0. Waveforms with a dt of 0 often do not work with the waveform analysis
functions. However, you can always update the value of dt in your application if you
know the expected rate of the timing source. Your ADE has an interface to update
the value of dt.
Buffering
A buffer is a temporary storage in computer memory for acquired or to-be-
generated samples. Typically this storage is allocated from your computer's
memory and is also called the task buffer. For input operations, a data transfer
mechanism transfers samples from your device into the buffer where they wait for a
call to the Read function/VI to copy the samples to your application. For output
operations, the Write function/VI copies samples into the buffer where they wait for
the data transfer mechanism to transfer them to your device.
When Is a Buffer Created?
If you use the Timing function/VI and set the sample mode to finite or continuous,
NI-DAQmx creates a buffer. If you set sample mode to Hardware Timed Single Point,
NI-DAQmx does not create a buffer.
If you set the Data Transfer Mechanism to Programmed I/O or set the buffer size to
zero by using either the Input or Output Buffer Config function/VIs, NI-DAQmx does
100 ni.com
NI-DAQmx
not create a buffer (even if you also used the Timing function/VI). A data transfer
mechanism of programmed I/O means there is no buffer.
How Is Buffer Size Determined?
Input Tasks
If your acquisition is finite (sample mode on the Timing function/VI set to Finite
Samples), NI-DAQmx allocates a buffer equal in size to the value of the samples
per channel attribute/property. For example, if you specify samples per channel
of 1,000 samples and your application uses two channels, the buffer size would
be 2,000 samples. Thus, the buffer is exactly big enough to hold all the samples
you want to acquire. If the acquisition is continuous (sample mode on the Timing
function/VI set to Continuous Samples), NI-DAQmx allocates a buffer equal in size
to the value of the samples per channel attribute/property, unless that value is less
than the value listed in the following table. If the value of the samples per channel
attribute/property is less than the value in the table, NI-DAQmx uses the value in the
table.
Output Tasks
For generations, the amount of data you write before starting a generation
determines the size of the buffer. The first call to a Multiple Samples version of
the Write function/VI creates a buffer and determines its size.
You also can use the Output Buffer Config function/VI to create an output buffer. If
you use this function/VI, you must use it before writing any data.
The samples per channel attribute/property on the Timing function/VI does not
determine the buffer size for output. Instead it is the total number of samples to
generate. If n is your buffer size, setting samples per channel to 3×n generates the
data in the buffer exactly three times. To generate the data exactly once, set samples
per channel to n.
NI-DAQmx does not create a buffer when the sample mode on the Timing
function/VI is set to Hardware Timed Single Point.
Continuous Acquisition and Generation with Finite Buffer Size
The NI-DAQmx API uses circular buffers as shown in the following figure. For input
operations, portions of data are read from the buffer while the buffer is filled.
Likewise for output operations, portions of the buffer can be written to while the
buffer is emptied. Using a circular buffer, you can set up your device to continuously
acquire data in the background while NI-DAQmx retrieves the acquired data.
102 ni.com
NI-DAQmx
When a continuous operation reaches the end of the buffer, it returns to the
beginning and fills up (or in the case of output operations, reads from) the same
buffer again. Your input application must retrieve data in blocks, from one location
in the buffer, while the data enters the circular buffer at a different location, so
newer data does not overwrite unread data.
While a circular buffer works well in many applications, two possible problems can
occur with this type of acquisition: Your application might try to retrieve data from
the buffer faster than data is placed into it, or your application might not retrieve
data from the buffer before NI-DAQmx overwrites the data into the buffer. When
your application tries to read data from the buffer that has not yet been collected,
NI-DAQmx waits for the data to be acquired and then returns the data. If your
application does not read the data from the circular buffer fast enough, you receive
an error, stating that some data has been overwritten and lost. If losing data in this
way is not important to you, change the setting of the OverWrite Mode attribute/
property.
Reference Triggering Impact on Buffers
Even though you have set the sample mode parameter on the Timing function/VI to
Finite Samples, the acquisition runs continuously until the Reference Trigger occurs.
The number of posttrigger samples in your buffer after the acquisition has finished
is equal to the value of the samples per channel parameter from the Timing
function/VI minus the number of pretrigger samples from the Trigger function/VI.
When using a Reference Trigger, the default read position is Relative To First
Pretrigger Sample with a read Offset of 0.
Controlling Where in the Buffer to Read Samples
Default read behavior depends on if a Reference Trigger is configured. If there is no
Reference Trigger, NI-DAQmx reads samples beginning with the first sample
acquired with each subsequent read beginning where the previous one left off. If
there is a Reference Trigger, NI-DAQmx reads samples beginning with the first
pretrigger sample and cannot begin reading until the acquisition has finished. This
default behavior can be changed by using the Relative To and Offset attributes/
properties.
The place where a read begins is called the Current Read Position. Each time data is
read, the Current Read Position is computed based on the settings of the Relative To
and Offset attributes/properties. When there is no Reference Trigger, the default for
Relative To is Current Read Position. When there is a Reference Trigger, the default
for Relative To is First Pretrigger Sample. In either case, the default for Offset is 0.
Changing the settings of these two attributes/properties controls where in the
buffer data is read.
During a continuous acquisition, for example, you can always read the most recent
1000 points by setting Relative To to Most Recent Sample and Offset to -1000. Even
when a Reference Trigger is configured, you can begin reading samples immediately
by setting Relative To to First Sample.
Read Status Attributes/Properties and Buffers
The three Read Status attributes/properties are useful for observing the progress of
your acquisition.
■ The Current Read Position is the place in the buffer where the next read
begins if the Relative To attribute/property is Current Read Position and the
Offset is 0. In any case, the Current Read Position is always where the last read
left it.
■ Total Samples per Channel Acquired is the total number of samples per
channel acquired by the device and transferred into the buffer.
104 ni.com
NI-DAQmx
■ The Current Write Position is the place in the buffer where the next write
begins if the Relative To attribute/property is Current Write Position and the
Offset is 0. In any case, the Current Write Position is always where the last
write left it.
■ Total Samples per Channel Generated is the total number of samples per
channel generated by your device since the task started.
■ Space Available in Buffer is computed by first calculating the Current Write
Position based on the settings of the Relative To and Offset attributes/
properties and then subtracting this number from the sum of Total Samples
per Channel Generated and the buffer size. If regeneration is allowed, the
Space Available in Buffer value is capped at the buffer size and grows from 0
to the buffer size repeatedly.
Glitching
Glitching refers to the generation of a waveform in which, when transitioning from
old samples in the buffer to new samples, a mixture of old and new samples is
generated rather than just the new samples. This situation may occur when
continuously generating samples if the Regeneration Mode write attribute/property
is set to Allow Regeneration. Glitching occurs when, while you write new samples, a
subset of these new samples are generated and then, since you have not finished
writing all of the new samples, a subset of the old samples is generated. After your
write operation completes, only the new samples are generated.
NI-DAQmx reduces the likelihood of glitching by ensuring that the writing of new
samples does not overtake the generation. This glitching protection works by
pausing the write until the total samples generated is more than one buffer ahead of
the current write position. However, NI-DAQmx does not ensure that the generation
does not overtake the new samples being written. If this occurs, a glitch results, and
NI-DAQmx reports the kWarningPotentialGlitchDuringWrite warning (error 200015).
The following suggestions can help you to avoid generating glitches:
■ Write new samples that are almost one buffer ahead of the total samples
generated. By writing the new samples almost one buffer ahead of the total
samples generated, there is less of a chance that the generation overtakes the
new samples that are being written. If you are updating the entire buffer at a
time, wait to write the new samples until the total samples generated
attribute/property is one sample greater than an integral number of buffer
sizes. For example, if the buffer size is 1000 samples, wait to write new
samples until the total samples generated is either 1001, 2001, 3001, and so
on.
■ Increase the buffer size. If the buffer size is larger, there is less of a chance
that the generation overtakes the new samples that are being written.
■ Decrease the sample clock rate. If the sample clock rate is slower, there is
less of a chance that the generation overtakes the new samples that are being
written.
In the following graphs, the sine wave is generated from old samples and the square
wave is generated from the new samples. The first graph depicts glitching.
106 ni.com
NI-DAQmx
Programmed I/O
Programmed I/O is a data transfer mechanism in which a buffer is not used and
instead the computer reads and writes directly to the device. Software-timed (on-
demand) operations typically use programmed I/O.
USB Bulk
USB Bulk is a buffered, message-based streaming mechanism for data transfer. This
high-speed method is the default transfer mechanism for USB devices.
Memory Mapping
Memory mapping is a technique for reading and writing to a device directly from
your program, which avoids the overhead of delegating the reads and writes to
kernel-level software. Delegation to the kernel is safer, but slower. Memory mapping
is less safe because an entire 4 KB page of memory must be exposed to your
program for this to work, but it is faster. Memory mapping is set by default if your
device supports it.
108 ni.com
NI-DAQmx
Regeneration
Generating the same data more than once is called regeneration. You can configure
NI-DAQmx to allow or disallow regeneration by setting the Regeneration Mode
attribute/property. By default, NI-DAQmx allows regeneration for sample clock
timing and disallows it for handshaking or burst handshaking timing. When
regeneration is disallowed, new data must be continuously written to the device.
■ Log data only. For very high-speed acquisitions, logging and reading data
can slow performance.
■ If logging and reading data, ensure the number of samples per channel to
read is evenly divisible by the sector size of the hard disk.
■ If manually configuring the buffer size, choose a multiple of eight times the
sector size of the hard disk. For instance, if your sector size is 512 bytes, your
buffer size might be 4,096 samples.
National Instruments provides a number of mechanisms for reading TDMS files,
including software support in LabVIEW, LabWindows/CVI, ANSI C, DIAdem, and
Measurement Studio. In addition, National Instruments provides a Microsoft Excel
plug in. Refer to ni.com/tdms for additional information. For information about
high-speed data streaming, refer to ni.com/streaming.
Logging Across Multiple Files
You can split TDMS logs across multiple files by using either the DAQmx Start New
File function/VI or the Logging.SampsPerFile attribute/property.
110 ni.com
NI-DAQmx
the directory to save log files to by specifying a name ending in a back slash (for
example, D:\). If you specify a directory, the log file name remains the same and
file numbering continues off of the old directory. For example, if you change the
directory from C:\ to D:\ while logging to testlog_0003.tdms, testlog_0003.tdms is
written to C:\, and testlog_0004.tdms is written to D:\.
Signal Routing
A single routing API now controls all the digital routing for NI measurements
devices. Signal routing controls the mapping of digital signals or triggers across
hardware such as digital multiplexers or public trigger buses.
Here is a basic list of features in the signal routing API:
■ A single unified signal routing API for all devices supported in NI-DAQmx
■ Multi-device routing: a single route will be able to span two devices
■ Logical inverter support
■ Double driving prevention across public trigger buses
Specifying a Route
A route is a connection between a pair of terminals. The source and destination
terminals make a terminal pair. Any time the source or destination terminal of a
signal is specified, a route is created. Usually, you specify only one terminal for the
route. For example, if you export a signal to the I/O connector, you set the
destination terminal, but the source terminal is predetermined by the name of the
signal. If you import a hardware trigger for a task, you can set the source terminal,
but the destination terminal is predetermined by the name of the trigger.
Single-Device Routing Versus Multi-Device Routing
A single-device route is a connection between two terminals on the same physical
device. Before NI-DAQmx, all routes were single-device routes. NI-DAQmx introduces
multi-device routing. An example is specifying a terminal on a device as the source
of a Start Trigger for a second device.
Creating Multi-Device Routes
NI-DAQmx supports multi-device routing. You simply specify the source terminal
and destination terminal. If the two terminals are on different devices, NI-DAQmx
uses the trigger bus to route the signal from the source device to the destination
device. NI-DAQmx also selects and reserves an available trigger line on the trigger
bus.
Plugging in and Registering Your RTSI Cable in MAX
112 ni.com
NI-DAQmx
To create a multi-device route, the source and destination devices must share a
trigger bus both physically and logically in MAX. For PCI devices, you must register
your RTSI cable in MAX. For more information on how to register (or add) a RTSI
cable in MAX, refer to Measurement & Automation Explorer Help for NI-DAQmx. If
you do not register your RTSI cable, NI-DAQmx fails to create a route. PXI trigger
backplanes are automatically registered when you identify your chassis type in MAX.
Dynamically Selecting Trigger Bus Lines
Management of trigger lines is another feature of NI-DAQmx routing. If you hard-
code two measurement tasks to the same trigger line for different signals, at least
one of the measurement tasks causes a resource conflict. Multi-device routing
allows you to dynamically select trigger lines at run time. This means that NI-DAQmx
selects any available trigger line. You can still select a specific trigger bus line by
splitting your multi-device route into two single-device routes. However, the two
static routes lose the ability to dynamically choose an available trigger at run time.
Task-Based Routing
Task-based routing is the most common form of routing. When you create a
hardware trigger or export a hardware signal, you create a task-based route. These
routes are embedded in a task. You can use Export Signal function/VI to explicitly
make a task-based route. When the task is committed, the route is committed. When
the task is cleared, the route is unreserved. Clearing the task does not always clear
the route. Refer to Lazy Line Transitions for more information.
Immediate Routing
Immediate routing is not associated with any task. An immediate route is a pair of
fully qualified terminal names specifying the source and destination of the route.
When an immediate route is created, the route gets committed to hardware
immediately. Because an immediate route does not have a task governing its
lifetime, you need to actively destroy the route. Create an immediate route with the
Connect Terminals function/VI and destroy it with the Disconnect Terminals
function/VI. Also, if you make an immediate route multiple times with several calls
to Connect Terminals, only one call to Disconnect Terminals releases the route.
There are other ways to destroy routes such as resetting the device. Refer to Device
Resetting and Interactions with Routing for more information.
114 ni.com
NI-DAQmx
The exported internal trigger signal could be different from the external trigger
signal.
disable the tristate buffer associated with the I/O terminal with the Tri-State Output
Terminal function/VI. Or, if you initially created the route by exporting a signal with
the Export Signal function/VI, you can also disable the tristate buffer by calling the
Export Signal function/VI with the same signal name but with an empty string as the
output terminal. Putting the terminal back into a tristate mode is necessary if an
external signal must be connected to the I/O terminal. If the terminal is not tristated
first, double driving the terminal damages the hardware.
All other connectors, such as the RTSI connector, use a different rule. When the task-
based route associated with the RTSI connector is released, the tristate buffer
associated with the RTSI terminal is disabled. The RTSI bus is a public bus that is
shared by multiple devices. All drivers using the RTSI bus assume that all devices on
the bus are tristated. The I/O connector is different because you have full control of
it. You must keep track of which terminals are tristated or being driven by internal or
external signals.
Device Resetting and Interactions with Routing
When you reset a device in NI-DAQmx, every immediate route and task associated
with the device is invalidated. When the task is invalidated, all the routes are
invalidated, too. If a task-based route is invalidated using a device reset, its parent
task also is invalidated.
For instance, device A is running a task that performs an analog input operation.
This same analog input operation receives its Start Trigger from device B. This task
spans across device A and B due to the multi-device routing. If device B gets reset,
all routes on device B are destroyed. The invalidation of the task-based route on
device B causes its parent task on device A to be invalidated, too. You must consider
these possible consequences when issuing a device reset. If the route between
device A and B is an immediate route, there is not a relationship between the
immediate route and the task. This could result in the task not being invalidated.
You need to decide if you need to preserve the task.
Device Routing in MAX
To find the device routing table for your device, launch MAX and select Devices and
Interfaces. Click a device to open a tabbed window in the middle pane. Click the
Device Routes tab at the bottom of the pane to display the device routing table.
116 ni.com
NI-DAQmx
Counters
This section provides an overview of counters in NI-DAQmx and the two counter
measurement method for period and frequency measurements.
Paired Counters
For more complex and accurate measurements and generations, a counter is paired
with another counter with dedicated connections to and from each counter. This
pairing allows you to perform such operations as finite pulse-train generations,
higher accuracy frequency and period measurements, and cascaded edge counting.
Paired counters are generally numbered sequentially. For example, ctr0 and ctr1 are
a pair, ctr2 and ctr3 are a pair, and so on.
Two Counter Measurement Method
For period and frequency measurements, you also can use a second counter. For
most applications, the low frequency with one counter method is sufficient and
desirable because it uses fewer resources. However, if you have a high-frequency or
widely varying signal, you can use one of the two counter measurement methods—
the high-frequency measurement method or the large-range measurement method.
Depending on the rate of your input signal and measurement method used, your
measurement is subject to different amounts of quantization error. In two counter
applications, you only need to call the Create Channel function/VI once, specifying
only the counter channel to which you want to connect your input signal. NI-DAQmx
automatically takes care of making the internal routes necessary to perform the
measurement across paired counters.
High Frequency Two-Counter Measurement Method
Use this high-frequency measurement method if you measure a digital frequency or
period of a signal with a high frequency component. To perform measurements
using this method in NI-DAQmx, a paired counter generates a pulse train with a
period specified using the measurement time attribute/property. The measurement
time is generally much larger than the period of the input signal being measured to
reduce quantization error. However, the measurement time must be small enough
to keep the counter from rolling over. The measurement counter counts the number
of periods of the input signal that occur during the measurement time, averages the
results, and returns the averaged value in the Read function/VI. The value returned
is calculated as follows:
Period (in seconds) = Measurement Time / Number of Periods Counted
Frequency (in Hz) = Number of Periods Counted / Measurement Time
To determine if you should use the high-frequency measurement method, refer to
the quantization error tables. If the quantization error listed for the one-counter
method is too high, use the high-frequency measurement method instead.
Large-Range Two Counter Measurement Method
If you measure the digital frequency or the period of a counter signal, you can use
this two-counter method to measure signals with large ranges. This method is useful
when you have a widely varying signal to measure and would like increased
accuracy throughout the entire range. Refer to the quantization error section for
more information on increasing measurement accuracy with the large-range
measurement method. You can also use this method to measure signal frequencies
that are faster than your counter timebase rate as long as the input signal does not
exceed the maximum input frequency supported by the counter.
118 ni.com
NI-DAQmx
However, with a divisor of 4, the measurable frequency range is 0.024 Hz to 200 kHz
because
To determine if you should use the large-range measurement method, refer to the
quantization error tables. If the quantization error listed for the one-counter method
in that section is too high, use the large-range measurement method instead.
Quantization Error
Quantization error is the inherent uncertainty in digitizing an analog value as a
result of the finite resolution of the conversion process. Quantization error depends
on the number of bits in the converter, along with its errors, noise, and
nonlinearities. Quantization error occurs due to phase differences between the
input signal and the counter timebase. Depending on how the phase of the input
signal and counter timebase align, the count measured has three possibilities:
For example, if the counter timebase rate is 20 MHz, and the frequency of the input
signal is 5 MHz, the measured value can be 3, 4, or 5 due to quantization error. This
corresponds to a measured frequency of 6.67 MHz, 5 MHz, or 4 MHz, resulting in a
quantization error of as much as 33%.
For one counter time measurements, the following equation gives the quantization
error.
ErrQuantization = Actual Frequency / (Counter Timebase Rate - Actual Frequency)
You can reduce the quantization error for single counter time measurements by
increasing the counter timebase rate. The following table shows the quantization
error for various timebase rates with given input signal frequencies:
120 ni.com
NI-DAQmx
For two counter high-frequency measurements, the following equations give the
quantization error.
ErrQuantization = Actual Period / Measurement Time
ErrQuantization = 1 / (Measurement Time × Actual Frequency)
Increasing the measurement time reduces the quantization error. The quantization
error also decreases with higher frequency input signals. The following table shows
the quantization error for various measurement times and input signal frequencies:
122 ni.com
NI-DAQmx
To calculate the quantization error, this equation uses the Number of Signal Periods
of the input signal that have been measured and averaged. The number of periods
is dynamically adjusted based on a combination of the measurement time and
divisor settings, plus the period of the input signal being measured as shown in the
following equation.
The following table shows examples of quantization error for various divisor and
measurement time settings for different input signal frequencies. The counter
timebase rate is 100 MHz.
124 ni.com
NI-DAQmx
Divisor
Specifies the number of periods of the input signals to measure and average.
Use a larger divisor to get more averaging and lower noise measurements.
Measurement Time
Specifies the amount of time over which to measure periods of the input
signal to get the average value of the input signal period. Use a longer
measurement time to get more averaging and lower noise measurements.
Maximum Measurable Period
Specifies the duration to wait for the input signal transitions before a no valid
measurement found state is indicated. Set this to be longer than the slowest
frequency you wish to measure.
126 ni.com
NI-DAQmx
measurement accuracy vs. measurement latency throughout the input signal range
as shown in the following table.
The measurement time and divisor can also be set manually using the property
node before the acquisition starts if the auto measurement settings are not desired.
The measurement time or divisor can be disabled by setting it to zero.
CtrnGate
The signal at this advanced terminal is used as the Start Trigger, pause trigger,
sample clock, or the input signal being measured. The following table lists
how this terminal is used in various applications:
Application Purpose of Gate Terminal
Pulse Generation Pause or Start Trigger
One Counter Time Measurements Input Signal
Two Counter Time Measurements Unused
Nonbuffered Edge Counting Pause Trigger
Buffered Edge Counting Sample Clock
Two-Edge Separation Second Input Terminal
Position Z Input Terminal
CtrnSource
The signal at this advanced terminal is either the input terminal for the
measurement or the counter timebase. The following table lists how this
terminal is used in various applications:
Application Purpose of Source Terminal
Pulse Generation Counter Timebase
One Counter Time Measurements Counter Timebase
Two Counter Time Measurements Input Terminal
128 ni.com
NI-DAQmx
CtrnSampleClock
You can connect a sample clock in or export it through this terminal.
Counter Parts
The main parts of a counter include the following:
A GATE input terminal controls when counting occurs. A GATE input is similar to a
trigger because it starts or stops a count.
A SOURCE (CLK) input terminal is the timebase for a measurement or the signal to
count.
A count register increments or decrements the number of edges to count. If the
count register decrements, it counts down to zero. The count register size is the
number of bits in the counter, and you calculate it as Count Register = 2
An OUT signal terminal can output a pulse or a pulse train, which is a series of
pulses.
130 ni.com
NI-DAQmx
Implicit Timing
After the acquisition begins, NI-DAQmx measures each consecutive sample of the
input signal and stores the measurement in the input buffer. Due to this consecutive
measurement, the rate of the input signal implicitly determines the rate of the
acquisition.
Averaging
For frequency and period measurements using Sample Clock timing, some devices
can return an averaged measurement of all periods since the previous Sample Clock
pulse, instead of measuring only the period immediately preceding the current
Sample Clock pulse. Use the EnableAveraging DAQmx Channel property/attribute,
associated with each of those measurement types, to enable averaging.
pulse width, and semi-period measurements often indicates a smaller value than
the actual value. For buffered frequency measurements, the first sample often
indicates a higher frequency than the actual frequency. Some devices detect these
incomplete samples and discard them.
Pulse Measurement
Some devices support measuring individual pulses, returning each sample as a
tuple of frequency/duty cycle, high/low time, or high/low ticks.
Configuring a Displacement Measurement with NI-DAQmx
To configure a measurement, specify the initial sensor position through the Initial
Angle attribute/property. You also can specify if the Z Input Terminal is used with
the Z Index Enable attribute/property. You can configure the reload position on a Z
index, and when a Z index position should cause a reload to occur in relation to the
A and B signals, by using the Z Index Phase and Z Index Value attributes/properties,
respectively.
When performing a single point, or on-demand, displacement measurement, you
first arm the counter by calling the Start Task function/VI. Each subsequent read
returns the current position of the encoder. If you perform multiple reads without
first starting the counter, the counter implicitly starts and stops with each Read
function/VI call, and the position is not recorded properly between read calls.
With a buffered displacement measurement, the device latches the current position
onto each active edge of the sample clock and stores the position in the buffer.
There is no onboard clock for buffered displacement measurement, so you must
supply an external sample clock.
Buffered Pulse Generation
You can specify the size of the buffer by calling the DAQmx Configure Buffer
function/VI, by specifying the buffer size attribute/property in the buffer property
node, or by writing a number of pulse specifications using the DAQmx Write Counter
MultiPoint function/VI before starting the task. This is ideal for applications that
require pulse-width modulation, such as proportional integral derivative (PID) loop
control applications. An example of an Implicit buffered generation would look like
the following:
132 ni.com
NI-DAQmx
The high and low times provided in the Create Channel function/VI are ignored in
this case.
If you do not use a software buffer, all pulses generated will be the same, unless you
update the high time and low time while the application is running. This will cause
the pulse specifications to be software timed and change on-demand.
You can use the same attributes/properties that create the channel to update the
pulse specifications of the pulse train generation. Because you need two attributes/
properties to specify the pulse specifications of the pulse train, the specifications
only update when you set one of the two. For example, if you specify the pulse
generation in terms of frequency, the frequency and duty cycle control the
specifications of the generation. However, the pulse specifications only update
when you set the frequency attribute/property. The same is true when you specify
pulse generation in terms of time or ticks; the low time and low ticks control when
the pulse specifications update. When updating the pulse specifications of the pulse
generation, a complete period of the current specification generates before the new
pulse specification takes effect. Updating the pulse specifications while running is
not supported on buffered pulse train generation.
In some devices, such as M Series, E Series, and S Series devices, generating finite
pulse trains requires the use of paired counters. In devices that require paired
counters on a finite pulse train generation, the first counter (for example, Counter 0)
generates a pulse of desired width. The second counter (Counter 1) generates the
pulse train, which is gated by the pulse of the first counter. The routing is done
internally. The following illustration shows a two counter finite pulse train timing
diagram.
134 ni.com
NI-DAQmx
In Sample Clock mode, which uses a software buffer, the Samples per Channel input
determines the number of distinct pulse specification (High Time/Low Time)
transitions to generate. In the following example, Samples per Channel is set to
three. Notice that the counter increments after the sample clock pulses and the
counter signal transitions from high to low. The device generates the high and low
values specified in the Create Channel function/VI until the first sample clock
arrives.
When you set the idle state to high, the generation starts high for the initial delay,
then transitions to low for the low time. The high time is ignored for the first pulse,
but is repeated after the low time for each subsequent pulse. In both cases, the
output rests at the idle state after the pulse generation completes.
136 ni.com
NI-DAQmx
When a terminal shares a name with a signal, it is not always clear which is being
referred to—the terminal or the signal. The sample clock provides a good example.
Within most devices, there is a terminal such that the signal at that terminal is
always used as the sample clock. So when you refer to the sample clock signal, you
refer to this terminal. For instance, for M Series analog input tasks, this terminal is
named the ai/SampleClock terminal. For analog output tasks, this terminal is
named the ao/SampleClock terminal.
When you use the Timing function/VI to select the source of the sample clock signal
for your analog input task on an M Series device, you choose a signal at some other
terminal to act as the source for the ai/SampleClock terminal. In other words, NI-
DAQmx connects your chosen terminal (a PFI terminal pin, for instance) to the ai/
SampleClock terminal. Selecting the ai/SampleClock terminal as the sample clock
source returns an error because a terminal cannot be connected to itself.
Terminal Names
Terminal Names Explanation
OnboardClock An alias for the terminal within a device where
the default source for a clock can be found. If
your application does not set the source of a
clock (or uses an empty string as the source),
the clock's particular onboard clock is used. For
example, the onboard clock for the ai sample
clock is the ai Sample Clock Timebase.
PFIn Programmable Function Interface—general-
purpose input terminals, fixed-purpose output
terminals. The name of the fixed output signal
is often placed on the I/O connector next to the
terminal as a hint.
PXI_Trign PXI Trigger bus—general-purpose input/output
lines.
RTSIn Real Time System Integration bus—general-
purpose input/output lines. RTSI7 is the
exception. It is the only line to use for the 20
MHz Timebase signal.
ai/SampleClock A terminal within a device where the analog
input sample clock can be found.
138 ni.com
NI-DAQmx
140 ni.com
NI-DAQmx
142 ni.com
NI-DAQmx
144 ni.com
NI-DAQmx
The syntax for terminal names is a unique identifier that refers to a physical terminal
in your system. To guarantee the uniqueness of a terminal name across multiple
devices, terminal names begin with a forward slash, followed by the name of the
device as configured in MAX, such as Dev1. A forward slash and the name of the
terminal follow the device identifier, such as PFI3. For example, the fully qualified
terminal name for PFI3 on Dev1 is /Dev1/PFI3.
For terminals that exist on multiple subsystems or timing engines, the name of the
subsystem or timing engine precedes the terminal name. For example, the output
terminal of the Start Trigger for the analog input subsystem on Dev1 is /
Dev1/ai/StartTrigger.
Coercion
When a value you set cannot be met exactly, NI-DAQmx sometimes adjusts—or
coerces—that value to a valid one. Coercion often occurs when an attribute/
property supports a set of discrete ranges.
After you set an attribute/property, you can query that attribute/property to
determine its actual value after coercion.
Input Limit Coercion
Some devices support only a discrete set of device ranges. When you specify input
limits, NI-DAQmx coerces those values to fit within one of the supported device
ranges.
For instance, suppose your device only supports ranges of 0 to 10 V, -5 to 5 V, and -10
to 0 V. If you set a maximum value of 8 V, NI-DAQmx coerces the maximum value to
10 V. NI-DAQmx also coerces scaled values, including custom scaling. If you have a
temperature sensor that outputs 100 mV for every 1 °C, NI-DAQmx coerces a
maximum value of 80 °C to 100 °C.
Because NI-DAQmx coerces input limits, code width is calculated based on the
coerced values, which can be outside the minimum and maximum values you
expect to measure.
Clock Frequency Coercion
146 ni.com
NI-DAQmx
Frequencies of clocks must be evenly divisible into the frequency of their timebase.
For example, the rate of the Sample Clock must be evenly divisible into the
frequency of the Sample Clock Timebase. If you specify a Sample Clock rate that is
not evenly divisible into the frequency of the Sample Clock Timebase, NI-DAQmx
coerces the Sample Clock rate to one that is valid.
Calibration
There are two types of calibration, channel calibration and device calibration.
Device Calibration
External Calibration
External calibration, which is typically performed by a metrology lab, requires using
a high-precision voltage source to verify and adjust calibration constants. This
procedure replaces all calibration constants in the EEPROM and is equivalent to a
factory calibration. Because the external calibration procedure changes all EEPROM
constants, it invalidates the original calibration certificate. If an external calibration
is done with a NIST-certified voltage source, a new NIST traceability certificate can
be issued.
Channel Calibration
Channel calibration is a technique used to achieve higher measurement accuracy. In
most applications, device calibration provides sufficient accuracy. However, in
applications where the highest degree of accuracy is critical, channel calibration is
necessary, but it does not replace device calibration. Channel calibration
compensates for various errors, including those introduced by cabling, wiring, and
sensors.
Control in NI-DAQmx
This section explains control concepts as implemented in NI-DAQmx. Timing control
loops, synchronizing analog input and output, using control algorithms, single-
point real-time applications, and setting priorities for control applications in
LabVIEW are described.
For a general introduction to control, independent of the software you are using,
refer to the control overview.
NI-DAQmx Single-Point Real-Time Applications
This section describes sample applications that demonstrate the functionality for
hardware-timed single-point operations on real-time platforms.
148 ni.com
NI-DAQmx
Most of these applications use the Wait For Next Sample Clock function/VI, which
guarantees tight synchronization between the hardware layer and the software
layers for hardware-timed single-point tasks. Wait For Next Sample Clock provides
an accurate way to correlate application execution to hardware signals, such as the
sample clock for the given task, while providing feedback on the overall real-time
execution of the control loop.
The following sections present common control applications:
Requirement
The I/O must be hardware-timed. All output values need to simultaneously
update at the arrival of the sample clock edge.
Solution
Use the DAQmx Wait For Next Sample Clock function/VI to verify that a new
sample clock edge has not yet occurred.
Advantages
Restrictions
Read, process, and write operations are confined to the time available
between the moment the device starts acquiring data and the moment the
next sample clock edge arrives.
■ Wire the DAQmx Wait For Next Sample Clock VI to one of the hardware-
timed tasks. Use dataflow wiring to guarantee that the DAQmx Wait For Next
Sample Clock VI executes after the AO Write call.
150 ni.com
NI-DAQmx
■ If the DAQmx Wait For Next Sample Clock VI does not start before the arrival
of the next sample clock edge, it returns an error.
Sample Block Diagram
Note:
■ Use only one DAQmx Wait For Next
Sample Clock VI within a LabVIEW loop. If
you have multiple hardware-timed single-
point I/O tasks within the same LabVIEW
loop, you can connect the DAQmx Wait
For Next Sample Clock VI to any one
hardware-timed single-point task within
that loop.
■ If, when a cycle overflow occurs,
you want to receive a warning rather
than an error, set the DAQmx
Real-Time»Convert Late Errors to
Warnings property to True.
■ The DAQmx Wait For Next Sample
Clock VI has two modes of operation:
Polling and Wait For Interrupt. To change
these values, use the DAQmx Real-
Time»Wait For Next Sample Clock
Wait Mode property. Wait For Interrupt
mode, which is the default, allows lower
priority processes to execute while the
time-critical loop waits for the next
sample clock. Polling mode allows for
higher sampling rates, but it prevents
Requirement
The I/O needs to be hardware-timed. All output values need to simultaneously
update at the arrival of the sample clock edge. Data needs to be exchanged
between a time-critical loop and lower-priority processes.
Solution
Use the Wait For Next Sample Clock function/VI to verify that a new sample
clock edge has not yet occurred. Place the communication code (usually real-
152 ni.com
NI-DAQmx
■ Wire the Wait For Next Sample Clock VI to one of the hardware-timed tasks.
Use dataflow wiring to guarantee that the Wait For Next Sample Clock VI
executes after the AO Write call.
■ Use dataflow wiring to guarantee that the real-time FIFO operations execute
after the Wait For Next Sample Clock VI executes.
■ If the Wait For Next Sample Clock VI does not execute before the arrival of
the next sample clock edge, it returns an error.
Sample Block Diagram
154 ni.com
NI-DAQmx
Note:
■
Use only one Wait For Next Sample
Clock VI within a LabVIEW loop. If you
have multiple hardware-timed I/O tasks
within the same LabVIEW loop, you can
connect the Wait For Next Sample Clock
VI to any one hardware-timed single-point
task within that loop.
■ If, when a cycle overflow occurs, you
want to receive a warning rather than an
error, set the DAQmx Real-Time»Convert
Late Errors to Warnings property to True.
■ Although you do not have to place
the real-time FIFO code after the Wait
For Next Sample Clock VI, it is highly
recommended that you do so when
dealing with multiple-channel analog
input operations on multiplexed devices
(such as E and M Series). Because the
device can spend up to 50% of the sample
period converting samples on the analog
input channels, executing the FIFO code
during this conversion period has the
advantage of using up otherwise idle
time.
■ You can increase the Analog Input
Conversion Rate manually through the
DAQmx Timing Property Node. This
reduces the total amount of time spent
converting the requested number of
Requirement
An analog input task must be hardware-timed. The output task does not need
hardware synchronization with the sample clock edge.
Solution
Use the DAQmx real-time Report Missed Samples attribute/property, which
returns an error if new samples are available before the read operation
finishes converting samples from the previous iteration.
Advantages
156 ni.com
NI-DAQmx
using a control algorithm (such as PID), and writes the new control values to the
analog output channels using a software-timed task.
Timing Diagram
■ Set the Report Missed Samples property for the analog input operation to
True.
■ The analog input operation returns an error if new samples are available
before the read operation finishes converting samples from the previous
iteration.
Sample Block Diagram
Note:
■ If, when an Analog Input Read overflow
error occurs, you prefer to receive a
warning rather than an error, set the
Convert Late Errors to Warnings property
to True.
■ Do not use the Wait For Next Sample
Clock VI and the Report Missed Samples
property within the same LabVIEW loop.
■ Only hardware-timed single-point
analog input tasks support the Report
Missed Samples property.
■ Because the analog output task is
software timed, the value is written out as
soon as the write call is initiated. It does
not wait for a hardware clock to output
the data.
Requirement
Use hardware-timed counter input operations to drive a control loop.
Solution
Use the Wait For Next Sample Clock function/VI to synchronize the counter
operations with the counter's sample clock.
Advantages
158 ni.com
NI-DAQmx
■ Counter tasks allow for flexible timing and event detection operations
that can drive the software processing of the control loop. In other
words, the control loop can have a dynamic clock rate.
■ NI-DAQmx returns an error if the Wait For Next Sample Clock
function/VI does not start before the next sample clock edge arrives.
Restrictions
Read, process, and write operations are confined to the time available
between the moment the device starts acquiring data and the moment the
next sample clock edge arrives.
■ Wire the Wait For Next Sample Clock VI to the counter input task.
■ If the Wait For Next Sample Clock VI does execute before the arrival of the
next sample clock edge, it returns an error.
Sample Block Diagram
160 ni.com
NI-DAQmx
Example 2
■ Wire the Wait For Next Sample Clock VI to the counter output task.
■ If the Wait For Next Sample Clock VI does not execute before the arrival of
the next sample clock edge, it returns an error.
Sample Block Diagram
Note:
■ Use only one Wait For Next Sample
Clock VI within a LabVIEW loop. If you
have multiple hardware-timed I/O tasks
within the same LabVIEW loop, you can
connect the Wait For Next Sample Clock
VI to any one hardware-timed single-point
task within that loop.
■ If, when a cycle overflow occurs,
you want to receive a warning rather
than an error, set the DAQmx
Real-Time»Convert Late Errors to
Warnings property to True.
■ Hardware-timed counter operations
have no conversion period similar to that
of multiplexed analog input. Therefore,
Requirement
I/O needs to be hardware-timed. All output values need to simultaneously
update at the arrival of the sample clock edge. The application uses the Timed
Loop.
Solution
Use the DAQmx Create Timing Source function/VI to create a timing source
that drives a Timed Loop that contains the I/O operations and the control
algorithm.
Advantages
■ Using a timing source allows you to specify an I/O signal (for example,
the sample clock signal) to trigger the execution of Timed Loop
iterations.
162 ni.com
NI-DAQmx
■ Timing sources such as the Control Loop From Task provide strict
lateness checking and allow other threads to execute while several
analog channels are being multiplexed and sampled.
■ The Timed Loop provides feedback as to whether the iterations
complete in time.
■Multi-rate applications, using distinct I/O hardware subsystems, are
possible by extending this approach to multiple Timed Loops.
Restrictions
164 ni.com
NI-DAQmx
Note:
■ The DAQmx Read VI is implicitly
configured to polling mode when
using the Control Loop From Task
timing source. Polling mode avoids
the additional scheduling overhead
associated with interrupts inside the
Timed Loop.
■ You can increase the Analog Input
Conversion Rate manually through
DAQmx Timing properties. This reduces
the total amount of time spent converting
the requested number of samples. It
is important to consider the minimum
settling time specifications for the
complete data acquisition system to avoid
signal degradation and interference.
■ Do not use the Wait For Next Sample
Clock VI for any of these tasks.
■ Lower-priority processes, including
other Timed Loops with lower priorities,
can execute while the Timed Loop waits
until its next iteration.
■ To optimize multi-channel control
applications in which lower-priority
threads might require additional
The following diagram shows, for multiple channel configurations, the effect of
the amount of sleep over the maximum achievable rate and the amount of work
lower-priority threads can execute at such rates.
166 ni.com
NI-DAQmx
In the 12- and 16-channel case, the additional sleep interval allows other threads to
execute more work (refer to definition below) without affecting the overall I/O rate
of the application.
Benchmark Configuration
■ Hardware Configuration:
■ NI PXI-8196 RT Controller
■ NI PXI-6070 E Series MIO device
■ NI PXI-6723 Analog Output device
■ Software Configuration:
■ LabVIEW Real-Time 8.0
■ NI-DAQmx 8.0
■ Ethernet driver set to polling mode
■ Benchmark details:
■ A work unit is defined as the number of times a normal-priority loop can
increment an unsigned 64-bit number while the I/O Timed Loop, depicted in
the sample block diagram above, runs in parallel with it.
■ The analog input conversion is not explicitly configured. This means that
the DAQmx driver auto-calculates it based on the number of channels and
desired sample clock rate.
Software-Timed I/O
Requirement
The I/O tasks do not support hardware-timed operations.
Solution
Apply software timing to your time-critical loop by using the Timed Loop in
LabVIEW or asynchronous timers in LabWindows/CVI. Configure your NI-
DAQmx tasks to use on-demand timing.
Advantages
■ You can perform I/O control loops with operations that are not
hardware-timed.
■ Read, process, and write operations are confined to the software
timing period that you define with the Timed Loop or asynchronous
timers.
Restrictions
I/O samples suffer from software jitter.
168 ni.com
NI-DAQmx
Note:
■ The Timed Loop allows the application
to adjust its period from within the loop,
allowing the implementation of dynamic
timing algorithms for control.
■ Lower-priority processes can execute
while the Timed Loop waits until its next
iteration.
■ Other software timing methods include
the use of the Wait and Wait Until
next multiple VIs (with microsecond or
milliseconds resolution). These methods
provide no feedback when the application
falls behind.
You can time control loops using software timing or hardware timing. You can also
use the Timed Loop structure.
For software timing, the software and operating system determines the rate at
which the loop executes. Software timing is not deterministic. Controlling a while
loop and using the Wait Until Next ms Multiple VI to handle timing is an example of a
software-timed loop. Hardware timing uses the DAQ device internal clock or an
external clock to control when a read executes within a loop. The example block
diagram shown in Control Loops in the Common Applications section uses
hardware timing.
The Timed Loop structure is hardware timed. It is ideal for multirate applications. By
default, the Timed Loop uses the 1 kHz clock of the Windows operating system as its
timing source. Refer to your LabVIEW Help for more information about the Timed
Loop structure.
Control Algorithms
There are many data processing algorithms to consider when creating a control
application. You can create custom control algorithms using LabVIEW. You also can
use VIs, such as the LabVIEW Control Design and Simulation Module VIs and
Functions, to process control application data. This module offers several libraries
that you can use to design, analyze, simulate, and deploy dynamic system models,
including controllers.
Synchronizing Analog Input and Output
You can time analog output events and synchronize the events to the analog input
clock. You can share a common clock for A/D and D/A conversions to ensure that
both occur simultaneously. The advantage of this method is that, so long as your
software completes in time, you mask out jitter. One caveat is that outputs are
always one loop cycle behind the inputs, as shown in the following figure.
170 ni.com
NI-DAQmx
Reading Data
All NI-DAQmx simulated devices return analog input data in the form of a full-scale
sine wave with 3% of full-scale noise.
When multiple channels are in the task, the data for each channel is offset 5° in time.
Setting the minimum and maximum signal input range determines the amplitude of
the simulated signal. If you decrease the minimum and maximum values the
amplitude of the simulated sine wave decreases. However, on real hardware , your
172 ni.com
NI-DAQmx
analog input signal clips at the maximum and minimum signal input range that is
set.
For simulated AO data, set the minimum and maximum values for Signal Output
Range. The range cannot exceed the specifications for the real hardware. Set the
Test Signal Type to Sine Wave, Square Wave, or Triangle Wave. If you are using a Test
Panel, there are options for DC and Sinewave generation.
Digital data is always returned as if each eight-bit port were a binary counter for
both digital input and output.
Writing Data
Data written to an NI-DAQmx simulated device is scaled as if the device were real.
So, any custom scales implemented in a task would affect the simulated data
appropriately.
Distributed Applications
This section includes information about deploying applications and using the
DAQmx I/O Server for distributed applications.
Deployment
Deployment refers to developing an application so that it can be distributed, or
deployed, on a different computer than the one on which the application was
developed. To deploy an application, you need the saved application and any
configuration information the application and system requires.
When deploying an application, you must coordinate the use of configuration items
that can be shared among multiple tasks. This includes devices, scales, and global
virtual channels.
■ You can use the MAX Export Wizard to deploy an entire setup to another
computer, including tasks, channels, scales, and devices.
■ You can use the MAX Export Wizard to deploy an entire setup, except the
device configurations, to another computer. You might choose to do this if the
target computer already has tasks that rely on existing device configurations.
In this case, you might have to make modifications after deployment so
that your tasks and channels refer to the device configurations on the target
computer.
■ You can use the MAX Export Wizard initially to deploy a fixed set of
device, scale, and global virtual channel configurations among a group of
users. Each member of the group can create tasks that rely on the shared
configurations, then create applications that use these tasks, and finally share
the applications within the group. In some cases, the tasks deploy with
the applications automatically. In other cases, you must deploy the tasks
separately from the applications. Refer to the Deploying Tasks and Channels
section for more information.
■ You use LabVIEW Express VIs for your DAQ applications, and the tasks use
local channels only.
■ You save your tasks within a LabWindows/CVI or Measurement Studio
project, and the tasks use local channels only.
■You create your tasks and channels programmatically using the NI-DAQmx
API.
You must deploy your tasks and channels using the MAX Export Wizard if you create
your tasks and channels in the following ways:
174 ni.com
NI-DAQmx
■ Properties for LabVIEW, Visual C++, Visual Basic .NET, and Visual C#
■ Get and Set Attribute functions for ANSI C and LabWindows/CVI
Refer to your function or VI reference help for detailed information on available
attributes and properties.
Custom Scales
You can create scales to specify a conversion from the prescaled units measured by
a channel to the scaled units associated with your transducer or actuator. For input
channels, the scale converts samples read to the final scaled units. For example, a
scale could convert a voltage to a linear position. For output channels, the scale
converts samples written to the prescaled units of the channel. For example, a scale
could convert a linear position to a voltage. You also can use scales to calibrate
samples read or written so that the final scaled units are identical to the prescaled
units of the channel.
Often, you do not need to create a scale because NI-DAQmx has explicit support for
many of the most common transducers, sensors, and actuators. For example, when
creating an analog input temperature channel, you can specify the type of
176 ni.com
NI-DAQmx
178 ni.com
NI-DAQmx
NI DAQmx
NI-DAQmx has the following advantages over Traditional NI-DAQ (Legacy):
■
DAQ Assistant—a graphical way to configure virtual channels and
measurement tasks for your device, and to generate NI-DAQmx code based
on your virtual channels and tasks, for use in LabVIEW, SignalExpress,
LabWindows/CVI, and Measurement Studio.
■Increased performance, including faster single-point analog I/O and
multithreading.
■ NI-DAQmx simulated devices for testing and modifying applications without
plugging in hardware.
■ Simpler, more intuitive APIs for creating DAQ applications using fewer
functions and VIs than earlier versions of NI-DAQ.
■Expanded functionality for LabVIEW, including property nodes and
waveform data type support.
■Similar APIs and functionality for ANSI C, LabWindows/CVI, and
Measurement Studio, including native .NET and C++ interfaces.
■ Improved support and performance for the LabVIEW Real-Time Module.
If you are using NI application software with NI-DAQmx, you must use supported
versions of LabVIEW, LabWindows/CVI, Measurement Studio, NI SignalExpress, or
the LabVIEW Real-Time Module. Refer to the NI-DAQmx Readme for specific versions
of NI application software supported in your version of NI-DAQmx.
If you use one of the Microsoft .NET languages, Visual C# and/or Visual Basic .NET,
or a device supported only by NI-DAQmx, such as an M Series device, you must use
NI-DAQmx.
You also can use NI-DAQmx with a supported compiler, such as an ANSI C compiler.
180 ni.com
NI-DAQmx
Measurement Fundamentals
2022-03-22
November 2018, 371408N-01
Measurement Fundamentals covers API-independent information that might help
you as you develop applications. Topics include an explanation of different signal
types, sensors commonly used with measurement devices, signal conditioning, and
control fundamentals.
© 2005–2018 National Instruments. All rights reserved.
182 ni.com
NI-DAQmx
Signal Types
A signal is classified as analog or digital by the way it conveys information. A digital
(or binary) signal has only two possible discrete levels—high level (on) or low level
(off). An analog signal, on the other hand, contains information in the continuous
variation of the signal with respect to time. A breakdown of the main signal types is
shown in the following figure.
Floating signal sources are also called nonreferenced signal sources. Some common
examples of floating signal sources are batteries, thermocouples, transformers, and
isolation amplifiers. Notice in the figure that neither terminal of the source is
connected to the electrical outlet ground, so each terminal is independent of the
system ground.
184 ni.com
NI-DAQmx
Because such sources use the system ground, they share a common ground with the
measurement device. The most common examples of grounded sources are devices
that plug into the building ground through wall outlets, such as signal generators
and power supplies.
186 ni.com
NI-DAQmx
Pseudodifferential
188 ni.com
NI-DAQmx
Common-Mode Voltage
The common-mode voltage range limits the allowable voltage swing on each input
with respect to the measurement system ground. Violating this constraint results
not only in measurement error but also in possible damage to components on the
device. Common-mode voltage (Vcm) is defined using the following formula:
CMRR
CMRR measures the ability of a differential measurement system to reject the
common-mode voltage signal. For instance, if you are measuring a thermocouple in
a noisy environment, the noise from the environment appears on both input leads.
Therefore, this noise is a common mode voltage signal that is rejected by an amount
equal to the CMRR of the instrument. Most DAQ devices specify the CMRR up to 60
Hz, the power line frequency. CMRR in decibels (dB) is defined using the following
formula:
In an NRSE measurement system, all measurements are still made with respect to a
single-node analog input sense (AISENSE), but the potential at this node can vary
190 ni.com
NI-DAQmx
with respect to the measurement system ground. The previous figure illustrates that
a single-channel NRSE measurement system is the same as a single-channel
differential measurement system.
Pseudodifferential Measurement System
A pseudodifferential measurement system combines some characteristics of a
differential input channel and a referenced single-ended (RSE) input channel. Like a
differential input channel, a pseudodifferential measurement system exposes both
the positive and negative sides of the channel. You connect the positive and
negative inputs to the respective outputs of the unit under test. The negative input
is tied to system ground through a relatively small impedance (designated as Z1 in
the diagram below). The impedance between the negative input and ground may
include both resistive and capacitive components. The positive and negative sides
of the input channel are separated by a larger impedance (designated by Zin).
Pseudodifferential input configurations are common in simultaneous sampling and
dynamic signal acquisition (DSA) devices that do not employ a multiplexed signal
architecture. A pseudodifferential system is well-suited for measuring the output of
floating or isolated devices under test such as battery-powered instruments or most
accelerometers. The pseudodifferential setup can also be used to measure
referenced signals if the signal reference potential does not differ greatly from the
ground potential of the measurement device. However, ground loops may pose an
issue if the potential of the negative leg of the signal differs significantly from
chassis ground. In general, a differential input offers a better common-mode
rejection ratio (CMRR) than a pseudodifferential input.
192 ni.com
NI-DAQmx
detectable difference in voltage increases from 1.25 to 2.50 V, and you now have a
much less accurate representation of the signal. The device selects the best mode
available based on the input limits you specify when you create a virtual channel.
Gain Adjustment
If a device has multiple gains, it multiplies an input signal by one of the gains to
make the signal take up more of the full device range. This essentially gives the
device multiple ranges it can select from. For example, a device with an overall
range of -10 V to 10 V and possible gains of 1, 2, and 4 can select between ranges of
-10 V to 10 V, -5 V to 5 V, and -2.5 V to 2.5 V. The device selects the best gain available
according to the input limits you specify when you create a virtual channel.
Input limits are sometimes confused with device range. Device range refers only to
the input range of a particular device.
If you set your minimum to 0 and your maximum to 7, and your device only has a 0-5
and a 0-10 device range, the device range will be coerced to 0-10 by NI-DAQmx. This
also applies when using a custom scale.
The maximum and minimum input limit values will match the units of measurement
of the task. For instance, the device range for a DAQ device might be 0 to 10 V, but
that device might be used with a temperature sensor that outputs 100 mV for every
1 °C. The input limits in that case could be 0 to 100, with 10 V corresponding to 100
°C. For an analog current input task, the units would be amps.
Input limits in a smaller range can improve the precision of your measurement. If
your device has multiple input ranges, you can strategically choose the minimum
and maximum values to detect smaller differences in your signal of interest.
Consider a device that has a 0-10 V and a 0-5 V range. In the previous temperature
sensor example, if you knew that the temperature would never be higher than 50 °C,
you could choose a minimum value of 0 and a maximum value of 50. The device can
then detect smaller differences in temperature because it is digitizing a voltage
between 0 and 5 V, rather than 0 and 10 V.
Sampling Rate
One of the most important parameters of an analog input or output system is the
rate at which the measurement device samples an incoming signal or generates the
output signal. The sampling rate, which is called the scan rate in Traditional NI-DAQ
(Legacy), is the speed at which a device acquires or generates a sample on each
channel. A fast input sampling rate acquires more points in a given time and can
form a better representation of the original signal than a slow sampling rate.
Generating a 1 Hz signal using 1000 points per cycle at 1000 S/s produces a much
finer representation than using 10 points per cycle at a sample rate of 10 S/s.
Sampling too slowly results in a poor representation of the analog signal.
Undersampling causes the signal to appear as if it has a different frequency than it
actually does. This misrepresentation of a signal is called aliasing.
Resolution
Resolution is the smallest amount of input signal change that a device or sensor can
detect. The number of bits used to represent an analog signal determines the
194 ni.com
NI-DAQmx
resolution of the ADC. You can compare the resolution on a measurement device to
the marks on a ruler. The more marks you have, the more precise your
measurements. Similarly, the higher the resolution, the higher the number of
divisions into which your system can break down the ADC range, and therefore, the
smaller the detectable change.
A 3-bit ADC divides the range into 2 or 8 divisions. A binary or digital code between
000 and 111 represents each division. The ADC translates each measurement of the
analog signal to one of the digital divisions. The following figure shows a sine wave
digital image as obtained by a 3-bit ADC. Clearly, the digital signal does not
represent the original signal adequately, because the converter has too few digital
divisions to represent the varying voltages of the analog signal. By increasing the
resolution to 16 bits, however, the number of divisions of the ADC increases from 8
to 65,536 (2). The ADC now can obtain an extremely accurate representation of the
analog signal.
–5 to 5 V ■ -5 to 5 V ■ 2.44 mV
■ -2.5 to 2.5 V ■ 1.22 mV
■ -1.25 to 1.25 V ■ 610 µV
■ -0.625 to 0.625 V ■ 305 µV
■ -0.5 to 0.5 V ■ 244 µV
■ -50 to 50 mV ■ 24.4 µV
■ -10 to 10 mV ■ 4.88 µV
196 ni.com
NI-DAQmx
Digital devices can monitor the state of the pulse and can transition the pulse from
one state to another. A counter can also monitor the state as well as detect rising
edges, a transition from logic low to logic high, and falling edges, a transition from
logic high to logic low. Counters are used commonly to count edges and for time
measurements, such as measuring digital frequency or the period of a signal.
The figure shows PO <0..3> configured for digital input and PO <4..7> configured for
digital output. Digital input applications include receiving TTL signals and sensing
external device states such as the state of a switch. Digital output applications
include sending TTL signals and driving external devices such as the LED shown in
the figure.
Counters
Counters measure and generate digital signals. Counters are used commonly to
count edges and for time measurements, such as measuring digital frequency or the
period of a signal. The signal connections required for counters vary depending on
the device and your application.
Digital Logic States
Test engineers can choose from a number of different digital I/O instruments with a
range of features for communication and test applications. Beyond the basic
198 ni.com
NI-DAQmx
Signal Analysis
Signal analysis is the process of transforming an acquired signal to extract
information about the signal, filter noise from the signal, and present the signal in a
more understandable form than the raw signal.
Filtering and windowing are two signal analysis techniques.
Filtering
Filtering is one of the most commonly used signal processing techniques. Signal
conditioning systems can filter unwanted signals or noise from the signal you are
measuring. Use a noise filter on low-rate, or slowly changing, signals, such as
temperature, to eliminate higher frequency signals that can reduce signal accuracy.
A common use of a filter is to eliminate the noise from a 50 or 60 Hz AC power line. A
lowpass filter of 4 Hz removes the 50 or 60 Hz AC noise from signals sampled at low
rates. A lowpass filter eliminates all signal frequency components above the cutoff
frequency. Many signal conditioning modules have lowpass filters that have
software-selectable cutoff frequencies from 10 Hz to 25 kHz.
Windowing
Use windowing, or smoothing windows, to minimize spectral leakage associated
with truncated waveforms.
200 ni.com
NI-DAQmx
Spectral Leakage
Spectral leakage is a phenomenon whereby the measured spectral energy appears
to leak from one frequency into other frequencies. It occurs when a sampled
waveform does not contain an integral number of cycles over the time period during
which it was sampled. The technique used to reduce spectral leakage is to multiply
the time-domain waveform by a window function.
Discrete Fourier Transform (DFT) and Fast Fourier Transform (FFT) are mathematical
techniques that resolve a given signal into the sum of sines and cosines. It is the
basis for spectrum analysis. Using the DFT/FFT when you sample a noninteger
number of cycles, such as 7.5 cycles, returns a spectrum in which it appears as if
the energy at one frequency leaks into all the other frequencies because the FFT
assumes that the data is a single period of a periodically repeating waveform. The
artificial discontinuities appear as very high frequencies that were not present in the
original signal. Because these frequencies are higher than the Nyquist frequency,
they appear aliased between 0 and fs/2.
The type of window to use depends on the type of signal you acquire and on the
application. Choosing the correct window requires some knowledge of the signal
that you are analyzing. The following table lists common types of windows, the
appropriate signal types, and example applications.
Signal Conditioning
Sensors can generate electrical signals to measure physical phenomena, such as
temperature, force, sound, or light. To measure signals from transducers, you must
convert them into a form that a DAQ device can accept. For example, the output
voltage of most thermocouples is very small and susceptible to noise. Therefore,
you may need to amplify or filter the thermocouple output before digitizing it.
The manipulation of signals to prepare them for digitizing is called signal
conditioning. Common types of signal conditioning include the following:
■ Amplification
■ Linearization
■ Transducer excitation
■ Isolation
Amplification
Amplification is a type of signal conditioning that improves accuracy in the resulting
digitized signal by increasing signal amplitude relative to noise.
202 ni.com
NI-DAQmx
For the highest possible accuracy, amplify the signal so the maximum voltage swing
equals the maximum input range of the ADC, or digitizer. Your system should
amplify low-level signals at the measurement device located nearest the signal
source, as shown in the following figure.
Tip: Use shielded cables or a twisted pair of cables. By minimizing wire length, you
can minimize noise that the lead wires pick up. Keep signal wires away from AC
power cables and monitors to reduce 50 or 60 Hz noise.
If you amplify the signal at the measurement device, the signal is measured and
digitized with noise that may have entered the lead wires. However, if you amplify
the signal close to the signal source with an SCXI module, noise has less impact on
the measured signal.
Linearization
Linearization is a type of signal conditioning in which software linearizes the voltage
levels from transducers, so the voltages can be scaled to measure physical
phenomena. For example, a change in voltage of 10 mV for a thermocouple usually
does not reflect a change of 10 degrees. However, with linearization in software or
hardware, the thermocouple can be scaled to the appropriate temperature in your
application. Most transducers have linearization tables that describe scaling the
transducer.
Transducer Excitation
Signal conditioning systems can generate excitation for some transducers. Strain
gages and RTDs require external voltage and current, respectively, to excite their
circuitry into measuring physical phenomena. This type of excitation is similar to
the power a radio needs to receive and decode audio signals. Several measurement
devices provide the necessary excitation for transducers. Consult your device
documentation to see if your device can generate excitation.
Isolation
Signals often can exceed the limits that a measurement device can handle. Trying to
measure a signal that is too large for the measurement device can damage the
device or you. To keep you and your device safe from large voltages, you can apply a
signal conditioning technique called isolation. The signal conditioning hardware
attenuates high common mode voltages and extracts a signal that measurement
devices can handle. Isolation also ensures that differences in ground potentials do
not affect your device.
Common Sensors
Depending on your application, you may use several different kinds of sensors.
Some commonly used ones are strain gages, thermocouples, thermistors, angular
encoders, linear encoders, bridge-based sensors, and resistance temperature
detectors (RTDs).
2-Wire Resistance
Resistance measurements in the range above 100 Ω are generally made using the 2-
wire method shown in the following figure. The excitation current flows through the
leads and the unknown resistance, Rmeas. Your device measures the voltage across
the resistance through the same set of leads and computes the resistance
accordingly.
Errors in the 2-wire measurements are introduced by the lead resistance, RLead,
when measuring lower resistances. Because there is a voltage drop across the lead
resistance equal to I × RLead, the voltage measured by your device is not exactly the
same as the voltage across the resistance, Rmeas. Because typical lead resistances lie
in the range of 0.01–1 Ω, accurate 2-wire resistance measurements are very difficult
to obtain if Rmeas is below 100 Ω.
204 ni.com
NI-DAQmx
3-Wire Resistance
Use the 3-wire resistance method, as shown in the following figure, to measure
resistance on resistors that have three lead wires.
The 3-wire method uses three test leads, one pair for the excitation current (EX+,
EX-), and a third wire (Sense-) to compensate for the lead wire resistances. The third
wire measures the voltage developed over the lead resistance in the EX- leg of the
excitation current path. By subtracting its value from the overall differential signal,
the device can compensate for parasitic lead resistances in the EX+ leg. However,
this would only compensate for lead resistance in the EX+ leg and not in the EX- leg.
To compensate for lead resistance both in the EX- leg and in the EX+ leg, the device
approximates the EX+ leg by assuming the voltage is the same as in the EX- leg. Thus
the voltage between Sense- and EX- is multiplied by two before being subtracted
from the overall differential signal. This method works well when lead resistances in
the EX+ leg match resistances in the EX- leg.
Some legacy devices do not provide compensation. In that case, you need to specify
the lead-wire resistance so that it can be subtracted in software.
4-Wire Resistance
Use the 4-wire resistance method, as shown in the following figure, to measure
resistances of less than 100 Ω. The 4-wire method is more accurate than the 2-wire
method.
The 4-wire method uses four test leads, one pair for the injected current (the test
lead) and the other pair for sensing the voltage across the resistor Rmeas (the sense
lead). Because no current flows in the sense lead, the device measures only the
voltage developed across the resistance. Thus, a 4-wire resistance eliminates errors
that test lead and contact resistance cause.
Bridge-Based Sensors
Bridge-based sensors operate by correlating a physical phenomena, such as strain,
temperature, or force, to a change in resistance in one or more legs of a Wheatstone
bridge. The general Wheatstone bridge, shown in the following figure, is a network
206 ni.com
NI-DAQmx
of four resistive legs with an excitation voltage, VEX, that is applied across the bridge.
One or more of these legs can be active sensing elements.
The Wheatstone bridge is the electrical equivalent of two parallel voltage divider
circuits. R1 and R2 compose one voltage divider circuit, and R4 and R3 compose the
second voltage divider circuit. You measure the output of a Wheatstone bridge
between the middle nodes of the two voltage dividers.
A physical phenomena, such as a temperature shift or a change in strain applied to a
specimen, changes the resistance of the sensing elements in the Wheatstone bridge.
You can use the Wheatstone bridge configuration to help measure the small
variations in resistance that the sensing elements produce corresponding to a
physical change in the specimen.
Bridge Measurement Types
NI-DAQmx provides several measurement types for taking measurements from a
bridge-based sensor.
Strain gage
Use the strain gage measurement type for performing strain measurements.
Force, pressure, and torque
Use these measurement types for performing bridge-based force, pressure, or
torque measurements on supported devices.
NI-DAQmx provides additional measurement types from which you read data in
electrical units. Use a custom scale or write scaling code to convert the electrical
units to physical units.
Bridge (V/V)
Channels using the bridge V/V measurement type return a voltage ratio
instead of physical units. Use this measurement type on supported devices for
other bridge-based sensors, for sensors that scale data to physical units NI-
DAQmx does not support, or to measure torsional strain.
Custom voltage with excitation
Use this measurement type for bridge-based measurements on devices that
do not support the strain gage, force, pressure, torque, or bridge (V/V)
measurement types. Specify to use excitation for scaling to acquire a voltage
ratio instead of a voltage. On ratiometric devices, you must specify to use
excitation for scaling because those devices can only acquire a voltage ratio.
Voltage
Use this measurement type with bridge-based sensors that include an
internal amplifier and output voltage.
Current
Use this measurement type with bridge-based sensors that include an
internal amplifier and output current.
where VR is the voltage ratio; V is the voltage output from the bridge; VIB is the initial
bridge voltage, as determined by offset nulling; VEX is the excitation voltage supplied
to the bridge; and G is the gain adjustment from shunt calibration.
Ratiometric devices divide the voltage output from the bridge by the excitation
voltage in hardware. Therefore, V/VEX must be within the device range of the device.
On voltage devices, the voltage output from the bridge must be within the device
range. The initial bridge voltage and gain adjustment affect the association between
device range and input limits. For example, on a device that can measure ±5 V, an
initial bridge voltage of 1 V means that the minimum and maximum input limits
must correspond to -6 V to 4 V.
208 ni.com
NI-DAQmx
NI-DAQmx uses various methods to scale that voltage ratio to physical units,
depending on the bridge configuration for strain measurements or on the scaling
type that best matches the specifications provided by the sensor manufacturer for
other bridge-based sensors NI-DAQmx supports.
Bridge Configurations
There are three types of bridge configurations: quarter-bridge, half-bridge, and full-
bridge. The number of active element legs in the Wheatstone bridge determines the
kind of bridge configuration.
stable reference voltage of VEX/2 to the negative input lead of the measurement
channel. The high resistance of the completion resistors helps minimize the current
draw from the excitation voltage. However, using completion resistors that are too
large can result in increased noise and errors due to bias currents.
Signal Amplification
The output of bridge-based sensors is relatively small. For example, most strain
gage bridges and strain-based transducers output less than 10 mV/V, or 10 millivolts
of output per volt of excitation voltage. Therefore, signal conditioners for bridge-
based sensors usually include amplifiers to boost the signal level, to increase
measurement resolution, and to improve signal-to-noise ratios. For example, SCXI
signal conditioning modules include configurable gain amplifiers with gains up to
2,000. Other devices support multiple device ranges.
Bridge Excitation
Bridge-based sensors require a constant voltage to power the bridge. Bridge signal
conditioners typically include a voltage source. While there is no standard voltage
level that is recognized industry wide, excitation voltage levels of around 3 V and 10
V are common.
Excitation sources can suffer from stability and accuracy issues. To compensate,
ratiometric devices constantly measure the actual excitation voltage and use it,
rather than an intended excitation value, when scaling data.
Remote Sensing
If the bridge circuit is located away from the signal conditioner and excitation
source, a possible source of error is voltage drops caused by resistance in the
wires that connect the excitation voltage to the bridge. Therefore, some signal
conditioners include a feature called remote sensing to compensate for this error.
There are two common methods of remote sensing.
With feedback remote sensing, you connect extra sense wires to the point where the
excitation voltage wires connect to the bridge circuit. The extra sense wires serve
to regulate the excitation supply, to compensate for lead losses, and to deliver the
needed voltage at the bridge.
210 ni.com
NI-DAQmx
212 ni.com
NI-DAQmx
NI-DAQmx provides three methods to scale electrical values (voltage ratios) from a
bridge-based sensor to physical units:
Two-Point Linear
You provide two pairs of electrical values and their corresponding physical
values. NI-DAQmx uses those values to calculate the slope and y-intercept of a
linear equation and uses that equation to scale electrical values to physical
values. Measured electrical and physical values can fall outside the range of
the values specified for calculating the slope and y-intercept.
Table
You provide a set of electrical values and the corresponding physical values.
NI-DAQmx performs linear scaling between each pair of electrical and physical
values. The input limits must fall within the smallest and largest physical
values.
Polynomial
You provide the forward and reverse coefficients of a polynomial equation. NI-
DAQmx uses that equation to scale electrical values to physical values. Use
the DAQmx Compute Reverse Polynomial Coefficients VI/function to
determine one set of coefficients if you know only the other set.
Strain Gages
You can measure strain with a strain gage, which is a device with electrical resistance
that varies in proportion to the amount of strain in the device, and with signal
conditioning. When using a strain gage, you bond the strain gage to the device under
test, apply force, and measure the strain by detecting changes in resistance (Ω).
Strain gages return varying voltages in response to stress or vibrations in materials.
Gage Factor
A fundamental parameter of the strain gage is its sensitivity to strain, expressed
quantitatively as the gage factor (GF). Gage factor is the ratio of the fractional
change in electrical resistance to the fractional change in length, or strain. The gage
factor must be the same for each gage in the bridge.
The gage factor for metallic strain gages is usually around 2. You can obtain the
actual gage factor of a particular strain gage from the sensor vendor or sensor
documentation.
214 ni.com
NI-DAQmx
The following figure shows how to position a strain gage resistor in a bending
configuration for the quarter-bridge type I.
where Vr is the voltage ratio that virtual channels use in the voltage-to-strain
conversion equation, GF is the gage factor, RL is the lead resistance, and Rg is the
nominal gage resistance.
Quarter-Bridge Type II
The following figure shows how to position a strain gage resistor in an axial
configuration for the quarter-bridge type II.
216 ni.com
NI-DAQmx
The following figure shows how to position a strain gage resistor in a bending
configuration for the quarter-bridge type II.
where Vr is the voltage ratio that virtual channels use in the voltage-to-strain
conversion equation, GF is the gage factor, RL is the lead resistance, and Rg is the
nominal gage resistance.
Half-Bridge Type I
The following figure shows how to position strain gage resistors in an axial
configuration for the half-bridge type I.
218 ni.com
NI-DAQmx
The following figure shows how to position strain gage resistors in a bending
configuration for the half-bridge type I.
where Vr is the voltage ratio that virtual channels use in the voltage-to-strain
conversion equation, GF is the gage factor, v is the Poisson's ratio, RL is the lead
resistance, and Rg is the nominal gage resistance.
Half-Bridge Type II
The half-bridge type II configuration only measures bending strain.
220 ni.com
NI-DAQmx
The following figure shows how to position strain gage resistors in a bending
configuration for the half-bridge type II.
■ Two active strain gage elements, one mounted in the direction of axial strain
on the top side of the strain specimen and the other mounted in the direction
of axial strain on the bottom side.
■ Completion resistors which provide half-bridge completion.
■ Sensitivity to bending strain.
■ Rejection of axial strain.
■ Compensation for temperature.
■ Sensitivity at 1000 µε is ~ 1 mVout / VEX input.
where Vr is the voltage ratio that virtual channels use in the voltage-to-strain
conversion equation, GF is the gage factor, RL is the lead resistance, and Rg is the
nominal gage resistance.
Full-Bridge Type I
The full-bridge type I configuration only measures the bending strain.
222 ni.com
NI-DAQmx
The following figure shows how to position strain gage resistors in a bending
configuration for the full-bridge type I.
where Vr is the voltage ratio that virtual channels use in the voltage-to-strain
conversion equation, and GF is the gage factor.
Full-Bridge Type II
The full-bridge type II configuration only measures bending strain.
224 ni.com
NI-DAQmx
The following figure shows how to position strain gage elements in a bending
configuration for the full-bridge type II.
where Vr is the voltage ratio that virtual channels use in the voltage-to-strain
conversion equation, GF is the gage factor, and v is the Poisson's ratio.
Full-Bridge Type III
The following figure shows how to position strain gage resistors in an axial
configuration for the full-bridge type III.
226 ni.com
NI-DAQmx
The full-bridge type III configuration only measures the axial configuration.
Full-bridge type III strain gage configurations have the following characteristics:
■ Four active strain gage elements. Two are mounted in the direction of axial
strain with one on the top side of the strain specimen and the other on the
bottom side. The other two act together as a Poisson gage and are mounted
transverse, or perpendicular, to the principal axis of strain with one on the top
side of the strain specimen and the other on the bottom side.
■ Compensation for temperature.
■ Rejection of bending strain.
■Compensation for the aggregate effect on the principle strain measurement
due to the Poisson's ratio of the material.
■ Compensation for lead resistance.
where Vr is the voltage ratio that virtual channels use in the voltage-to-strain
conversion equation, GF is the gage factor, and v is the Poisson's ratio.
Strain Rosette
A strain gage can measure strain in only one direction—the axis along which the
strain gage is mounted. To effectively measure the three independent components
228 ni.com
NI-DAQmx
of plane strain (extensional strain along X and Y axis, as well as shear strain), three
independent strain measurements are needed. Strain gage rosettes are used to
perform such measurements.
A strain gage rosette is an arrangement of two or three closely positioned strain
gages, separately oriented to measure the strains along different directions of the
underlying surface of the object being measured.
Strain-gage manufacturers offer three basic types of strain gage rosettes.
Tee Rosette
A tee rosette consists of two gages oriented at 90 degrees with respect to each
other.
Rectangular Rosette
A rectangular rosette consists of three strain gages, each separated by a 45
degree angle.
Delta Rosette
A delta rosette consists of three strain gages, each separated by a 60 degree
angle.
is to the probe tip, the more power the signal loses. This power loss triggers a
change in the voltage of the driver.
Proximity probe sensitivity is usually defined as the slope of a calibration curve as
follows:
You can calculate the sensitivity by measuring two points in the sensor's dynamic
range, using the following formula:
After you calibrate your proximity probe, you need to update the sensitivity and
offset attributes. You can determine the physical distance between the sensor's tip
and the target material by using the following formula:
Encoders
There are two common types of encoders used for measuring position: two-pulse
encoders and quadrature encoders.
Quadrature Encoders
230 ni.com
NI-DAQmx
Quadrature encoders measure position by causing two signals to pulse while the
encoder moves. These signals are signal A (also called channel A) and signal B (also
called channel B). Signal A and B are offset by 90°, which determines the direction
the encoder moves. For instance, in an angular quadrature encoder, if signal A leads,
the encoder rotates clockwise. If signal B leads, the encoder rotates counter
clockwise.
Counters on M Series, C Series, NI-TIO devices support three types of decoding for
quadrature encoders: X1, X2, and X4. With X1 decoding, when signal A leads signal B,
the counter increments on the rising edge of signal A. When signal B leads signal A,
the counter decrements on the falling edge of signal A.
With X2 decoding, the same behavior holds as with X1, except the counter
increments and decrements on both rising and falling edges of signal A.
Similarly, with X4 decoding, the counter increments and decrements on both rising
and falling edges of both signal A and signal B. X4 decoding is more sensitive to
position, but is also more likely to provide an incorrect measurement if there is
vibration in the encoder.
Many encoders also use z indexing for precise determination of a reference position.
Two-Pulse Encoders
A two pulse encoder is a position measurement sensor that has two channels, A and
B. When the encoder is moved, either signal A or signal B on the encoder pulses. A
pulse on signal A represents a movement in one direction, and a pulse on signal B
represents movement in the opposite direction. When signal A pulses, the counter
increments. When signal B pulses, the counter decrements.
Many encoders also use z indexing for precise determination of a reference position.
Z Indexing
Encoders typically use a third signal for Z indexing, which produces a pulse at fixed
positions that you can use for precise determination of a reference position. For
instance, if the Z index is 45° for an angular encoder, the encoder sends a pulse on
the Z input terminal every time the encoder is turned to the 45° mark.
The behavior of signal Z differs with designs. You must refer to the documentation
for an encoder to obtain the timing of signal Z in relation to the A and B signals. In
NI-DAQmx, you can configure Z indexing with the Z Index Phase attribute/
property.
Integrated Electronics Piezoelectric (IEPE) and Charge
Integrated Electronics Piezoelectric (IEPE) is a type of transducer that is packaged
with a built-in amplifier. Because the charge produced by some sensors is very
small, the electrical signal produced by the transducer is susceptible to noise, and
sensitive electronics must be used to amplify and condition the signal. An IEPE
sensor integrates the sensitive electronics as close as possible to the transducer to
ensure better noise immunity and convenient packaging. These sensors require a
4-20 mA current excitation to operate.
Accelerometers
232 ni.com
NI-DAQmx
■ If the sensor is DC coupled, the DC offset of the accelerometer can drift with
both temperature and age. This applies to both types of sensors because
charge-sensitive amplifiers are prone to drift. AC coupling the output of the
amplifier can minimize the drift in the system.
■ Motors, transformers, and other industrial equipment can induce noise
currents in the sensor cables. These currents can be an especially large source
of noise with sensor systems that rely on the piezoelectric effect to generate
voltage. Carefully routing sensor cables can minimize the noise in the cables.
■ Accelerometers might have ground loops. Some accelerometers have their
cases tied to a sense wire, while others are completely isolated from their
cases. If you use a case-grounded sensor in a system with a grounded input
amplifier, you set up a large ground loop, creating a source of noise.
Sensor Calibration
Force sensors can drift from their documented sensitivity over time. Calibrating a
force sensor involves determining its actual sensitivity. Use ratio calibration with a
calibrated accelerometer to determine the actual sensitivity of a force sensor.
Microphones
A microphone is a transducer that converts acoustical waves into electrical signals.
The most common instrumentation microphone, a condenser microphone, uses a
capacitive sensing element.
234 ni.com
NI-DAQmx
236 ni.com
NI-DAQmx
illustrates some of the capabilities and limitations of these sensors. Use this table as
a reference for choosing the right sensor for your temperature measurement
application.
The following table lists common platinum RTD types and standards. All of these
RTD types are supported in NI-DAQmx. Notice that there are some shared standards.
The TCR and the Callendar-Van Dusen coefficients are more important than the
standards.
238 ni.com
NI-DAQmx
240 ni.com
NI-DAQmx
Current Excitation
Because RTDs and thermistors are resistive devices, your DAQ system must
provide a current excitation source to measure a voltage across the device.
This current source must be constant and precise.
2-, 3-, and 4-Wire Configurations (RTDs only)
RTDs come in 2-, 3-, and 4-wire configurations. Therefore, your system must
support the type of RTD you choose. Thermistors are typically 2-wire devices
because they have higher resistance characteristics, thus eliminating lead
resistance considerations.
Linearization
Neither RTD nor thermistor output voltage is linear with temperature.
Therefore, your system must perform linearization either in hardware or
software.
Thermocouples
where E is the voltage in millivolts, t90 is the temperature in degrees Celsius, and ci
is the coefficient.
Use the temperature ranges for inverse polynomial coefficients when converting
voltage to temperature. For most thermocouples, the equation for converting
voltage to temperature is the following:
where t90 is the temperature in degrees Celsius, E is the voltage in millivolts, and Di
is the coefficient.
242 ni.com
NI-DAQmx
Filtering
A thermocouple can act much like an antenna, making it very susceptible to
noise from nearby 50/60 Hz power sources. Therefore, apply a 2 Hz or 4 Hz
lowpass filter to your thermocouple signal to remove power line noise.
Linearization
The output voltage of a thermocouple is not linear with temperature.
Therefore, your system must perform linearization either through hardware or
software.
LVDTs
LVDTs operate on the principle of a transformer and consist of a stationary coil
assembly and a moveable core. An LVDT measures displacement by associating a
specific signal value for any given position of the core. LVDT signal conditioners
generate a sine wave for the primary output signal and synchronously demodulate
the secondary output signal. The demodulated output is passed through a lowpass
filter to remove high-frequency ripple. The resulting output is a DC voltage
proportional to core displacement. The sign of the DC voltage indicates whether the
displacement is to the left or right.
LVDTs require special electronics designed for the sensor. LVDTs typically have a
delay of approximately 10 ms caused by filtering in the signal conditioner.
LVDTs typically come in 4-wire, or open wire, and 5-wire, or ratiometric wire,
configurations. Wires from the sensor connect to a signal conditioning circuit that
translates the output of the LVDT to a measurable voltage. The method of signal
conditioning used on the signals from the first and second secondaries differentiate
the 4-wire and 5-wire configurations. In the 4-wire configuration, the sensor only
measures the voltage difference between the two secondaries.
The benefit of using a 4-wire configuration is that you require a simpler signal
conditioning system. However, temperature changes can alter the efficiency of the
magnetic induction of the LVDT. Because the 4-wire scheme is also sensitive to
phase changes between the primary and the resulting secondary voltage, long wires
or a poor excitation source also can cause problems.
The 5-wire configuration is less sensitive to both temperature changes and phase
differences between the primary and the secondaries. The device determines phase
information at the signal conditioning circuitry without needing to reference the
244 ni.com
NI-DAQmx
phase of the primary excitation source. Therefore, you can use longer wires between
the LVDT and the signal conditioning circuitry.
LVDTs are extremely rugged, operate over wide temperature ranges, and are
insensitive to moisture and dirt. LVDTs are a preferred sensor in harsh environments,
where very long life is needed because there are no moving parts in contact or
where very low friction is required. Also, LVDT technology lends itself well to
applications requiring accurate measurements less than 0.1 in., such as measuring
the thickness of sheet material. The main advantage of the LVDT transducer over
other types of displacement transducer is the high degree of robustness. Because
there is no physical contact across the sensing element, there is no wear in the
sensing element.
Because the device relies on the coupling of magnetic flux, an LVDT can have infinite
resolution. Therefore, suitable signal conditioning hardware can detect the smallest
fraction of movement, and only the resolution of the data acquisition system
determines the resolution of the transducer.
RVDTs
RVDTs are the rotational version of LVDTs and generally operate over an angular
range of ±30°–70°. They are available in servo-mount and can rotate through 360°
without stopping.
RVDTs require special electronics designed for the sensor. RVDTs typically have a
delay of 10 ms caused by required filtering in the signal conditioner. They are
extremely rugged and operate over wide temperature ranges. In environments
characterized by extremes in temperature and shock, an RVDT is the clear choice for
rotational applications when you need more than 70° of measurement range.
Transducer Electronic Data Sheets (TEDS)
IEEE P1451.4 is an emerging standard for adding plug and play capabilities to
analog transducers. The underlying mechanism for plug and play identification is
the standardization of a Transducer Electronic Data Sheet (TEDS). A TEDS contains
the critical information needed by a device or measurement system to identify,
characterize, interface, and properly use signals from an analog sensor. That
information includes the sensor's model number, model ID, calibration constants,
scaling constants, and more.
Control Overview
In a typical control application, there are one or more process variables that you
want to control, such as temperature. Sensors measure the process variable in the
dynamic system and provide the data to the control application. The set point is the
value you want for the process variable. A comparator determines if a difference
246 ni.com
NI-DAQmx
exists between the process variable and the set point. If a difference exists and if the
control system deems the difference large enough, the compensator processes the
data and determines the desired actuator output to drive the system closer to the
set point.
and operations may finish much later or earlier than expected. In other words, real-
time systems are deterministic, which guarantees that operations occur within a
given time. Real-time systems are predictable.
For a system to be a real-time system, all parts of it need to be real time. For
instance, even though a program runs in a real-time operating system, it does not
mean that the program behaves with real-time characteristics. The program may
rely on something that does not behave in real-time such as file I/O, which then
causes the program to not behave in real-time.
Loop Cycle Time
Many applications that require a real-time operating system are cyclic, such as a
control application. The time between the start and finish of each cycle, T, is called
the loop cycle time (or sample period). 1/T is the loop rate or sample rate. Even with
real-time operating systems, the loop cycle time can vary between cycles, but will
not be greater than the maximum jitter.
Jitter Overview for Control Applications
For control applications, the amount of time that the loop cycle time varies from the
desired time is called jitter. The maximum amount that a loop cycle time varies from
the desired loop cycle time is called maximum jitter.
248 ni.com
NI-DAQmx
In real-time systems, jitter is bounded. For instance, air bags must deploy within
fractions of a second after a critical impact and are thus bound to a maximum jitter.
In non-real-time systems, jitter is unbounded—or very large. Waiting for a bus is an
example. Suppose that according to the schedule, the bus is supposed to arrive at
11:00 a.m. but actually arrives at 11:05 a.m. one day, 11:30 a.m. the next day, and
has a flat tire the day after that. There is no bound on how late the bus could arrive.
Event Response
Event response applications require a response to a stimulus in a determined
amount of time. An example is monitoring the temperature of an engine. When the
temperature rises too high, the engine is slowed down. The event, in this case, is the
temperature rising above a predetermined level, and the response is the engine
slowing down. Another example comes from manufacturing. In a manufacturing
line, a system senses when a part is in front of a station (the event) and takes a
reading or manipulates the part (the response). If the system does not sense and
respond to the presence of that part in a set amount of time, the manufacturing line
creates defective parts.
Common Applications
Acceleration
Frequency (Analog)
Angular Displacement
Control
Counting Edges
Current Generation
Current Measurement
Digital Value Generation
Digital Value Measurement
Duty Cycle
Force
Frequency (Digital)
Generic Programming Flowcharts
GPS Timestamp
Linear Displacement
Period (Digital)
Pressure
Proximity
Pulse Generation
Pulse Width
Resistance
Semi-Period (Digital)
Sound Pressure
250 ni.com
NI-DAQmx
Strain
Torque
Temperature
Two-Edge Separation
Velocity
Voltage Generation
Voltage Measurement
Measuring Acceleration
Acceleration is a change in velocity with respect to time. An accelerometer is a
transducer that represents acceleration as a voltage. Accelerometers also can
measure vibration and shock. Accelerometers typically convert acceleration
measured in g's to voltage. For example, a sensor with a rated output of 10 mV/g
should produce 50 mV when subjected to 5 g of acceleration.
Making Signal Connections
Creating a Program
Examples
Measuring Acceleration Programming Flowchart
The following flowchart depicts the main steps required in an NI-DAQmx application
to measure acceleration. Alternatively, you can configure a task for measuring
acceleration using the DAQ Assistant.
252 ni.com
NI-DAQmx
level, a trigger occurs. A pulse generator uses these triggers and produces a pulse
once every frequency cycle. The input frequency range sets the width of this pulse.
As the input frequency range increases, the pulse width grows smaller. This pulse
train is then converted to a DC signal that has a level proportional to the duty cycle
of the pulse train. The duty cycle is the fraction of a period of the pulse train when
the pulse is occurring. The DC signal has a voltage that is proportional to the input
frequency and can therefore be scaled to that frequency value.
For devices that cannot measure frequency directly, you need to use software
algorithms, such as the Fast Fourier Transform (FFT), to convert voltage to
frequency. LabVIEW Full and Professional Development Systems contains advanced
analysis VIs that handle these transformations. The LabWindows™/CVI™ full
development system also contains advanced analysis functions to help you
measure analog frequency. Regardless of whether you use existing VIs or functions
or create your own, you need to sample at least twice as fast as the highest
frequency component in the signal you are acquiring.
The Nyquist frequency is the bandwidth of the sampled signal and is equal to half
the sampling frequency. Frequency components below the Nyquist frequency
appear normally. Frequency components above the Nyquist frequency appear
aliased between 0 and the Nyquist frequency. The aliased component is the
absolute value of the difference between the actual component and the closest
integer multiple of the sampling rate. For example, if you have a signal with a
component at 800 Hz and you sample at 500 S/s, that component appears aliased at
200 Hz because |800–(2 x 500)| = 200(Hz).
One way to eliminate aliased components is to use an analog hardware filter before
you digitize and analyze the frequency information. If you want to perform all the
filtering in software, you must first sample at a rate fast enough to correctly
represent the highest frequency component the signal contains. For example, with
the highest component at 800 Hz, the minimum sampling rate is 1,600 Hz, but you
should sample 5 to 10 times faster than 800 Hz. If the frequency you want to
measure is around 100 Hz, you can use a lowpass Butterworth filter with a cutoff
frequency (fc) of 250 Hz to filter out frequencies above 250 Hz and pass frequencies
below 250 Hz.
Lowpass Filter
The Ideal Filter in the figure is optimal. All frequencies above the Nyquist frequency
are rejected. The Real Filter in the figure is what you might actually be able to
254 ni.com
NI-DAQmx
256 ni.com
NI-DAQmx
The counter measures the position of the encoder using the A and B signals, which
are offset by 90°. The counter also supports the Z index, which provides a precise
reference point and is available on some encoders.
Making Signal Connections
Creating a Program
RVDT Programming Flowchart
Encoder Programming Flowchart
Examples
Measuring Position with Encoders Programming Flowchart
The following flowchart depicts the main steps you must complete for measuring
position with an encoder in an NI-DAQmx application. If you prefer, you can
configure a task using the DAQ Assistant.
258 ni.com
NI-DAQmx
Control
You can create an event response or control loop application in any operating
system supported by NI-DAQmx. However, your application can only be
deterministic if you have the LabVIEW Real-Time module and use your application
on a real-time controller. This section assumes that you are using LabVIEW with NI-
DAQmx to create a control application. It does not assume that you have the
LabVIEW Real-Time module or the real-time controller.
Event Response
In a control application, an event is the same as an occurrence. This occurrence
leads to an action, or a response. An example is monitoring the temperature of an
engine. When the temperature rises too high, the engine slows down. The event, in
this case, would be the temperature rising above a predetermined level, and the
response would be the engine slowing down. Another example comes from
manufacturing. In a manufacturing line, a system senses when a part is in front of a
station (the event) and takes a reading or manipulates the part (the response). If the
system does not sense and respond to the presence of that part in a set amount of
time, the manufacturing line creates defective parts.
When creating an event response application, make sure you consider the amount
of time needed to respond to the event. For example, if the device controls the
temperature of your home, the time to react to events (changes in temperature) is
less critical than if the device controls a nuclear reactor. If the application is not time
critical, the application does not need to be deterministic, meaning that you do not
need the LabVIEW Real-Time Module or a real-time controller.
The relative priority of the task is important as well. Because LabVIEW is multi-
threaded, you can separate the application into tasks, each with its own priority. By
setting priorities, time-critical tasks can take precedence over non-time-critical
tasks. The time-critical task must periodically yield processor resources to the
lower-priority tasks so they can execute. By properly separating the time-critical
task from lower priority tasks, you can reduce application jitter. Refer to the
LabVIEW Real-Time Module Concepts book in the LabVIEW Help for more
information about assigning priorities to tasks.
Examples
See Also
260 ni.com
NI-DAQmx
Examples
See Also
Timing Control Loops
Key Control Concepts
Setting Priorities for Control Applications
Edge Counting
Edge counting is when a device counts rising or falling edges using a counter
channel. You can choose to do either single point or buffered sample clock edge
counting.
The following figure shows an example of edge counting in which the counter in a
device counts five edges on the input terminal.
With buffered edge counting, the device latches the number of edges counted onto
each active edge of the sample clock and stores the number in the buffer. There is
no built-in clock for buffered edge counting, so you must supply an external sample
clock.
In NI-DAQmx, when doing on-demand edge counting, you first arm the counter by
calling the Start function/VI. Each subsequent read returns the number of edges
counted since the counter was started. If you perform multiple reads without first
starting the counter, the counter implicitly starts and stops with each Read
262 ni.com
NI-DAQmx
function/VI call, and the number of counted edges is not cumulative between read
calls.
On devices that support gate configuration along with timing engine pause
triggering, use the CI.CountEdges.Gate.Enable attribute/property to enable gate
functionality.
With the exception of the NI 9361, you also can pause counting with on-demand
edge counting in NI-DAQmx by configuring a pause trigger. To configure a pause
trigger, use the trigger attributes/properties to set the source terminal of the digital
trigger as well as the level on which to pause.
Making Signal Connections
Creating a Program
Examples
Edge Counting Programming Flowchart
The following flowchart depicts the main steps you must complete for counting
edges in an NI-DAQmx application. If you prefer, you can configure a task for
counting edges using the DAQ Assistant.
Measuring Charge
Electrical charge is a fundamental property of matter. Charge is a measurement of
the net effect of protons and electrons being unequally distributed. Piezoelectric
transducers produce a charge from physical stress, deformation, acceleration, or
force. Charge is measured in coulombs.
Making Signal Connections
Creating a Program
Examples
Measuring Charge Programming Flowchart
The following flowchart depicts the main steps required in an NI-DAQmx application
to measure charge. Alternatively, you can configure a task for measuring charge
using the DAQ Assistant.
264 ni.com
NI-DAQmx
4 to 20 mA Loops
4 to 20 milliamp (4-20 mA) loops are commonly used in measurement systems. 4-20
mA loops couple a dynamic range with a live zero of 4 mA for open circuit detection
in a system that does not produce sparks. Other advantages include a variety of
compatible hardware, a long operating range, and low cost. 4-20 mA loops have a
variety of uses, including digital communications, control applications, and reading
remote sensors.
The purpose of the 4-20 mA current loop is for the sensor to transmit a signal in the
form of a current. In the following figure, the Level Sensor and Remote Sensor
Electronics are typically built into a single unit. An external 24 VDC supply powers
the sensor. The sensor regulates the current, which represents the value of what the
sensor measures, in this case, the fluid level in a tank.
266 ni.com
NI-DAQmx
Creating a Program
Measuring Current
Generating Current
Examples
See Also
Tips on Measuring AC Current
Generating Current Programming Flowchart
The following flowchart illustrates the main steps required in an NI-DAQmx
application to generate current. Alternatively, you can configure a task for
generating current using the DAQ Assistant.
4 to 20 mA Loops
4 to 20 milliamp (4-20 mA) loops are commonly used in measurement systems. 4-20
mA loops couple a dynamic range with a live zero of 4 mA for open circuit detection
in a system that does not produce sparks. Other advantages include a variety of
compatible hardware, a long operating range, and low cost. 4-20 mA loops have a
variety of uses, including digital communications, control applications, and reading
remote sensors.
The purpose of the 4-20 mA current loop is for the sensor to transmit a signal in the
form of a current. In the following figure, the Level Sensor and Remote Sensor
Electronics are typically built into a single unit. An external 24 VDC supply powers
the sensor. The sensor regulates the current, which represents the value of what the
sensor measures, in this case, the fluid level in a tank.
268 ni.com
NI-DAQmx
270 ni.com
NI-DAQmx
272 ni.com
NI-DAQmx
The following flowchart depicts the main steps required in an NI-DAQmx application
to measure digital values. If you prefer, you can configure a task for acquiring digital
values using the DAQ Assistant.
Creating a Program
Measuring Pulses Programming Flowchart
Measuring Pulses Programming Flowchart
The following flowchart depicts the main steps required in an NI-DAQmx application
to measure the frequency/duty cycle, high/low ticks, or high/low time of digital
pulses. Alternatively, you can configure a task for measuring digital pulses using the
DAQ Assistant.
274 ni.com
NI-DAQmx
Measuring Force
Force is an influence that changes the motion, size, or shape of an object. Many
types of sensors exist for measuring force. Some are piezoelectric sensors, typically
used for dynamic force measurements, such as impact testing. Others are bridge-
based sensors, typically used for measuring static or slow-changing loads.
276 ni.com
NI-DAQmx
The following flowchart depicts the main steps required in an NI-DAQmx application
to measure force with a piezoelectric force sensor. Alternatively, you can configure a
task for measuring force using the DAQ Assistant.
The digital frequency of a signal is the inverse of the period of a signal. To get the
frequency of the signal, take the inverse of the period. The formula for frequency is
Frequency (in Hz) = Counter Timebase Rate (in Hz) / Count.
The Counter Timebase Rate is a known frequency and is usually a built-in time
source. If the counter timebase rate is unknown, you only can make measurements
only in terms of ticks of the counter timebase. This may be the case if you are using
an external signal for the counter timebase, and the frequency of the external signal
is unknown or aperiodic.
Digital frequency is an example of a time measurement. Refer to Configuring a Time
Measurement in NI-DAQmx and Two Counter Measurement Method for more
information about measuring time.
Making Signal Connections
Creating a Program
Examples
Measuring Pulses Programming Flowchart
The following flowchart depicts the main steps required in an NI-DAQmx application
to measure the frequency/duty cycle, high/low ticks, or high/low time of digital
pulses. Alternatively, you can configure a task for measuring digital pulses using the
DAQ Assistant.
278 ni.com
NI-DAQmx
function/VI to arm the counter. In LabVIEW, clearing occurs automatically. For other
ADEs, you must include these functions in your application.
Functions and VIs produce the core functionality of the NI-DAQmx API. For instance,
NI-DAQmx includes functions for timing, triggering, reading, and writing samples.
However, for advanced functionality, Visual C++, Visual C#, Visual Basic .NET, and
LabVIEW require properties. ANSI C and LabWindows/CVI employ the Get and Set
Attribute functions. For more information, refer to the programming reference help
for your ADE.
280 ni.com
NI-DAQmx
With NI-DAQmx, you also can gather data from multiple channels. For instance, you
might want to monitor the fluid level in the tank as well as the temperature. In this
case, you need two transducers connected to two channels on your device. The
following flowchart depicts the steps to programmatically create a single sample
analog input application. If you prefer, you can configure a task for acquiring a
single sample using the DAQ Assistant.
282 ni.com
NI-DAQmx
284 ni.com
NI-DAQmx
LabVIEW require properties. ANSI C and LabWindows/CVI employ the Get and Set
Attribute functions. For more information, refer to the programming reference help
for your ADE.
286 ni.com
NI-DAQmx
However, for advanced functionality, Visual C++, Visual C#, Visual Basic .NET, and
LabVIEW require properties. ANSI C and LabWindows/CVI employ the Get and Set
Attribute functions. For more information, refer to the programming reference help
for your ADE.
288 ni.com
NI-DAQmx
The following flowchart depicts the main steps you must complete for finite counter
input in an NI-DAQmx application. If you prefer, you can configure this task using the
DAQ Assistant.
290 ni.com
NI-DAQmx
However, for advanced functionality, Visual C++, Visual C#, Visual Basic .NET, and
LabVIEW require properties. ANSI C and LabWindows/CVI employ the Get and Set
Attribute functions. For more information, refer to the programming reference help
for your ADE.
292 ni.com
NI-DAQmx
294 ni.com
NI-DAQmx
the Start function/VI to arm the counter. In LabVIEW, clearing occurs automatically.
For other ADEs, you must include these functions in your application.
Functions and VIs provide the core functionality of the NI-DAQmx API. For instance,
NI-DAQmx includes functions for timing, triggering, reading, and writing samples.
However, for advanced functionality, Visual C++, Visual C#, Visual Basic .NET, and
LabVIEW require properties. ANSI C and LabWindows/CVI employ the Get and Set
Attribute functions. For more information, refer to the programming reference help
for your ADE.
296 ni.com
NI-DAQmx
298 ni.com
NI-DAQmx
You can synchronize the GPS timestamp counter to a GPS receiver signal by using a
pulse per second (PPS) or an IRIG-B (timecode TTL) synchronization signal from the
GPS receiver. PPS does not include any timing information; rather, the PPS
accurately reports when the beginning of a second occurs. IRIG-B, on the other
hand, has the time encoded in the signal from the beginning of the current year. The
GPS counter can latch on the current time upon receiving a hardware gate signal.
GPS does not provide year information; however, the time is stored in a 64-bit
floating-point number that can be converted to seconds since January 1 of the
current year.
When doing an on-demand GPS timestamp measurement, you must first arm the
counter by calling the Start function/VI. Each subsequent read returns the number
of seconds counted.
When doing a buffered GPS timestamp measurement, the current time is latched on
each active edge of the sample clock and stored in the buffer. There is no built-in
clock for buffered GPS timestamp measurements, so you must supply an external
sample clock.
Making Signal Connections
Creating a Program
Examples
GPS Timestamp Programming Flowchart
The following flowchart depicts the main steps required in an NI-DAQmx application
to take a GPS timestamp measurement with an NI PXI-6608.
300 ni.com
NI-DAQmx
302 ni.com
NI-DAQmx
The formula for period, semi-period, pulse width, and two-edge separation is as
follows:
Period, Semi-Period, Pulse Width, or Two-Edge Separation (in seconds) = Count /
Counter Timebase Rate (in Hz).
304 ni.com
NI-DAQmx
where Count is the number of counter timebase ticks that elapse during one period,
semi-period, pulse width, or two-edge separation of the measured input signal or
signals.
The Counter Timebase Rate is a known frequency and is usually a built-in time
source. If the counter timebase rate is unknown, you only can make measurements
only in terms of ticks of the counter timebase. This may be the case if you are using
an external signal for the counter timebase, and the frequency of the external signal
is unknown or aperiodic.
Period, semi-period, pulse width, and two-edge separation are examples of time
measurements. Refer to Configuring a Time Measurement in NI-DAQmx and Two
Counter Measurement Method for more information about measuring time.
Making Signal Connections
Creating a Program
Measuring Semi-Period, Two-Edge Separation, and Pulse Width Programming
Flowchart
Measuring Digital Frequency and Period Programming Flowchart
Measuring Pulses Programming Flowchart
Examples
Measuring Pulses Programming Flowchart
The following flowchart depicts the main steps required in an NI-DAQmx application
to measure the frequency/duty cycle, high/low ticks, or high/low time of digital
pulses. Alternatively, you can configure a task for measuring digital pulses using the
DAQ Assistant.
306 ni.com
NI-DAQmx
Measuring Pressure
Pressure is a measure of force per unit area. You can use bridge-based sensors to
measure pressure.
Making Signal Connections
Creating a Program
Examples
Measuring Pressure Programming Flowchart
The following flowchart depicts the main steps required in an NI-DAQmx application
to measure pressure. Alternatively, you can configure a task for measuring pressure
using the DAQ Assistant.
Measuring Proximity
Proximity is the distance between two objects. An eddy current proximity probe is a
transducer that uses changes in voltage to measure proximity. Eddy current
proximity probes use a high-frequency radio signal to convert voltage to a proximity
measurement. Measurements are recorded as milimeters, microns, mVolts/mil and
Volts/mil where a mil is 1/1000 of an inch.
Making Signal Connections
Creating a Program
Examples
Measuring Proximity Programming Flowchart
The following flowchart depicts the main steps required in an NI-DAQmx application
to measure proximity using an eddy current proximity probe. Alternatively, you can
configure a task for measuring proximity using the DAQ Assistant.
308 ni.com
NI-DAQmx
Generating Pulses
A pulse is a rapid change in the amplitude of a signal from its idle value to an active
value for a short period of time. Pulses can have high or low idle states. A pulse with
a low idle state starts at the low value (typically zero), pulses high, and returns to
low. A pulse with a high idle state starts high, pulses to low, and returns to high.
A pulse train is more than one pulse. You can use a pulse or pulse train as a clock
signal, a gate, or a trigger for a measurement or a pulse generation. You can use a
single pulse of known duration to determine an unknown signal frequency or to
trigger an analog acquisition. You can use a pulse train of known frequency to
determine an unknown pulse width.
Each pulse or pulse train consists of three parts:
■ Initial Delay—The amount of time the output remains at the idle state
before generating the pulse. The idle state always replaces high time or low
time for the first pulse of a generation, depending on the idle state.
The pairing of high time and low time pair is a pulse specification.
The period of the pulse is the sum of the high time and the low time. The frequency
is the reciprocal of the period, 1/period.
The following illustration shows the parts of a pulse.
Before you generate a pulse, you need to determine if you want to output the pulse
or pulse train in terms of frequency, time, or number of ticks of the counter
timebase. For frequency, you need to determine the duty cycle. For time, you
specify the high time and the low time. Use the number of ticks if you are using a
counter timebase with an unknown rate. When you configure a pulse generation,
the output appears at the counter output terminal.
Making Signal Connections
Creating a Program
Generating a Pulse
Generating a Finite Pulse Train
310 ni.com
NI-DAQmx
312 ni.com
NI-DAQmx
The formula for period, semi-period, pulse width, and two-edge separation is as
follows:
Period, Semi-Period, Pulse Width, or Two-Edge Separation (in seconds) = Count /
Counter Timebase Rate (in Hz).
where Count is the number of counter timebase ticks that elapse during one period,
semi-period, pulse width, or two-edge separation of the measured input signal or
signals.
The Counter Timebase Rate is a known frequency and is usually a built-in time
source. If the counter timebase rate is unknown, you only can make measurements
only in terms of ticks of the counter timebase. This may be the case if you are using
an external signal for the counter timebase, and the frequency of the external signal
is unknown or aperiodic.
Period, semi-period, pulse width, and two-edge separation are examples of time
measurements. Refer to Configuring a Time Measurement in NI-DAQmx and Two
Counter Measurement Method for more information about measuring time.
Making Signal Connections
Creating a Program
Measuring Semi-Period, Two-Edge Separation, and Pulse Width Programming
Flowchart
Measuring Digital Frequency and Period Programming Flowchart
Measuring Pulses Programming Flowchart
Examples
314 ni.com
NI-DAQmx
Measuring Resistance
Resistance is the opposition to passage of an electric current. One Ohm (Ω) is the
resistance through which one volt (V) of electric force causes one ampere (A) to flow.
Two common methods for measuring resistance are the 2-wire method and the 4-
wire method. Both methods send a current through a resistor with a measurement
device measuring the voltage drop from the signal before and after it crosses the
resistor. The 2-wire method is easier to implement, but this method is less accurate
than the 4-wire method for resistances below 100 Ω. For 3-wire resistors, there is
also a 3-wire method. To calculate resistance, use the following equation.
R(Ω) = V(V) / I(A)
where R is the resistance, V is the voltage, and I is the current.
Making Signal Connections
Creating a Program
Examples
Measuring Resistance Programming Flowchart
The following flowchart depicts the main steps required in an NI-DAQmx application
to measure resistance. Alternatively, you can configure a task for measuring
resistance using the DAQ Assistant.
316 ni.com
NI-DAQmx
The formula for period, semi-period, pulse width, and two-edge separation is as
follows:
Period, Semi-Period, Pulse Width, or Two-Edge Separation (in seconds) = Count /
Counter Timebase Rate (in Hz).
where Count is the number of counter timebase ticks that elapse during one period,
semi-period, pulse width, or two-edge separation of the measured input signal or
signals.
The Counter Timebase Rate is a known frequency and is usually a built-in time
source. If the counter timebase rate is unknown, you only can make measurements
only in terms of ticks of the counter timebase. This may be the case if you are using
an external signal for the counter timebase, and the frequency of the external signal
is unknown or aperiodic.
Period, semi-period, pulse width, and two-edge separation are examples of time
measurements. Refer to Configuring a Time Measurement in NI-DAQmx and Two
Counter Measurement Method for more information about measuring time.
Making Signal Connections
Creating a Program
Measuring Semi-Period, Two-Edge Separation, and Pulse Width Programming
Flowchart
Measuring Digital Frequency and Period Programming Flowchart
Measuring Pulses Programming Flowchart
Examples
Measuring Pulses Programming Flowchart
The following flowchart depicts the main steps required in an NI-DAQmx application
to measure the frequency/duty cycle, high/low ticks, or high/low time of digital
pulses. Alternatively, you can configure a task for measuring digital pulses using the
DAQ Assistant.
318 ni.com
NI-DAQmx
320 ni.com
NI-DAQmx
Measuring Strain
Strain (ε) is the amount of deformation of a body due to an applied force.
Specifically, strain is the fractional change in length, as shown in the following
figure.
322 ni.com
NI-DAQmx
Measuring Torque
Torque is a measure of the tendency of a force to rotate an object. Torque is the
cross product of a force and the distance of the force from the fulcrum. You can use
bridge-based sensors to measure torque.
Making Signal Connections
Creating a Program
Examples
Measuring Torque Programming Flowchart
The following flowchart depicts the main steps required in an NI-DAQmx application
to measure torque. Alternatively, you can configure a task for measuring torque
using the DAQ Assistant.
324 ni.com
NI-DAQmx
Measuring Temperature
Note Temperature measurements may require
you to condition the signal. The conditioning
requirements depend on your sensor. Refer to
The typical wiring for a thermocouple, as shown in the following figure, uses a
resistor, R, only if the thermocouple is not grounded at any other point. If, for
example, the thermocouple tip were already grounded, using a resistor would cause
a ground loop and result in erroneous readings.
You also can measure temperature using Resistance Temperature Detectors (RTD)
and Thermistors.
Making Signal Connections
Creating a Program
RTD
Thermistor
326 ni.com
NI-DAQmx
Thermocouple
Examples
Measuring Temperature with an RTD Programming Flowchart
The following flowchart depicts the main steps required in an NI-DAQmx application
to measure temperature with an RTD. Alternatively, you can configure a task for
measuring temperature using the DAQ Assistant.
328 ni.com
NI-DAQmx
The formula for period, semi-period, pulse width, and two-edge separation is as
follows:
Period, Semi-Period, Pulse Width, or Two-Edge Separation (in seconds) = Count /
Counter Timebase Rate (in Hz).
where Count is the number of counter timebase ticks that elapse during one period,
semi-period, pulse width, or two-edge separation of the measured input signal or
signals.
330 ni.com
NI-DAQmx
The Counter Timebase Rate is a known frequency and is usually a built-in time
source. If the counter timebase rate is unknown, you only can make measurements
only in terms of ticks of the counter timebase. This may be the case if you are using
an external signal for the counter timebase, and the frequency of the external signal
is unknown or aperiodic.
Period, semi-period, pulse width, and two-edge separation are examples of time
measurements. Refer to Configuring a Time Measurement in NI-DAQmx and Two
Counter Measurement Method for more information about measuring time.
Making Signal Connections
Creating a Program
Measuring Semi-Period, Two-Edge Separation, and Pulse Width Programming
Flowchart
Measuring Digital Frequency and Period Programming Flowchart
Measuring Pulses Programming Flowchart
Examples
Measuring Semi-Period, Two-Edge Separation, and Pulse Width
Programming Flowchart
The following flowchart demonstrates the main steps required in an NI-DAQmx
application to measure semi-period and pulse width. Alternatively, you can
configure a task for measuring semi-period and pulse width using the DAQ Assistant.
Measuring Velocity
Velocity is the rate of change in position with respect to time.
Measuring Velocity with an IEPE Velocity Transducer
Measuring Linear Velocity (Encoder)
Measuring Angular Velocity (Encoder)
Measuring Velocity with an IEPE Velocity Transducer
A velocity transducer is an IEPE sensor that converts velocity to voltage. Velocity
transducers are typically used to measure vibration.
Making Signal Connections
Creating a Program
332 ni.com
NI-DAQmx
Examples
Measuring Velocity Programming Flowchart
The following flowchart depicts the main steps required in an NI-DAQmx application
to measure velocity with a piezoelectric sensor. Alternatively, you can configure a
task for measuring velocity using the DAQ Assistant.
On devices that support it, you can use the counters to perform velocity
measurements with encoders. An encoder is a device that converts linear or rotary
displacement into digital or pulse signals. Angular velocity can be measured with
X1, X2, and X4 quadrature encoders. You can choose to do either single-point (on-
demand) velocity measurement or buffered (sample clock) velocity measurement.
The counter measures the velocity of the encoder using the A and B signals, which
are offset by 90°. The velocity is calculated using the A and B input signal transitions
and the amount of time that elapses between the changes in the encoder count
value.
The decoding type attribute/property specifies how to count and interpret the
pulses the encoder generates on signal A and signal B.
Measuring Linear Velocity (Encoder)
On devices that support it, you can use the counters to perform velocity
measurements with encoders. An encoder is a device that converts linear or rotary
displacement into digital or pulse signals. Linear velocity can be measured with X1,
X2, and X4 quadrature encoders. You can choose to do either single-point (on-
demand) velocity measurement or buffered (sample clock) velocity measurement.
The counter measures the velocity of the encoder using the A and B signals, which
are offset by 90°. The velocity is calculated using the A and B input signal transitions
and the amount of time that elapses between the changes in the encoder count
value.
The pulse in the distance per pulse attribute/property is one full period of both
signal A and signal B in the units specified by the length portion of the Units input.
The decoding type attribute/property specifies how to count and interpret the
pulses the encoder generates on signal A and signal B.
Generating Voltage
You can generate single sample DC signals or time-varying multiple sample signals.
334 ni.com
NI-DAQmx
signal. You can use software or hardware timing if the device supports hardware
timing to control when the device generates a signal.
Measuring Voltage
Most measurement devices can measure, or read, voltage. Two common voltage
measurements are direct current (DC) and alternating current (AC).
336 ni.com
NI-DAQmx
Measuring DC Voltage
DC voltage is useful for measuring phenomena that change slowly with time, such
as temperature, pressure, or strain. With DC signals, you want to accurately measure
the amplitude of a signal at a given point in time.
Averaging
Averaging can improve measurement accuracy for noisy and rapidly changing
signals.
The following figure shows what an actual wind speed might look like over time.
Due to gusting winds, the speed values look noisy. Notice that the wind speed
reading of 29 mph is a peak speed that might give the impression that the wind is
holding at 29 mph. A better representation might be to take the average speed over
a short period of time.
One common reason for averaging is to eliminate 50 or 60 Hz power line noise. The
oscillating magnetic field around power lines can introduce noise voltages on
unshielded transducer wiring. Because power line noise is sinusoidal, or shaped like
a sine wave, the average over one period is zero. If you use a scan rate that is an
integer multiple of the noise and average data for an integer multiple of periods, you
can eliminate the line noise. One example that works for both 50 and 60 Hz is to
sample at 300 samples per second and average 30 points. Notice that 300 is an
integer multiple of both 50 and 60. One period of the 50 Hz noise is 300/50 = 6
points. One period of the 60 Hz noise is 300/60 = 5 points. Averaging 30 points is an
integer multiple of both periods, so you can ensure that you average whole periods.
Measuring AC Voltage
AC voltage is a waveform that constantly increases, decreases, and reverses polarity.
AC voltage is common in household, lab, and industrial devices because most power
lines deliver AC voltage. You can measure AC voltages to determine the maximum,
minimum, and peak-to-peak values of a signal. The peak-to-peak value of a signal is
the maximum voltage swing, from maximum to minimum.
338 ni.com
NI-DAQmx
Creating a Program
Examples
Measuring Voltage Programming Flowchart
The following flowchart depicts the main steps required in an NI-DAQmx application
to measure voltage. Alternatively, you can configure a task for measuring voltage
using the DAQ Assistant.
Analog Triggering
This section contains information about analog triggering for C Series, NI ELVIS II
Family, DSA, E Series, M Series, S Series, and SC Express devices.
Valid Analog Trigger Sources for DSA Devices
The analog trigger source must be a channel included in your physical channel list.
PFI 0 is not a valid analog trigger source. PFI 0 is reserved for digital triggers.
Analog Triggering Considerations for TestScale Modules and C
Series, E Series, M Series, and S Series Devices
Note: Not all E Series, M Series, S Series, and C
Series devices support analog triggering. Refer
to the specifications for your device to
determine if your device supports analog
triggering.
Certain C Series, E Series, M Series, S Series devices and TestScale modules contain
a single analog trigger circuit that you can configure for analog triggering. The
analog trigger circuitry is a shared resource for the device, and any of the
subsystems can use it. This trigger circuitry supports level and slope triggering with
hysteresis as well as analog window triggering. After it is configured, the output of
this circuitry appears as the Analog Comparison Event, which can be the source for
340 ni.com
NI-DAQmx
various triggers and clocks within the analog input, analog output, and counter
subsystems.
342 ni.com
NI-DAQmx
in the channel list. If you have more than one channel for Pause or Reference
Triggers, you must use APFI 0 or APFI 1.
■ Scaling with APFI 0, APFI 1, and Analog Input Channels
Scaling, including custom scales, is not applied if APFI 0 or APFI 1 is the trigger
source. For instance, you would specify the DAQmx Trigger Analog Edge Level
attribute/property in volts. However, if you use an analog input channel as the
trigger source, you could use scaled units.
multiple NI 9205 devices. All analog triggers on the same device must share the
same configuration settings.
The NI 9775 can only use an analog trigger that is an active channel. See NI 9775
Considerations for further restrictions on analog trigger usage. When you use a
trigger with the NI 9775 in Analog Multi Edge, all of the trigger channels must come
from the same device. When using multiple NI 9775 modules, those modules can
be in the same task as long as the trigger source comes from one of the NI 9775
modules.
Triggering Considerations for NI ELVIS II Family Devices
On NI ELVIS II Family devices, APFI 0 and APFI 1 are not valid analog trigger sources.
When using a Reference Trigger, supported trigger types are analog edge, analog
window, and digital edge. When using a Start Trigger, digital edge is the only
supported trigger type. Valid digital trigger sources are PFI 15 and SYNC terminals.
NI ELVIS II+ also supports analog reference triggering with multiple channels for
oscilloscope channels.
Analog Triggering Considerations for SC Express Devices
Analog triggering on SC Express devices uses one of the device's ADCs to sample the
trigger signal. If the frequency of the trigger signal is higher than the ADC's Nyquist
frequency (half of the sampling rate), aliasing may prevent triggers from being
detected reliably.
344 ni.com
NI-DAQmx
Analog triggering on SC Express devices supports only Reference Triggers, not Start
and Pause Triggers. Digital triggering on SC Express devices does not have this
restriction.
Note:
■ Calibrating your AO device takes some
time. Do not be alarmed if the Self-
Calibrate or Adjust AO Series Calibration
function/VI takes several seconds to
execute.
■ For best results, stop any ongoing tasks
and disconnect any unnecessary external
connections before running calibration.
NI-DAQmx automatically loads calibration constants into the software whenever you
call functions/VIs that depend on them.
C Series Calibration
Your device uses software calibration to adjust the software scaling of signals read
from and produced by your device. Using a precise reference signal, your device
measures and calculates scaling constants for analog input and analog output. The
scaling constants are stored in nonvolatile memory (EEPROM) on your device. NI
recommends that you calibrate your device just before a measurement session but
after your module has been powered on and warmed up for at least 15 minutes. You
should allow this same warm-up time before performing any calibration of your
system. Frequent calibration produces the most stable and repeatable
measurement performance. The device is not harmed in any way if you recalibrate it
often.
Note:
■ Calibrating your device takes some
time. Do not be alarmed if the Adjust C
Series Calibration function/VI takes
several seconds to execute.
■ For best results, stop any ongoing tasks
and disconnect any unnecessary external
connections before running calibration.
■ The NI 9205 and NI 9206 are calibrated
using the M Series calibration process.
346 ni.com
NI-DAQmx
■ NI DAQPad-6015
■ NI DAQPad-6016
■ NI PCI-6010
■ NI PCI-6013
■ NI PCI-6014
■ NI USB-6000
■ NI USB-6001
■ NI USB-6002
■ NI USB-6003
■ NI USB-6008
■ NI USB-6009
■ SensorDAQ
DSA Calibration
Your device contains digital correction circuitry to compensate for gain and offset
errors in the analog and ADC circuitry. The gain and offset calibration constants are
stored in nonvolatile memory (EEPROM) on your device. NI-DAQmx writes these
calibration constants to the digital correction circuitry.
To achieve the maximum accuracy, you should perform external calibration at least
once per year (the recommended external calibration interval) and perform self-
calibration prior to measurement sessions or otherwise, as desired. You should
calibrate your device only after your computer and the device have been powered
on and warmed up for at least 15 minutes.
Self-Calibration
Self-calibration is executed with the Self Calibrate VI/function. When you self-
calibrate a DSA device, you do not need signal connections. However, for devices
with analog output channels, values generated on those output channels can
change during the calibration process. If you have external equipment connected
to the AO channels and changing the AO voltage could damage the external
equipment, you should disconnect the external equipment before performing the
self-calibration.
External Calibration
External calibration is performed using a customized calibration program and
external test equipment that has itself been calibrated to the required accuracy
or standard. This operation is usually performed by a specialized metrology
laboratory. The equipment and connections required to externally calibrate a device
varies depending on the device category. For devices that support DC coupling,
you need a stable and accurate DC voltage signal to calibrate the AI subsystem.
For devices that support AC coupling, a sinusoidal source may be required for the
calibration procedure instead of the DC source. NI 4461, 4462, 4463, 4464, 4480,
and 4481 devices also include an adjustable frequency timebase. You need a stable
sinusoidal frequency source to calibrate this timebase. The PCI-4461, PXI-4461,
PXIe-4463, and USB-4431 devices also support analog output. You need a digital
multimeter (DMM) to calibrate the AO subsystem. The DC voltage, frequency source,
and DMM can be manually or automatically controlled and switched between
channels, depending on the nature of the customized calibration program.
E Series Calibration
Your device uses hardware calibration to adjust the analog circuitry. This calibration
is done with calibration digital-to-analog converters, called calDACs, that fine-tune
the analog circuitry. The calDACs must be programmed (or loaded) with certain
numbers called calibration constants. Those constants are stored in nonvolatile
memory (EEPROM) on your device or are maintained by NI-DAQmx. NI recommends
that you self-calibrate your device just before a measurement session but after your
348 ni.com
NI-DAQmx
computer and the device have been powered on and warmed up for at least 15
minutes. You should allow this same warm-up time before performing any
calibration of your system. Frequent calibration produces the most stable and
repeatable measurement performance. The device is not harmed in any way if you
recalibrate it often.
Note:
■ Calibrating your MIO or AI device takes
some time. Do not be alarmed if the Self-
Calibrate or Adjust E Series Calibration
function/VI takes several seconds to
execute.
■ For best results, stop any ongoing tasks
and disconnect any unnecessary external
connections before running calibration.
unipolar and bipolar mode in your scan list, NI-DAQmx loads the calibration
constants that correspond to the first channel in the scan list.
■ NI 6025E devices use a single set of calibration constants for both unipolar
and bipolar modes of analog input.
■ One set of constants is valid for unipolar, and another set is valid for
bipolar configuration of the analog output channels. When you change the
polarity of an analog output channel, NI-DAQmx reloads the calibration
constants for that channel.
FieldDAQ Calibration
FieldDAQ devices use software calibration to adjust the software scaling of signals
read from and produced by your device. Using a precise reference signal, your
device measures and calculates scaling constants for analog input. The scaling
constants are stored in nonvolatile memory (EEPROM) on your device. Frequent
calibration produces the most stable and repeatable measurement performance.
The device is not harmed in any way if you recalibrate it often.
Note:
■ Calibrating your device takes some
time. Do not be alarmed if the Adjust
FieldDAQ Calibration function/VI takes
several seconds to execute.
■ For best results, stop any ongoing tasks
and disconnect any unnecessary external
connections before running calibration.
350 ni.com
NI-DAQmx
constants for analog input and analog output. The scaling constants are stored in
nonvolatile memory (EEPROM) on your device. NI recommends that you self-
calibrate your device just before a measurement session but after your computer
and the device have been powered on and warmed up for at least 15 minutes. You
should allow this same warm-up time before performing any calibration of your
system. Frequent calibration produces the most stable and repeatable
measurement performance. The device is not harmed in any way if you recalibrate it
often.
Note:
■ Calibrating your device takes some
time. Do not be alarmed if the Self-
Calibrate or Adjust M Series Calibration
function/VI takes several seconds to
execute.
■ For best results, stop any ongoing tasks
and disconnect any unnecessary external
connections before running calibration.
NI 6154 Calibration
Your device uses software calibration to adjust the software scaling of signals read
from and produced by your device. Using calibration pulse-width modulated (PWM)
sources with a reference voltage, your device measures and calculates scaling
constants for analog input and analog output. The scaling constants are stored in
nonvolatile memory (EEPROM) on your device. NI recommends that you self-
calibrate your device just before a measurement session but after your computer
and the device have been powered on and warmed up for at least 15 minutes. You
should allow this same warm-up time before performing any calibration of your
system. Frequent calibration produces the most stable and repeatable
measurement performance. The device is not harmed in any way if you recalibrate it
often.
Note:
■ Calibrating your device takes some
time. Do not be alarmed if the Self-
Calibrate or Adjust S Series Calibration
NI 6614 Calibration
Only external calibration, not self-calibration, is supported for NI 6614 devices. You
should allow 15 minutes of warm-up time before performing any calibration of your
system. Frequent calibration produces the most stable and repeatable
measurement performance. The device is not harmed in any way if you recalibrate it
often.
Note:
■ Calibrating your device takes some
time. Do not be alarmed if the DAQmx
Adjust TIO Timebase Calibration
function/VI takes several minutes to
execute.
■ For best results, stop any ongoing tasks
and disconnect any unnecessary external
connections before running calibration.
NI PXI-6608 Calibration
You cannot calibrate the PXI-6608 in NI-DAQmx. The device must be calibrated using
the Traditional NI-DAQ (Legacy) driver. To use the NI PXI-6608 in NI-DAQmx after
calibrating it in Traditional NI-DAQ (Legacy), you must do one of the following:
S Series Calibration
352 ni.com
NI-DAQmx
Your device uses hardware calibration to adjust the analog circuitry. This calibration
is done with calibration digital-to-analog converters, called calDACs, that fine-tune
the analog circuitry. The calDACs must be programmed (or loaded) with certain
numbers called calibration constants. Those constants are stored in nonvolatile
memory (EEPROM) on your device or are maintained by NI-DAQmx. NI recommends
that you self-calibrate your device just before a measurement session but after your
computer and the device have been powered on and warmed up for at least 15
minutes. You should allow this same warm-up time before performing any
calibration of your system. Frequent calibration produces the most stable and
repeatable measurement performance. The device is not harmed in any way if you
recalibrate it often.
Note:
■ Calibrating your MIO or AI device takes
some time. Do not be alarmed if the
DAQmx Self-Calibrate or Adjust S Series
Calibration function/VI takes several
seconds to execute.
■ For best results, stop any ongoing tasks
and disconnect any unnecessary external
connections before running calibration.
SC Express Calibration
The NI 4300, NI 4309, NI 4310, and NI 4340 use software calibration to adjust the
software scaling of signals read from and produced by your device. Using onboard
calibration pulse-width modulated (PWM) sources and an external reference
voltage, your device calculates scaling constants for analog input. The scaling
constants are stored in nonvolatile memory (EEPROM) on your device. NI
recommends that you self-calibrate your device just before a measurement session
but after your computer and the device have been powered on and warmed up for
at least 15 minutes. You should allow this same warm-up time before performing
any calibration of your system. Frequent calibration produces the most stable and
repeatable measurement performance. The device is not harmed in any way if you
recalibrate it often.
Note:
Note:
■ Calibrating your device takes some
time. Do not be alarmed if the Self-
Calibrate or Adjust X Series Calibration
354 ni.com
NI-DAQmx
Signal Connections
This section contains information about calibration signal connections for AO
Series, E Series, M Series, NI 6010, NI 6154, S Series, and X Series devices.
Device Calibration Signal Connections for AO Series Devices
When you self-calibrate your AO Series device, no signal connections are necessary.
However, values generated on the analog output channels change during the
calibration process.
When externally calibrating your AO Series device, connect the signals as described
below for the type of AO Series device you are calibrating. Set the reference voltage
between +6.000 V and +9.999 V. Typically, you use a calibrator or other stable voltage
source for the reference voltage. Do not use a power supply as its signals are not
very stable.
Follow these steps for AO Series devices:
1. Connect the positive output of your reference voltage source to the EXT REF
terminal.
2. Connect the negative output of your reference voltage source to the AO GND
terminal.
Device Calibration Signal Connections for E Series Devices
When you self-calibrate your E Series device, no signal connections are necessary.
However, values generated on the analog output channels change during the
calibration process. If you have external circuitry connected to the analog output
channels and you do not want changes on these channels, you should disconnect
the circuitry before beginning the self-calibration.
When externally calibrating your E Series device, connect the signals as described
below for the type of E Series device you are calibrating. Set the reference voltage
between +6.000 V and +9.999 V. Typically, you use a calibrator or other stable voltage
source for the reference voltage. Do not use a power supply as its signals are not
very stable.
356 ni.com
NI-DAQmx
When externally calibrating your S Series device, connect the signals as described
below. Set the reference voltage to the following:
4. If your reference voltage source and your computer are floating with respect
to each other, connect the negative output of your reference voltage source to
the AI GND terminal as well as to physical channel ai8.
Device Calibration Signal Connections for the NI 6154
When you self-calibrate your NI 6154 device, no signal connections are necessary.
However, values generated on the analog output channels change during the
calibration process.
When externally calibrating your NI 6154 device, connect the signals as described
below for the type of device you are calibrating. Set the reference voltage between
+6.0 V and +9.998 V. Typically, you use a calibrator or other stable voltage source for
the reference voltage. Do not use a power supply as its signals are not very stable.
Follow these steps:
358 ni.com
NI-DAQmx
other stable voltage source for the reference voltage. Do not use a power supply as
its signals are not very stable.
Follow these steps:
Counters
This section contains information on counter signal connections and routing
diagrams that illustrate the internal counter routing.
Averaging Support
The following devices support averaging digital frequency and period
measurements:
■ Duty cycle
■ Event counting
■ Encoder position
■ Frequency
■ Period
■ Pulse width
■ Velocity
The NI 9361 has eight counters and supports adding multiple counter channels to
the same task. A single task can have different measurement types. Multiple counter
module channels can be added to the same task.
Note:
■ You cannot mix module and chassis
counters in the same task.
■ You cannot use the chassis counter
through the counter module.
■ You cannot create multiple counter
tasks with a single NI 9361.
■ You cannot have more than two NI 9361
with different timing/triggering
configuration in a single chassis.
360 ni.com
NI-DAQmx
The following table lists the output terminals for counter output. You can use a
different PFI line for any of the output terminals.
Ctr0 Ctr1
PFI 4 PFI 5
The following table lists the output terminals for counter output. You can use a
different PFI line for any of the output terminals.
Ctr0 Ctr1
PFI 12 PFI 13
362 ni.com
NI-DAQmx
The following table lists the output terminals for counter output. You can use a
different PFI line for any of the output terminals.
Ctr0 Ctr1
PFI 4 PFI 5
364 ni.com
NI-DAQmx
NI 9411 (6-Channel)
The following tables list the output terminals for counter output. You can use a
different PFI line for any of the output terminals.
366 ni.com
NI-DAQmx
NI 9361 (8-Counters)
Measure Ctr0 Ctr1 Ctr2 Ctr3 Ctr4 Ctr5 Ctr6 Ctr7
ment
Count ■ E ■ E ■ E ■ E ■ E ■ ■ E ■ E
Edges
dge dge dge dge dge Edg dge dge
s: s: s: s: s: es: s: s:
PFI PFI PFI PFI PFI PFI PFI PFI
0 1 2 3 4 5 6 7
■ C ■ ■ C ■ C ■ ■ C ■ C ■ C
ou Co ou ou Co ou ou ou
nt unt nt nt unt nt nt nt
Dir Dir Dir Dir Dir Dir Dir Dir
ecti ecti ecti ecti ecti ecti ecti ecti
on: on: on: on: on: on: on: on:
PFI PFI PFI PFI PFI PFI PFI PFI
7 6 5 4 3 2 1 0
■ R ■ R ■ R ■ R ■ R ■ R ■ R ■ R
ese ese ese ese ese ese ese ese
t: t: t: t: t: t: t: t:
PFI PFI PFI PFI PFI PFI PFI PFI
4 5 6 7 0 1 2 3
Velocity ■ A ■ A ■ A ■ A ■ A ■ A ■ A ■ A
: : : : : : : :
PFI PFI PFI PFI PFI PFI PFI PFI
0 1 2 3 4 5 6 7
■ B ■ B ■ B ■ B ■ B ■ B ■ B ■ B
: : : : : : : :
PFI PFI PFI PFI PFI PFI PFI PFI
4 5 6 7 0 1 2 3
368 ni.com
NI-DAQmx
the exception of the count direction terminal for edge counting. To change the PFI
input for a measurement, use the NI-DAQmx channel attributes/properties.
Ctr0 Ctr1
CTR 0 OUT CTR 1 OUT
The count direction terminal must be tristated to use an external signal. Reset the
device to ensure the terminal is tristated
myDAQ Signal Connections for Counters
The following table lists the default input terminals for various counter
measurements on myDAQ. You can use a different PFI line for any of the input
terminals. To change the PFI input for a measurement, use the NI-DAQmx channel
attributes/properties.
Measurement Ctr0
Count Edges ■ Edges: PFI 0
■ Count Direction: PFI 2
The following table lists the output terminals for counter output. You can use a
different PFI line for the output terminal.
Ctr0
PFI 3
370 ni.com
NI-DAQmx
The following table lists the output terminals for counter output. You can use a
different PFI line for any of the output terminals.
Ctr0 Ctr1
PFI 12 PFI 13
Measur Ctr0 Ctr1 Ctr2 Ctr3 Ctr4 Ctr5 Ctr6 Ctr7 gpsTim gpsTim
ement estamp estamp
Ctr0 (NI Ctr1 (NI
6608 6608
Only) Only)
Count ■ ■ ■ ■ ■ ■ ■ ■
N/A N/A
Edges
E E E E E E E E
d d d d d d d d
g g g g g g g g
e e e e e e e e
s: s: s: s: s: s: s: s:
P P P P P P P P
FI FI FI FI FI FI FI FI
3 3 3 2 2 1 1 1
9 5 1 7 3 9 5 1
■ ■ ■ ■ ■ ■ ■ ■
C C C C C C C C
o o o o o o o o
u u u u u u u u
n n n n n n n n
t t t t t t t t
D D D D D D D D
ir ir ir ir ir ir ir ir
e e e e e e e e
ct ct ct ct ct ct ct ct
i i i i i i i i
o o o o o o o o
n n n n n n n n
: : : : : : : :
P P P P P P P P
FI FI FI FI FI FI FI FI
3 3 2 2 2 1 1 9
7 3 9 5 1 7 3
Pulse PFI 38 PFI 34 PFI 30 PFI 26 PFI 22 PFI 18 PFI 14 PFI 10 N/A N/A
Width
Measur
ement
Period/ PFI 38 PFI 34 PFI 30 PFI 26 PFI 22 PFI 18 PFI 14 PFI 10 N/A N/A
Freque
ncy
372 ni.com
NI-DAQmx
Measur Ctr0 Ctr1 Ctr2 Ctr3 Ctr4 Ctr5 Ctr6 Ctr7 gpsTim gpsTim
ement estamp estamp
Ctr0 (NI Ctr1 (NI
6608 6608
Only) Only)
Measur
ement
(Low
Freque
ncy
with
One
Counte
r)
Period/ PFI 39 PFI 35 PFI 31 PFI 27 PFI 23 PFI 19 PFI 15 PFI 11 N/A N/A
Freque
ncy
Measur
ement
(High
Freque
ncy
with
Two
Counte
rs)
Period/ PFI 39 PFI 35 PFI 31 PFI 27 PFI 23 PFI 19 PFI 15 PFI 11 N/A N/A
Freque
ncy
Measur
ement
(Large
Range
with
Two
Counte
rs)
Semipe PFI 38 PFI 34 PFI 30 PFI 26 PFI 22 PFI 18 PFI 14 PFI 10 N/A N/A
riod
Measur
ement
Measur Ctr0 Ctr1 Ctr2 Ctr3 Ctr4 Ctr5 Ctr6 Ctr7 gpsTim gpsTim
ement estamp estamp
Ctr0 (NI Ctr1 (NI
6608 6608
Only) Only)
Two- ■ ■ ■ ■ ■ ■ ■ ■
N/A N/A
Edge
S S S S S S S S
Separat
t t t t t t t t
ion
a a a a a a a a
Measur
rt rt rt rt rt rt rt rt
ement
: : : : : : : :
P P P P P P P P
FI FI FI FI FI FI FI FI
3 3 2 2 2 1 1 9
7 3 9 5 1 7 3 ■
■ ■ ■ ■ ■ ■ ■ S
S S S S S S S t
t t t t t t t o
o o o o o o o p
p p p p p p p :
: : : : : : : P
P P P P P P P FI
FI FI FI FI FI FI FI 1
3 3 3 2 2 1 1 0
8 4 0 6 2 8 4
Positio ■ ■ ■ ■ ■ ■ ■ ■
N/A N/A
n
A A A A A A A A
Measur
: : : : : : : :
ement
P P P P P P P P
FI FI FI FI FI FI FI FI
3 3 3 2 2 1 1 1
9 5 1 7 3 9 5 1
■ ■ ■ ■ ■ ■ ■ ■
B B B B B B B B
: : : : : : : :
P P P P P P P P
FI FI FI FI FI FI FI FI
3 3 2 2 2 1 1 9
7 3 9 5 1 7 3
374 ni.com
NI-DAQmx
Measur Ctr0 Ctr1 Ctr2 Ctr3 Ctr4 Ctr5 Ctr6 Ctr7 gpsTim gpsTim
ement estamp estamp
Ctr0 (NI Ctr1 (NI
6608 6608
Only) Only)
■ ■ ■ ■ ■ ■ ■ ■
Z Z Z Z Z Z Z Z
: : : : : : : :
P P P P P P P P
FI FI FI FI FI FI FI FI
3 3 3 2 2 1 1 1
8 4 0 6 2 8 4 0
S S
y y
n n
c c
h h.
. S
S o
o u
u rc
r e:
c P
e: FI
P 7
FI
7
NI 6624 Issues
The eight PFI lines listed as the defaults for counter output are dedicated for output,
and they are the only terminals you can use for counter output. For example, you
can use PFI 8 (the default for Ctr7) as the output terminal for any counter, but you
cannot use it as an input terminal.
When using counter output, if the Idle State attribute/property is low, the
optocouplers on the NI 6624 will still be driving your output load. Set the Idle State
attribute/property to high to prevent driving the output after your task completes.
X Series Signal Connections for Counters
The following table lists the default input terminals for various counter
measurements on X Series devices. You can use a different PFI line for any of the
input terminals. To change the PFI input for a measurement, use the NI-DAQmx
channel attributes/properties.
376 ni.com
NI-DAQmx
The following table lists the output terminals for counter output. You can use a
different PFI line for any of the output terminals.
The following table lists the output terminals for counter output. You can use a
different PFI line for any of the output terminals.
Ctr0 Ctr1
PFI 6 PFI 7
378 ni.com
NI-DAQmx
The following table lists the output terminals for counter output. You can use a
different PFI line for any of the output terminals.
Ctr0 Ctr1
PFI 12 PFI 13
Some M Series devices, including the NI 6010, NI 6154, NI 6221 (37-pin), and NI 623x,
use the 37-pin DSUB connector. These devices have different counter terminal
defaults. Refer to the 37-Pin DSUB Signal Connections for Counters for the default
input terminals on these devices. Bus-powered M Series devices, such as the NI
USB-621x devices, also have different counter terminal defaults. Refer to the Bus-
Powered M Series Signal Connections for Counters for the default input terminals on
these devices.
This section contains routing diagrams that illustrate the internal counter routing
for AO Series, C Series with CompactDAQ chassis, E Series, M Series, S Series, TIO, X
Series, and TestScale devices.
AO Series, E Series, S Series Counter Internal Routing Diagram
The following figure shows the internal routing for DAQ devices with the STC
counter/timer such as E Series devices. The black circles represent terminals.
380 ni.com
NI-DAQmx
382 ni.com
NI-DAQmx
cDAQ-9132, 9133, 9134, 9135, 9136, 9137, 9171, 9174, 9178, 9179, 9181, 9184, 9185,
9188, 9188XT, 9189, and 9191
TS-15000 and TS-15010
NI 661x Counter Internal Routing Diagram
The following figure shows the internal routing for NI 661x devices. The black circles
represent terminals. These devices have eight counters which are paired together.
Only counters 0 and 1 are shown in the illustration, but the remaining pairs
(counters 2 and 3, counters 4 and 5, and counters 6 and 7) are routed identically.
384 ni.com
NI-DAQmx
With C Series, NI ELVIS II Family, and M Series USB devices (except bus-powered M
Series devices), buffered counter input error reporting occurs every 128 samples for
high-speed USB and every 16 samples for full-speed USB. When an error is detected,
the task stops. To prevent the acquisition of incorrect samples, only data within
either the 128- or 16-sample group is reported. For instance, if you attempt to
acquire 256 samples, and an error occurs after sample 250, the task returns 128
samples instead of 249. If you attempt to acquire a number of samples less than or
equal to 128 or 16 and an error occurs, the task returns no samples.
Duplicate Count Prevention
Duplicate count prevention (or synchronous counting mode) ensures that a counter
returns correct data in applications that use a slow or non-periodic external source.
Duplicate count prevention applies to any counter application such as measuring
frequency or period. In such applications, the counter should store the number of
times an external Source pulses between rising edges on the Gate signal.
On the first rising edge of the Gate, the current count of 7 is stored. On the next
rising edge of the Gate, the counter stores a 2 since two Source pulses occurred after
the previous rising edge of Gate.
The counter synchronizes or samples the Gate signal with the Source signal. So the
counter does not detect a rising edge in the Gate until the next Source pulse. In this
example, the counter stores the values in the buffer on the first rising Source edge
after the rising edge of Gate.
386 ni.com
NI-DAQmx
Even if the Source pulses are long, the counter increments only once for each Source
pulse.
Normally, the counter value and Counter n Internal Output signals change
synchronously to the Source signal. With duplicate count prevention, the counter
value and Counter n Internal Output signals change synchronously to the maximum
timebase.
388 ni.com
NI-DAQmx
390 ni.com
NI-DAQmx
digital filters: Digital Filter Enable, Digital Filter Minimum Pulse Width, Digital Filter
Timebase Source, and Digital Filter Timebase Rate.
When you set the Digital Filter Enable to true, you must also configure the Digital
Filter Minimum Pulse Width attribute/property. When you select a filter value
with the Digital Filter Minimum Pulse Width attribute/property, the device uses an
internal 32-bit utility counter to generate the desired filter value. If you would like to
generate the filter clock using your own external signal, you can use the Digital Filter
Timebase Source and Digital Filter Timebase Rate attributes/properties. You must
configure both to use an external signal as the source for the digital filter. The Digital
Filter Minimum Pulse Width attribute/property represents the minimum value that
is guaranteed to be passed into the device. The maximum pulse width guaranteed
to be blocked by the device is one filter clock tick smaller than the minimum pulse
width guaranteed to pass the filter.
The following table lists the attributes/properties for terminals that can be digitally
filtered.
Type Attribute/Property
Channel Frequency Input Terminal
Period Input Terminal
Count Edges Input Terminal
Count Edges Count Direction
Position A Input Terminal
Position B Input Terminal
Position Z Input Terminal
Pulse Input Terminal (Time, Ticks, and
Frequency)
Pulse Width Input Terminal
Two-Edge First Input Terminal
Two-Edge Second Input Terminal
Semi-Period Input Terminal
Counter Input Timebase Source (External Only)
Counter Output Timebase Source (External
Only)
Type Attribute/Property
Timing Sample Clock Source
Triggering Arm Start Digital Edge Source
Pause Analog Level Source
Pause Analog Window Source
Pause Digital Level Source
Reference Analog Edge Source
Reference Analog Window Source
Reference Digital Edge Source
Start Analog Edge Source
Start Analog Window Source
Start Digital Edge Source
Parallel Digital Input Modules for C Series Devices and TestScale Modules
■ NI 9344
■ NI 9401
■ NI 9402
■ NI 9411
■ NI 9421
■ NI 9422
392 ni.com
NI-DAQmx
■ NI 9423
■ NI 9435
■ NI 9436
■ NI 9437
■ TS-15050 DIO P0
Note: The NI 9361 also performs digital filtering,
but its filtering is done on the module rather
than on the chassis. Refer to the NI 9361
Datasheet for more information about its
filtering capabilities.
394 ni.com
NI-DAQmx
Filter Enable, Digital Filter Minimum Pulse Width, Digital Filter Timebase Source, and
Digital Filter Timebase Rate.
When you set the Digital Filter Enable to true, you must also configure the Digital
Filter Minimum Pulse Width attribute/property. This value represents the minimum
value that is guaranteed to pass into the TIO. The minimum pulse width guaranteed
to be blocked is one-half of the Digital Filter Minimum Pulse Width attribute/
property. When you select a custom filter value with the Minimum Pulse Width
attribute/property, NI-DAQmx uses an internal 32-bit utility counter to generate the
desired filter value. If you would like to generate the filter clock using your own
external signal, you can use the Digital Filter Timebase Source and Digital Filter
Timebase Rate attributes/properties. You must configure both to use an external
signal as the source for the digital filter.
You cannot set both Digital Filter Enable and Digital Synchronization Enable to true
at the same time. You can use only one of these digital filtering methods at a time.
The following table lists the counter input terminals that can be digitally filtered.
Type Attribute/Property
Channel Frequency Input Terminal
Period Input Terminal
Count Edges Input Terminal
Count Edges Count Direction
Position A Input Terminal
Position B Input Terminal
Position Z Input Terminal
Pulse Width Input Terminal
Two-Edge First Input Terminal
Two-Edge Second Input Terminal
Semi-Period Input Terminal
Counter Input Timebase Source
Counter Output Timebase Source
Timing Sample Clock Source
Triggering Start Trigger Source
Type Attribute/Property
Pause Trigger Source
Arm Start Trigger Source
■ The skew between them is less than the minimum pulse width of the filter.
■ The lines remain stable for an additional minimum pulse width of the filter.
When using any other signal on the device that supports filtering (excluding port 0),
you can select a custom filter value in addition to the three fixed values mentioned
previously. The custom filter value must be the same for all lines across the device.
For example, if you choose a filter value of 2 µS for PFI 0, any other filterable line on
the device can only choose from the three fixed values and the 2 µs value selected
for the custom filter.
396 ni.com
NI-DAQmx
The following table lists the attributes/properties for terminals that can be digitally
filtered.
Type Attribute/Property
Channel Digital Input Channel
Frequency Input Terminal
Period Input Terminal
Count Edges Input Terminal
Count Edges Count Direction
Position A Input Terminal
Position B Input Terminal
Position Z Input Terminal
Pulse Input Terminal
Pulse Width Input Terminal
Two-Edge First Input Terminal
Two-Edge Second Input Terminal
Semi-Period Input Terminal
Counter Input Timebase Source
Counter Output Timebase Source
Timing Sample Clock Source
AI Convert Clock Source
Triggering Arm Start Trigger Source
Pause Analog Level Source
Pause Analog Window Source
Pause Trigger Source
Reference Analog Edge Source
Reference Analog Window Source
Reference Digital Edge Source
Start Analog Edge Source
Start Analog Window Source
Start Trigger Source
Type Attribute/Property
Timing Sample Clock Source (SampClk.Src)
Triggering Pause Digital Level Source (Pause.DigLvl.Src)
Reference Analog Edge Source
(Ref.AnlgEdge.Src)
Reference Analog Window Source
(Ref.AnlgWin.Src)
Reference Digital Edge Source (Ref.DigEdge.Src)
Start Digital Edge Source (Start.DigEdge.Src)
FieldDAQ Filtering
The FD-11601, FD-11603, FD-11605, FD-11634, and FD-11637 can use filtering to
provide an accurate representation of in-band signals while rejecting out-of-band
signals. The filters discriminate between signals based on the frequency range, or
398 ni.com
NI-DAQmx
Digital I/O
This section contains information specific to DIO devices.
Change Detection
This section contains information about change detection for C Series, DIO, and M
Series devices.
Change Detection Considerations for NI 6527 Devices
The ChangeDetect.Overflowed attribute/property uses the change detection
overflow circuitry on a DIO device to determine if an overflow occurred. The NI 6527
change detection overflow circuitry does not detect an overflow if a single rising
edge and a single falling edge are detected prior to reading a sample. It will detect
overflows if two rising edges or two falling edges occur prior to reading a sample.
Change-Detection Considerations for C Series and M Series Devices
■ Counter/timer tasks
■ Accessing PFI signal tasks (can be used in up to two slots)
Timed digital input/output restrictions:
■ You cannot use parallel and serial modules together on the same hardware
timed task, unless they are in separate cDAQ chassis using multichassis device
tasks.
■ You cannot use serial modules for triggering.
■ You cannot do both static and timed tasks at the same time on a single
serial module.
400 ni.com
NI-DAQmx
AO Series 1
■ NI 673x
CompactDAQ
■ cDAQ-9132
■ cDAQ-9133
■ cDAQ-9134
■ cDAQ-9135
■ cDAQ-9136
■ cDAQ-9137
■ cDAQ-9138/9139
■ cDAQ-9171
■ cDAQ-9174
■ cDAQ-9178
■ cDAQ-9179
■ cDAQ-9181
■ cDAQ-9184
■ cDAQ-9185
■ cDAQ-9188
■ cDAQ-9188XT
■ cDAQ-9189
■ cDAQ-9191
CompactRIO
■ cRIO-9040
■ cRIO-9041
■ cRIO-9042
■ cRIO-9043
■ cRIO-9045
■ cRIO-9046
■ cRIO-9047
■ cRIO-9048
■ cRIO-9049
■ cRIO-9053
■ cRIO-9054
■ cRIO-9055
■ cRIO-9056
■ cRIO-9057
■ cRIO-9058
■ sbRIO-9603
■ sbRIO-9608
■ sbRIO-9609
■ sbRIO-9628
■ sbRIO-9629
■ sbRIO-9638
M Series 1
■ NI 622x
■ NI 625x
■ NI 628x
S Series 1
■ NI 6115
402 ni.com
NI-DAQmx
■ NI 6120
■ NI 6132
■ NI 6133
NI 653x
■ PCI-6533 (DIO-32HS)
■ PXI-6533
■ PCI-6534
■ PXI-6534
■ PCIe-6535
■ PXIe-6535
■ PCIe-6536
■ PXIe-6536
■ PCIe-6537
■ PXIe-6537
NI 661x Devices
■ NI 6612
■ NI 6614
X Series Devices
All X Series devices support sample clock timing for digital I/O.
There is no dedicated onboard sample clock for digital I/O on these devices. You
must use a different clock, typically the AI or AO Sample Clock.
Handshake Timing Devices
You can use handshake timing for digital I/O on the following devices:
■ PCI-6025E
■ PCI-6533 (DIO-32HS)
■ PCI-6534
■ PCI-DIO-24
■ PCI-DIO-96
■ PCIe-6535
■ PCIe-6536
■ PCIe-6537
■ PXI-6025E
■ PXI-6508
■ PXI-6533
■ PXI-6534
■ PXIe-6535
■ PXIe-6536
■ PXIe-6537
404 ni.com
NI-DAQmx
You can use burst handshake timing for digital I/O on the following devices:
■ PCI-6533 (DIO-32HS)
■ PCI-6534
■
PCIe-6535
■ PCIe-6536
■ PCIe-6537
■ PXI-6533
■ PXI-6534
■ PXIe-6535
■ PXIe-6536
■ PXIe-6537
406 ni.com
NI-DAQmx
Pause Triggering
This section contains information about Pause Triggering for AO Series, DSA, E
Series, M Series, S Series, SC Express, and TIO devices.
Pause Trigger Considerations for AO Series Devices
The source of your sample clock can affect when your generation resumes after the
deassertion of a Pause Trigger.
Analog Output
When you generate analog output signals, the generation pauses as soon as the
Pause Trigger is asserted. If the source of your sample clock is the onboard clock,
the generation resumes as soon as the Pause Trigger is deasserted. The NI 6733 and
NI 6251 behave as if an external clock is being used, even if the source of the sample
clock is the onboard clock. For these devices, the generation resumes as soon as the
Pause Trigger is deasserted and another edge of the sample clock is received.
If you are using any signal other than the onboard clock as the source of your
sample clock, the generation resumes as soon as the Pause Trigger is deasserted
and another edge of the sample clock is received, as shown in the following figure.
Counters
Continuous pulse-train generation: The pulse-train generation pauses as soon as
the Pause Trigger is asserted, not at the end of a pulse. The pulse train resumes after
the Pause Trigger is deasserted. A Pause Trigger elongates either the high or low
pulse depending on which one was being generated at the time the Pause Trigger
was asserted.
Nonbuffered edge counting: The counter stops counting edges as soon as the
Pause Trigger is asserted and resumes counting edges after the Pause Trigger is
deasserted.
408 ni.com
NI-DAQmx
period and A represents the unknown time between the clock pulse and the pause
trigger.
If you are using any signal other than the onboard clock as the source of your
sample clock, the acquisition resumes as soon as the Pause Trigger is deasserted
and another edge of the sample clock is received as shown in the following figure.
Analog Input
When you measure analog input signals and the Pause Trigger is asserted, the
current sample across all channels finishes before pausing. For instance, if you are
sampling four channels and the second channel is being sampled at the time the
Pause Trigger is asserted, the second, third, and fourth channels complete their
sample before the acquisition pauses. If you are using the onboard clock as the
source of your sample clock, the acquisition resumes as soon as the Pause Trigger is
deasserted.
If you are using any signal other than the onboard clock as the source of your
sample clock, the acquisition resumes as soon as the Pause Trigger is deasserted
and another edge of the sample clock is received as shown in the following figure.
Analog Output
When you generate analog output signals, the generation pauses as soon as the
Pause Trigger is asserted. If the source of your sample clock is the onboard clock,
the generation resumes as soon as the Pause Trigger is deasserted.
If you are using any signal other than the onboard clock as the source of your
sample clock, the generation resumes as soon as the Pause Trigger is deasserted
and another edge of the sample clock is received as shown in the following figure.
Counters
Continuous pulse-train generation: The pulse-train generation pauses as soon as
the Pause Trigger is asserted, not at the end of a pulse. The pulse train resumes after
the Pause Trigger is deasserted. A Pause Trigger elongates either the high or low
410 ni.com
NI-DAQmx
pulse depending on which one was being generated at the time the Pause Trigger
was asserted.
Nonbuffered edge counting: The counter stops counting edges as soon as the
Pause Trigger is asserted and resumes counting edges after the Pause Trigger is
deasserted.
If you are using any signal other than the onboard clock as the source of your
sample clock, the generation/acquisition resumes as soon as the Pause Trigger
is deasserted and another edge of the sample clock is received as shown in the
following figure.
Pause triggers also require special consideration when used on a device with a
pipelined ADC. See Timing Considerations for S Series for how pipelined ADCs and
Pause Triggers can affect your measurement.
Counters
Continuous pulse-train generation: The pulse-train generation pauses as soon as
the Pause Trigger is asserted, not at the end of a pulse. The pulse train resumes after
the Pause Trigger is deasserted. A Pause Trigger elongates either the high or low
pulse depending on which one was being generated at the time the Pause Trigger
was asserted.
Nonbuffered edge counting: The counter stops counting edges as soon as the
Pause Trigger is asserted and resumes counting edges after the Pause Trigger is
deasserted.
412 ni.com
NI-DAQmx
If you are using any signal other than the onboard clock as the source of your
sample clock, the generation/acquisition resumes as soon as the Pause Trigger
is deasserted and another edge of the sample clock is received, as shown in the
following figure.
414 ni.com
NI-DAQmx
If you are using any signal other than the onboard clock as the source of your
sample clock, the acquisition resumes as soon as the Pause Trigger is deasserted
and another edge of the sample clock is received, as shown in the following figure.
If you are using any signal other than the onboard clock as the source of your
sample clock, the acquisition resumes as soon as the Pause Trigger is deasserted
and another edge of the sample clock is received, as shown in the following figure.
Physical Channels
This section contains information about physical channels for AO Series, bus-
powered M Series, C Series, E Series, M Series, NI 6010, NI 6154, NI 6221 (37-pin), NI
623x, NI 6533/6534, NI 6535/6536/6537, NI ELVIS II Family, S Series, SC Express, SCXI,
SCC, TIO, USB DAQ, and X Series devices.
AO Series Physical Channels
Dev1 in physical channel names is the default device name for AO Series devices.
You can change these names in MAX.
Analog Output
An AO Series device has between four and 64 analog output physical channels
named Dev1/ao0 to Dev1/ao63 .
For more detailed information on the device physical AO characteristics, refer to
your device user manual and specifications.
416 ni.com
NI-DAQmx
These are the terminals used as the SOURCE, GATE and OUT functions. NI-DAQmx
has default values for these terminals. For counter input tasks, if you know whether
your signal provides the SOURCE or GATE function and wire your signal to the
default, you do not have to set the Input Terminal attribute/property.
■ cDAQ1Mod1 is the default device name for a C Series device plugged into a
USB or Standalone CompactDAQ chassis, where cDAQ1 is the default chassis
device name, and Mod1 refers to the slot number
■ TS1Mod1 is the default device name for a TestScale module plugged into a
Standalone TestScale chassis, where TS1 is the default chassis device name,
and Mod1 refers to the slot number
For C Series devices plugged into a network CompactDAQ chassis, such as the NI
cDAQ-9188, the default chassis device name is the host name of the chassis. You can
change these names in MAX. For C Series devices plugged into a supported
CompactRIO or CompactRIO Single-Board controller, Mod1 is the default device
name.
Analog Input
The following table lists the number and naming of analog input physical channels
for C Series devices and TestScale modules.
On the NI 9205 and NI 9206, you can configure channels 0-7 and 16-23 as the
positive channel of a differential pair. If N is this channel, channel N + 8 is the
negative input of the pair. For instance, if you configure channel 1 in differential
mode, the positive input is channel 1, and channel 9 is the negative input. Use
only the physical channel name of the positive channel (not both) when creating a
differential channel.
You can use channels from multiple analog input C Series devices in the same
NI-DAQmx task.
■ Up to three analog input tasks can run at a given time per chassis in a
cDAQ-91xx or TestScale chassis.
■ Up to eight analog input tasks can run a given time in a CompactRIO
controller or a CompactRIO Single-Board controller.
■ Up to two analog input tasks with a C Series Delta-Sigma device can run at a
given time per chassis in a cDAQ-91xx or TestScale chassis.
■ Up to eight analog input tasks with a C Series Delta-Sigma device can run
at a given time in a CompactRIO controller or a CompactRIO Single-Board
controller.
418 ni.com
NI-DAQmx
When the NI 9219 is in quarter bridge mode, you need to use the
AI.Bridge.NomResistance attribute/property to control whether the channel uses
the 120 Ω range or the 350 Ω range.
The NI 9218 has an internal full bridge. However, it can support quarter-bridge and
half-bridge measurements with the proper accessories.
Analog Output
The following table lists the number and naming of analog output physical channels
for C Series devices.
You can use channels from multiple analog output C Series devices in the same
analog output task. With certain cDAQ-91xx or TestScale chassis, if the task is
420 ni.com
NI-DAQmx
422 ni.com
NI-DAQmx
The following table shows the counter terminal defaults for 6-channel DIO/DI/DO C
Series devices.
The following table shows the counter terminal defaults for 4-channel DIO/DI/DO C
Series devices.
There are 8 PFI lines, from PFI0 to PFI7. Each counter can use any of the input PFI
lines to perform measurements. Two counters can use the same PFI line as inputs
for their measurements, as long as the input configurations are the same for both
counters.
424 ni.com
NI-DAQmx
The following table shows the terminal defaults for edge counting measurements
for C Series counter modules.
Counter A B Z
ctr0 PFI0 PFI4 PFI7
ctr1 PFI1 PFI5 PFI6
ctr2 PFI2 PFI6 PFI5
ctr3 PFI3 PFI7 PFI4
ctr4 PFI4 PFI0 PFI3
ctr5 PFI5 PFI1 PFI2
ctr6 PFI6 PFI2 PFI1
ctr7 PFI7 PFI3 PFI0
The following table shows the terminal defaults for velocity measurements for C
Series counter modules that support velocity measurements.
Counter A B
ctr0 PFI0 PFI4
ctr1 PFI1 PFI5
ctr2 PFI2 PFI6
ctr3 PFI3 PFI7
ctr4 PFI4 PFI0
Counter A B
ctr5 PFI5 PFI1
ctr6 PFI6 PFI2
ctr7 PFI7 PFI3
The following table shows the terminal defaults for frequency, period, duty cycle,
and pulse width measurements for C Series counter modules.
426 ni.com
NI-DAQmx
The sbRIO-9603, 9608, and 9609 controllers do not have onboard physical channels.
The sbRIO-9628, 9629, and 9638 controllers have the following onboard IO
characteristics.
Analog Input
Device Number of Channels Naming
sbRIO-9628, sbRIO-9629, 16 Conn0_AI/ai0 to
sbRIO-9638 Conn0_AI/ai15
Analog Output
Device Number of Channels Naming
sbRIO-9628, sbRIO-9629, 4 Conn0_AO/ao0 to
sbRIO-9638 Conn0_AO/ao3
Conn1_DIO20-27/
port0/line20 to
Each counter has four primary terminals associated with it. These are the terminals
used as the SOURCE, GATE, AUX, and OUT functions. NI-DAQmx has default values
for these terminals. For counter input tasks, if you know whether your signal
provides the SOURCE, AUX, or GATE function and wire your signal to the default, you
do not have to set the Input Terminal attribute/property.
Counter/timers are supported on the DIO 0-3, DIO 4-11, DIO 12-19 and DIO 20-27
onboard DIO devices and on parallel digital I/O modules. Refer to Digital I/O
Considerations for C Series and the counter section in C Series Physical Channels for
more information about C Series device specific behavior.
The following table shows the counter terminal defaults for the DIO 0-3 onboard
device.
428 ni.com
NI-DAQmx
The following table shows the counter terminal defaults for the DIO 4-11 onboard
device.
The following table shows the counter terminal defaults for the DIO 12-19 onboard
device.
The following table shows the counter terminal defaults for the DIO 20-27 onboard
device
Analog Input
A 16-channel E Series device has physical channels ranging from Dev1/ai0 to
Dev1/ai15 . You can configure only channels 0 through 7 in differential mode.
When you configure a channel in differential mode, the channel is the positive input
and channel plus eight is the negative input. For instance, if you configure channel
1 in differential mode, the positive input is channel 1, and channel 9 is the negative
input.
A 64-channel E Series device has physical channels ranging from Dev1/ai0 to
Dev1/ai63 . You can configure channels in banks of every other eight beginning
with 0 through 7 as the positive channel of a differential pair (0-7, 16-23, 32-39, and
48-55). If N is this channel, channel N + 8 is the negative input of the pair.
430 ni.com
NI-DAQmx
Use only the physical channel name of the positive channel when creating a
differential channel (not both).
Analog Output
An E Series device that supports analog output has two analog output physical
channels named Dev1/ao0 and Dev1/ao1 .
Analog Input
The following table lists the number and naming of analog input physical channels
for FieldDAQ devices.
FD-11603 8 FD-11603-xxxxxxx-
Bank1/ai0 to FD-11603-
xxxxxxx-Bank1/ai3
FD-11603-xxxxxxx-
Bank2/ai0 to FD-11603-
xxxxxxx-Bank2/ai3
FD-11605 8 FD-11605-xxxxxxx-
Bank1/ai0 to FD-11605-
xxxxxxx-Bank1/ai3
432 ni.com
NI-DAQmx
FD-11613 8 FD-11613-xxxxxxx-
Bank1/ai0 to FD-11613-
xxxxxxx-Bank1/ai7
FD-11614 16 FD-11614-xxxxxxx-
Bank1/ai0 to FD-11614-
xxxxxxx-Bank1/ai7
FD-11614-xxxxxxx-
Bank2/ai0 to FD-11614-
xxxxxxx-Bank2/ai7
FD-11634 8 FD-11634-xxxxxxx-
Bank1/ai0 to FD-11634-
xxxxxxx-Bank1/ai3
FD-11634-xxxxxxx-
Bank2/ai0 to FD-11634-
xxxxxxx-Bank2/ai3
FD-11637 8 FD-11637-xxxxxxx-
Bank1/ai0 to FD-11637-
xxxxxxx-Bank1/ai3
FD-11637-xxxxxxx-
Bank2/ai0 to FD-11637-
xxxxxxx-Bank2/ai3
When using the FD-11637 with an AI Custom Voltage With Excitation channel, you
must set the AI.Excit.UseForScaling attribute/property to true. This attribute/
property causes the channel to return ratiometric data: Vin/Vex.
The FD-11637 returns a voltage ratio rather than a voltage. Therefore, use the
AI.Bridge.InitialRatio attribute/property to specify the initial voltage ratio, or set the
AI.Bridge.InitialVoltage attribute/property to the ratio Vin/Vex returned by the
device, multiplied by Vex.
When the FD-11637 is in quarter bridge mode, you need to use the
AI.Bridge.NomResistance attribute/property to control whether the channel uses
the 120 Ω range or the 350 Ω range.
M Series
The section contains information about M Series Physical Channels, Bus-Powered M
Series Physical Channels, NI 6221 (37-Pin) Device Physical Channels, and NI 623x
Physical Channels.
M Series Physical Channels
In physical channel names, Dev1 is the default device name for M Series devices.
You can change these names in MAX.
Analog Input
Depending on your M Series device, you can have from 16 to 80 analog input
channels. A 16-channel M Series device has physical channels ranging from
Dev1/ai0 to Dev1/ai15 , a 32-channel device from Dev1/ai0 to Dev1/ai31 ,
and so on. You can configure the first eight channels as the positive channel of a
differential pair. If N is this channel, channel N + 8 is the negative input of the pair.
For instance, if you configure channel 1 in differential mode, the positive input is
channel 1, and channel 9 is the negative input. For devices with more than 16 AI
channels, 16-23, 32-39, 48-55, and 64-71 are also positive channels of a differential
pair.
Use only the physical channel name of the positive channel (not both) when
creating a differential channel.
434 ni.com
NI-DAQmx
Analog Output
An M Series device that supports two analog outputs has analog output physical
channels named Dev1/ao0 and Dev1/ao1 .
An M Series device that supports four analog outputs has analog output physical
channels named Dev1/ao0 , Dev1/ao1 , Dev1/ao2 , and Dev1/ao3 .
Analog Input
Depending on your M Series device, you can have from 16 to 32 analog input
channels. A 16-channel M Series device has physical channels ranging from
Dev1/ai0 to Dev1/ai15 , a 32-channel device from Dev1/ai0 to Dev1/ai31 ,
and so on. You can configure the first eight channels as the positive channel of a
differential pair. If N is this channel, channel N + 8 is the negative input of the pair.
436 ni.com
NI-DAQmx
For instance, if you configure channel 1 in differential mode, the positive input is
channel 1, and channel 9 is the negative input. For devices with more than 16 AI
channels, 16-23, 32-39, 48-55, and 64-71 are also positive channels of a differential
pair.
Use only the physical channel name of the positive channel (not both) when
creating a differential channel.
Analog Output
An M Series device that supports two analog outputs has analog output physical
channels named Dev1/ao0 and Dev1/ao1 .
An M Series device that supports four analog outputs has analog output physical
channels named Dev1/ao0 , Dev1/ao1 , Dev1/ao2 , and Dev1/ao3 .
438 ni.com
NI-DAQmx
Analog Input
A 16-channel NI 6221 (37-pin) device has physical channels ranging from Dev1/ai0
to Dev1/ai15 . You can configure only channels 0 through 7 in differential mode.
When you configure a channel in differential mode, the channel is the positive input
and channel plus eight is the negative input. For instance, if you configure channel
1 in differential mode, the positive input is channel 1, and channel 9 is the negative
input.
Analog Output
NI 6221 (37-pin) devices have two analog outputs corresponding to two analog
output physical channels named Dev1/ao0 and Dev1/ao1 .
440 ni.com
NI-DAQmx
Analog Input
Refer to the following table for the physical channel naming conventions for each
623x device.
Analog Output
NI 623x devices have m analog outputs corresponding to m analog output physical
channels ranging from Dev1/ao0 to Dev1/ao(m-1) . Refer to the hardware
documentation for the number of analog outputs for your device.
442 ni.com
NI-DAQmx
output lines or output PFI lines, PFI 6..9. When any of PFI lines 0..9 is used as a
digital I/O signal, it uses the physical channel name shown in the following table.
your signal provides the SOURCE, AUX, or GATE function and wire your signal to the
default, you do not have to set the Input Terminal attribute/property.
Analog Input
myDAQ has two analog input channels, myDAQ1/ai0 and myDAQ1/ai1 . These
channels support only the differential terminal configuration. You can configure
the first channel, myDAQ1/ai0 , as the positive channel of a differential pair. Use
only the physical channel name of the positive channel (not both) when creating a
differential channel.
myDAQ also has a DMM physical channel, myDAQ1/dmm, available from the device.
On myDAQ, the DMM physical channels cannot be used in the same task with
other channels. There are also two audio input channels, myDAQ1/audioInputLeft
and myDAQ1/audioInputRight. These channels support only the referenced signal-
ended terminal configuration. Analog input tasks do not work simultaneously with
audio input.
Analog Output
myDAQ has two analog outputs with analog output physical channels named
myDAQ1/ao0 and myDAQ1/ao1 . myDAQ also has two audio output channels,
444 ni.com
NI-DAQmx
Analog Input
A 16-channel NI 6010 device has physical channels ranging from Dev1/ai0 to
Dev1/ai15 . You can configure only channels 0 through 7 in differential mode.
When you configure a channel in differential mode, the channel is the positive input
and channel plus eight is the negative input. For instance, if you configure channel
1 in differential mode, the positive input is channel 1, and channel 9 is the negative
input.
Use only the physical channel name of the positive channel (not both) when
creating a differential channel.
Analog Output
NI 6010 devices have two analog outputs corresponding to two analog output
physical channels named Dev1/ao0 and Dev1/ao1 .
446 ni.com
NI-DAQmx
Analog Input
A 4-channel NI 6154 device has physical channels ranging from Dev1/ai0 to
Dev1/ai3 .
Analog Output
NI 6154 devices have four analog outputs corresponding to four analog output
physical channels ranging from Dev1/ao0 to Dev1/ao3 .
448 ni.com
NI-DAQmx
The NI 6154 uses the same default terminals for common counter applications as
other 37-Pin DSUB devices.
NI 6533/6534 Device Physical Channels
For Ports 0 through 3, you can configure a port width of eight, 16, or 32 bits. To
configure a 32-bit port, use the physical channel name Dev1/port0_32. To configure
a 16-bit port, use channel names that refer to all the lines in multiple consecutive
ports: Dev1/port P_N, where P is the port number of the lowest numbered port,
and N is the total number of lines. For instance, combining Port 2 and 3 into a 16-bit
port, you would specify Dev1/port2_16 as the physical channel.
NI 6533/6534 devices also have eight fixed-direction lines, grouped into two ports,
that use PFI lines. Port 4 is used for input operations; Port 5 is for output.
Port 4 and port 5 can be used as static digital I/O lines or PFI lines. When any of
these PFI lines is used as a digital I/O signal, it uses the physical channel name
shown in the following table.
For Ports 0 through 3, you can configure a port width of 8, 16, or 32 bits. To configure
a 32-bit port, use the physical channel name Dev1/port0_32 . To configure a 16-
bit port, use channel names that refer to all the lines in multiple consecutive ports:
Dev1/port P_N, where P is 0 or 2 (whichever port number is lower) and N is the
450 ni.com
NI-DAQmx
total number of lines. For example, to combine Port 2 and 3 into a 16-bit port,
specify Dev1/port2_16 as the physical channel.
Using NI-DAQmx, you can configure each physical channel individually by inverting
or tristating the physical channel.
PFI Lines
The NI 6535/6536/6537 has six PFI lines. These bidirectional digital lines allow you
to route synchronization and timing signals to and from the I/O connector. The
following table lists the PFI lines and their timing function.
Analog Input
NI ELVIS II Family devices have 16 analog input channels, ranging from Dev1/ai0
to Dev1/ai15 . You can configure the first eight channels as the positive channel
of a differential pair. If N is this channel, channel N + 8 is the negative input of the
pair. For instance, if you configure channel 1 in differential mode, the positive input
is channel 1, and channel 9 is the negative input.
Use only the physical channel name of the positive channel (not both) when
creating a differential channel.
NI ELVIS II Family devices have two oscilloscope physical channels, Dev1/
scopeCh0 and Dev1/scopeCh1 , available from the NI ELVIS II Family benchtop
workstation. The NI ELVIS II Family benchtop workstation also has a DMM physical
channel, Dev1/dmm . On the NI ELVIS II Family devices, the DMM and oscilloscope
physical channels cannot be used in the same task with other channels. However,
scopeCh0 and scopeCh1 can be used together.
Analog Output
NI ELVIS II Family devices have two analog outputs with analog output physical
channels named Dev1/ao0 and Dev1/ao1 . NI ELVIS II Family devices also
have two function generator channels, Dev1/fgen and Dev1/fgenBNC , and
two variable power supply channels, Dev1/vpsPos (the positive variable power
supply) and Dev1/vpsNeg (the negative variable power supply). The function
generator channels, Dev1/fgen and Dev1/fgenBNC , use the FGEN Create
Channel function/VI. These function generator terminals also share the same
resource.
452 ni.com
NI-DAQmx
Analog Input
An S Series device has between two and eight analog input physical channels
named Dev1/ai0 to Dev1/ai7 .
Analog Output
An S Series device that supports analog output has two analog output physical
channels named Dev1/ao0 and Dev1/ao1 .
454 ni.com
NI-DAQmx
These are the terminals used as the SOURCE, GATE and OUT functions. NI-DAQmx
has default values for these terminals. For counter input tasks, if you know whether
your signal provides the SOURCE or GATE function and wire your signal to the
default, you do not have to set the Input Terminal attribute/property.
Analog Input
An SCXI module usually has eight or 32 analog input channels; refer to your
device documentation to be sure. These physical channel names are of the form
SC1Mod <slot#> /ai0 to SC1Mod <slot#> /ai N, where <slot#> is the chassis slot
number of the module, and N equals the number of analog input channels on
the module minus one. For example, SCI1Mod1/ai31 is the highest numbered
physical channel for a module with 32 analog input channels.
An SCC module has either one or two physical channels named SCC1Mod <J
connector#>aiN, where <J connector#> is the number of the J connector where
the SCC module resides, and N is the channel number. SCC1 is the SCC connector
block ID (for example, SCC1Mod1/ai0 ).
NI PXI-4224 Only—You cannot scan channel ai7 and the CJC channel simultaneously
in a task, since the CJC channel is multiplexed to channel 7. However, when
you make a thermocouple measurement on ai0:7 with internal CJC, NI-DAQmx
automatically reads the CJC channel at the beginning of the measurement and then
scans the rest of the channels correctly.
Analog Output
An SCXI module has some number of output channels for voltage or current. These
physical channel names are of the form SC1Mod <slot#> /ao0 to SC1Mod <slot#> /
ao N, where <slot#> is the chassis slot number of the module, and N equals
the number of analog output channels on the module minus one. For example,
SC1Mod1/ao5 is the highest numbered physical channel on a module with six
channels.
Analog Input
SC Express Devices have from four to 32 analog input channels. A 4-channel device
has physical channels ranging from PXISlot1/ai0 to PXISlot1/ai3 , an 8-
channel device has physical channels ranging from PXISlot1/ai0 to PXISlot1/
ai7 , and a 32-channel device has channels ranging from PXISlot1/ai0 to
PXISlot1/ai31 .
You can use channels from multiple analog input SC Express devices in the same
NI-DAQmx task.
456 ni.com
NI-DAQmx
Analog Output
NI 4322 devices have eight analog output channels ranging from PXI1Slot1/ao0
to PXISlot1/ao7 . You can use channels from multiple analog output SC Express
devices in the same NI-DAQmx task.
Analog Input
SensorDAQ has two AI physical channels, Dev1/ai0 and Dev1/ai1 . When you
configure a channel in differential mode, Dev1/ai0 is the positive input and
Dev1/ai1 is the negative input.
Analog Output
SensorDAQ has two AO physical channels, Dev1/ao0 and Dev1/ao1 .
Digital Input/Output
SensorDAQ has four digital I/O physical channels.
458 ni.com
NI-DAQmx
460 ni.com
NI-DAQmx
Analog Input
The following table lists the number and naming of analog input physical channels
for USB DAQ devices.
Analog Output
The following table lists the number and naming of analog output physical channels
for USB DAQ devices.
When using the NI USB-9263, NI-USB 9264, or NI USB-9265, you can run only one
type of timing at a time. You can have one software-timed task per channel or
one hardware-timed task running on a device at one time, but you cannot have a
combination of timing on that device. For instance, you can run up to four software-
timed tasks on an the NI USB-9263 concurrently, but running one hardware-timed
task with one software-timed task generates an error. Additionally, the NI USB-9263,
NI-USB 9264, and NI USB-9265 can run only one hardware-timed analog output task
per device at a given time.
X Series Physical Channels
In physical channel names, Dev1 is the default device name for X Series devices.
You can change these names in MAX.
462 ni.com
NI-DAQmx
Analog Input
Depending on your X Series device, you can have from eight to 208 analog
input channels. An 8-channel X Series device has physical channels ranging from
Dev1/ai0 to Dev1/ai7 , a 208-channel device from Dev1/ai0 to Dev1/ai207 .
Use only the physical channel name of the positive channel (not both) when
creating a differential channel.
Analog Output
An X Series device that supports two analog outputs has analog output physical
channels named Dev1/ao0 and Dev1/ao1 .
An X Series device that supports four analog outputs has analog output physical
channels named Dev1/ao0 , Dev1/ao1 , Dev1/ao2 , and Dev1/ao3 .
464 ni.com
NI-DAQmx
Internal Channels
On some devices, you can either acquire a signal present on the I/O connector or
acquire a signal that is being generated from the internal multiplexer (an internal
channel). The internal channels available on the multiplexer are typically used for
calibration purposes, but you can also sample them as you would a physical signal
present on the I/O connector. To read from one of these internal channels, you must
use the internal channel as the device's physical channel (for example, Dev1/
_aignd_vs_aignd ) when creating the virtual channel.
466 ni.com
NI-DAQmx
468 ni.com
NI-DAQmx
On a DSA device, you can either acquire a signal present on the I/O connector, or you
can acquire a signal that is generated from the internal calibration multiplexer. The
channels available on this multiplexer are typically used for calibration purposes,
but you can also sample them as you would a physical signal present on the I/O
connector. To read from one of these internal channels, you must use one of the
device's AI physical channels (for instance, Dev1/ai0) when creating the channel to
select which ADC to use, then set the appropriate string value on the Input Source
channel attribute/property.
The following table lists internal channels for DSA devices.
470 ni.com
NI-DAQmx
typically for self-calibration, and you can sample them as you would a physical
channel present on the I/O connector.
472 ni.com
NI-DAQmx
474 ni.com
NI-DAQmx
476 ni.com
NI-DAQmx
478 ni.com
NI-DAQmx
480 ni.com
NI-DAQmx
482 ni.com
NI-DAQmx
then set the appropriate string value on the Input Source channel attribute/
property.
On the NI 4353, you can acquire internal channels by specifying their names for the
physical channels input of the DAQmx Create Channel VI/function.
484 ni.com
NI-DAQmx
486 ni.com
NI-DAQmx
488 ni.com
NI-DAQmx
490 ni.com
NI-DAQmx
492 ni.com
NI-DAQmx
494 ni.com
NI-DAQmx
RSE and NRSE measurement systems are the same for isolated devices in that the
measurement is made with respect to a floating or isolated ground, AI GND. AI GND
is the floating reference for all RSE and NRSE channels. AI GND is isolated from earth
ground through an isolation barrier on the device.
496 ni.com
NI-DAQmx
Routing
This section contains information about routing for AO Series, E Series, S Series, and
TIO devices.
Routing Considerations for AO Series Devices
The counters on these devices are very versatile and in many cases can route signals
across subsystems. They can also be used to route signals to/from the I/O
connector. However, when a counter is used as part of a route, you may not be able
to use the counter for other applications while the route remains reserved. Most
routes do not require an internal counter terminal, but many advanced routes do.
For example, if you want to use the signal present at PFI 4 on Dev1 as the Start
Trigger for an acquisition on Dev2, you simply need to specify /Dev1/PFI4 as the
source of the trigger. However, to make the route, the signal is internally routed
from /Dev1/PFI4 to /Dev1/Ctr0Source to a RTSI bus line or PXI_Trig to
Dev2/ai/StartTrigger . These terminals need not be explicitly specified when
programming the route. In this case, it is not obvious that a counter terminal is used
to make the route. Subsequent attempts at using the counter while it is in use result
in a routing reservation error. To see if the route you are making uses counter
resources, consult the table displayed under the Device Routes tab in MAX.
Routing Considerations for E Series and S Series Devices
PFI 0
When exporting a signal through task-based routing to most PFI terminals, the
route is reserved and committed with the task. When the task goes back to a
verified state, software resources for the route are released, but the route
remains in place in hardware. It remains in place to prevent glitching on the
PFI terminal and to prevent any unexpected effects on external circuitry
monitoring the signal. However, PFI 0 is an exception to this rule. Because PFI
0 can accept both analog and digital signals, it tristates when the task is not in
the committed or running state. This behavior is intended to prevent
accidental connections of an analog signal directly to digital circuitry that
could damage the device.
Note: PFI 0 accepts only digital signals on
the NI 6154.
When in use, the analog trigger circuitry takes over the PFI 0 terminal internal
to the device. Because of this, you cannot use PFI 0 to route any digital signals
when using the analog trigger, regardless of whether you are triggering off of
PFI 0 or an analog input channel. If you try to use PFI 0 for digital signals and
the analog trigger at the same time, you receive a routing error.
Counters
The counters on these devices are very versatile and in many cases can route
signals across subsystems. They can also be used to route signals to/from the
I/O connector. However, when a counter is used as part of a route, you may
not be able to use the counter for other applications while the route remains
reserved. Most routes do not require an internal counter terminal, but many
advanced routes do. For example, if you want to use the signal present at PFI 4
on Dev1 as the Start Trigger for an acquisition on Dev2, you simply need to
specify /Dev1/PFI4 as the source of the trigger. However, to make the route,
the signal is internally routed from /Dev1/PFI4 to /Dev1/Ctr0Source to
a RTSI bus line or PXI_Trig to Dev2/ai/StartTrigger . These terminals
need not be explicitly specified when programming the route. In this case, it is
not obvious that a counter terminal is used to make the route. Subsequent
attempts at using the counter while it is in use result in a routing reservation
error. To see if the route you are making uses counter resources, consult the
table displayed under the Device Routes tab in MAX.
498 ni.com
NI-DAQmx
that do not use internal resources that are preferred for use with different counter
signals.
CtrnAux
PFI 37, PFI 33, PFI 29, PFI 25, PFI 21, PFI 17, PFI 13, PFI 9
CtrnGate
PFI 38, PFI 34, PFI 30, PFI 26, PFI 22, PFI 18, PFI 14, PFI 10
CtrnSource
PFI 39, PFI 35, PFI 31, PFI 27, PFI 23, PFI 19, PFI 15, PFI 11
For output, the same rules apply. Though the counter can output on any PFI line,
there are a subset of preferred PFIs that do not use internal resources to make the
routes.
CtrnInternalOutput
PFI 36, PFI 32, PFI 28, PFI 24, PFI 20, PFI 16, PFI 12, PFI 8
To see if the route you are making uses internal resources, consult the table
displayed under the Device Routes tab in MAX.
Switches
This section contains information specific to switch devices about API support and
switching capacity, including switching voltage, switching current, and switching
power.
API Support for Switch Modules
Switch modules can support any of four different ways to control their relays. You
may use the APIs interchangeably, but NI recommends using a single API for each
application.
Digital Output
Create your tasks, either programmatically with the Create Channel Digital
Output function/VI or interactively through the DAQ Assistant, using the digital
output physical channels. Use the digital versions of the Write function/VI to
control the relays. Each digital port consists of 32 digital lines, and each line
Supported Topologies
Every switch module supports one or more topologies. Changing the topology alters
the functionality of the switch and, in many cases, changes the list of supported
channel names.
Special Considerations
Some switch modules have specific behaviors that you must consider when
developing applications. These are described in the following table.
500 ni.com
NI-DAQmx
Independent
■ PXI-2510 ■ Immediate
■ 68-Channel 2A Fault ■ Relay
Insertion Unit ■ Scanning
502 ni.com
NI-DAQmx
Independent
■ PXI-2514, PXIe-2514 ■ Immediate
■ 7-Channel 40A Fault ■ Relay
Insertion Unit ■ Scanning
Independent
■ PXI-2515, PXIe-2515 ■ Immediate
■ High-Speed Digital I/O ■ Relay
Signal Insertion Switch ■ Scanning
53-SPDT Switch
■ PXI-2522 ■ Immediate
■53-Channel SPDT Relay ■ Relay
Module ■ Scanning
26-DPDT Switch
■ PXI-2523 ■ Immediate
■26-Channel DPDT Relay ■ Relay
Module ■ Scanning
504 ni.com
NI-DAQmx
2547/8x1 Mux
■ PXI-2547 ■ Immediate
506 ni.com
NI-DAQmx
2548/4-SPDT
■ PXI-2548 ■ Digital Output
■ 2.7 GHz 4-SPDT 50 ■ Immediate
Ohm Relay Module ■ Relay
■ Scanning
2549/Terminated 2-SPDT
■ PXI-2549 ■ Digital Output
■ 2.7 GHz Terminated ■ Immediate
2-SPDT 50 Ohm Relay ■ Relay
Module ■ Scanning
2554/4x1 Mux
■ PXI-2554 ■ Immediate
■2.5 GHz 4x1 75 Ohm ■ Relay
Multiplexer ■ Scanning
2557/8x1 Mux
■ PXI-2557 ■ Immediate
■2.5 GHz 8x1 75 Ohm ■ Relay
Multiplexer ■ Scanning
2558/4-SPDT
■ PXI-2558 ■ Digital Output
■ 2.5 GHz 4-SPDT 75 ■ Immediate
Ohm Relay Module ■ Relay
2559/Terminated 2-SPDT
■ PXI-2559 ■ Digital Output
■ 2.5 GHz Terminated ■ Immediate
2-SPDT 75 Ohm Relay ■ Relay
Module ■ Scanning
2565/16-SPST
■ PXI-2565 ■ Digital Output
■16-SPST Power Relay ■ Immediate
Module ■ Relay
■ Scanning
2567/Independent
■ PXI-2567 ■ Digital Output
■ 64-Channel Relay ■ Immediate
Driver Module ■ Relay
■ Scanning
508 ni.com
NI-DAQmx
2571/66-SPDT
■ PXI-2571 ■ Digital Output
■66-Channel SPDT Relay ■ Immediate
Module ■ Relay
■ Scanning
2590/4x1 Mux
■ PXI-2590 ■ Immediate
■1.3 GHz 4x1 50 Ohm ■ Relay
Multiplexer ■ Scanning
2591/4x1 Mux
■ PXI-2591 ■ Immediate
■4 GHz 4x1 50 Ohm ■ Scanning
Multiplexer
2594/4x1 Mux
■
PXI-2594 ■
Immediate
■ 1x4 2.5 GHz Multiplexer ■ Relay
■ Scanning
2595/4x1 Mux
■ PXI-2595 ■ Immediate
■ 1x4 5.5 GHz Multiplexer ■ Relay
■ Scanning
510 ni.com
NI-DAQmx
2598/Dual Transfer
■ PXI-2598 ■ Immediate
■ Dual 26.5 GHz Transfer ■ Relay
Switch ■ Scanning
2599/2-SPDT
■ PXI-2599 ■ Immediate
■ Dual 26.5 GHz SPDT ■ Relay
■ Scanning
Independent
■ PXIe-2720 ■ Immediate
■ Ten 8-Bit Channel ■ Relay
Resistor Module ■ Scanning
Independent
■ PXIe-2722 ■ Immediate
■ Five 16-Bit Channel ■ Relay
Resistor Module ■ Scanning
Independent
■ PXIe-2725 ■ Immediate
■ Eighteen 8-Bit Channel ■ Relay
Resistor Module ■ Scanning
Independent
■ PXIe-2727 ■ Immediate
■ Nine 16-bit Channel ■ Relay
Resistor Module ■ Scanning
Independent
■ PXIe-2790 ■ Immediate
■ Relay
2798/Dual Transfer
■ PXIe-2798 ■ Immediate
■ Dual 40 GHz Transfer ■ Relay
Switch ■ Scanning
2799/2-SPDT
■ PXIe-2799 ■ Immediate
■ Dual 40 GHz SPDT ■ Relay
■ Scanning
512 ni.com
NI-DAQmx
1161/8-SPDT
■ SCXI-1161 ■ Digital Output
■8-SPDT Power Relay ■ Immediate
Module ■ Relay
1167/Independent
■ SCXI-1167 ■ Digital Output
■ 64-Channel Relay ■ Immediate
Driver Module ■ Relay
■ Scanning
514 ni.com
NI-DAQmx
1192/8-SPDT
■ SCXI-1192 ■ Digital Output
■ 18 GHz 8-SPDT 50 Ohm ■ Immediate
Relay Module ■ Relay
SCXI-1127 Considerations
To route signals to the analog bus backplane, you must enable the switch device
property AutoConnAnlgBus. As a result, if you connect a channel (ch1) to the
common channel (com0), the signal is automatically routed from com0 to the
analog bus (ab0).
The device supports only continuous scanning.
If you have used immediate or relay operations to change relay states before
starting a scan, all of those relays are opened when the scan starts. After the scan
completes, the relays are returned to their previous state prior to the scan.
Early revisions of this hardware reserve the SCXI_TRIG1 line. If you place an older
revision of this hardware (earlier than revision E) into an SCXI chassis that also
contains an SCXI analog input module that performs track and hold (such as the
SCXI-1140 or SCXI-1520), you may get reservation errors when trying to use the SCXI
analog input module.
SCXI-1128 Considerations
To route signals to the analog bus backplane, you must enable the switch device
property AutoConnAnlgBus. As a result, if you connect a channel (ch1) to the
common channel (com0), the signal is automatically routed from com0 to the
analog bus (ab0).
The device supports only continuous scanning.
If you have used immediate or relay operations to change relay states before
starting a scan, all of those relays are opened when the scan starts. After the scan
completes, the relays are returned to their previous state prior to the scan.
Switching Capacity
Signal levels through a switch must account for the following specifications:
■ Switching voltage
■ Switching current
■ Switching power
The following figure shows the valid operating range defined by these limits.
516 ni.com
NI-DAQmx
Switching Current
Switching current is the maximum rated current that can flow through the switch as
it makes or breaks a contact. Switching active currents higher than those specified
in the switch documentation can result in arcing that can damage the contacts of
electromechanical relays. A minimum current specification indicates the smallest
current that can reliably flow through the switch.
Switches can also have carry current. Carry current is the maximum rated current
that can pass through a closed switch, or the current that a switch can carry. Carry
current can be larger than switching current. However, since carry current can only
flow while the switch is closed, the current needs to be stopped while the switch
operates.
Switching Power
Switching power is the limit on the combined open-contact voltage and closed-
contact current of a signal in the switch.
Switching Power = Switching Voltage * Switching Current
Switching high-power signals causes high-energy arcing at the electromechanical
contacts during actuation, reducing the useful life of the switch.
Switching Voltage
Switching voltage refers to the maximum signal voltage that the switch module can
safely maintain. Switching voltage is defined from channel-to-ground and from
channel-to-channel. Channel-to-ground is the voltage potential between the signal
line and the grounded chassis. Channel-to-channel is the voltage potential between
any pair of signal lines within the module. This voltage includes voltages across
open relay contacts, as well as voltages between adjacent connection terminals.
Synchronization
This section contains information on synchronizing multiple devices.
Synchronizing cDAQ Chassis and FieldDAQ Devices
If you have multiple devices that support the IEEE 802.1AS standard, you can use
Start Trigger synchronization to trigger at a specific time. These devices must either
be connected through a daisy chain or a switch that supports IEEE 802.1AS.
518 ni.com
NI-DAQmx
You can synchronize the analog input and output operations on two or more DSA
devices to extend the channel count of DSA measurements. Refer to the NI Dynamic
Signal Acquisition User Manual, which you can find at ni.com/manuals, for
additional DSA synchronization information.
Synchronizing DSA Devices with Multifunction DAQ Devices
You can use Sample Clock synchronization to synchronize DSA devices with
Multifunction DAQ devices. However, synchronization creates phase delay between
the devices.
Synchronizing X Series, M Series, and SC Express Devices
Note: To synchronize analog input tasks on
multiple X Series and SC Express devices at the
same sampling rate, you can use channels from
those devices within the same task.
X Series, M Series, and SC Express devices support the following synchronization
methods:
520 ni.com
NI-DAQmx
M Series USB and NI ELVIS II Family devices do not support reference clock
synchronization.
Supported Devices for Trigger Skew Correction
The following devices support locking synchronized triggers to a clock to
compensate for skew.
■ SC Express devices
■ X Series devices
Timing
This section contains information about timing for AO Series, C Series, DSA, E Series,
FieldDAQ, M Series USB, NI ELVIS II Family, S Series, and SC Express devices.
Timing Considerations for AO Series Devices
When using an external ao/SampleClock for finite generations, you need to provide
one more sample clock pulse than the number of samples in the generation. The
Wait Until Done function/VI uses the extra sample clock to indicate the task is
complete. For example, if you want to generate 1000 samples using an external
sample clock, the first 1000 samples clocks you provide generates all of the
samples, but you need to provide 1001 sample clock pulses for the Wait Until Done
function/VI to indicate the task is done. If you are trying to synchronize an analog
output generation with another acquisition or generation by sharing a common
clock, use the ao/SampleClock as the master clock, or key off of the generation or
acquisition providing the master clock to determine when the generation is
complete.
Static AO devices, such as the NI 6703 and NI 6704, do not have hardware timing and
have multiplexed output. Refer to your device documentation for specifics
concerning your device.
Timing Considerations for C Series Devices
Note: C Series devices do not support hardware-
timed single-point sample mode or Wait for
Next Sample Clock.
■ Only one analog input task at a time per NI cDAQ-9171, 9181, and 9191
chassis.
■ Up to three analog input tasks at a time per cDAQ-9132, 9133, 9134, 9135,
9136, 9137, 9174, 9178, 9179, 9184, 9185, 9188, 9188XT, and 9189 chassis.
■ Up to eight analog input tasks at a time per supported CompactRIO
controller.
■One analog input task at a time per slot or onboard IO module, per
CompactRIO Single-Board controller.
522 ni.com
NI-DAQmx
devices with a reference clock do not support external sample clocks from arbitrary
signal sources.
For the NI 9775, the reference clock must be 12.8 MHz.
rate would be 97.18 S/s. You can also query the maximum sample rate used in the
task with the SampClk.MaxRate attribute/property.
The maximum sampling rate of the NI 9215 depends on which channel(s) you are
acquiring from. For instance, a task acquiring from any combination of ai0, ai1, and
ai2 can sample at faster rates than a task that includes ai3. The maximum sampling
rates are attainable only when sampling from ai0. If you have multiple NI 9215
devices in the same task, they sample in parallel. For instance, multiple NI 9215
devices acquiring from ai0 may be able to achieve a faster sampling rate than a
single NI 9215 acquiring from ai3.
The C Series Delta-Sigma devices, such as the NI 9225, NI 9227, NI 9235, and NI 9239,
have both a maximum and a minimum sampling rate. Refer to the specifications for
your device to determine the sampling rate range.
When you set a sampling rate for the NI 9230, NI 9231, NI 9232, or NI 9234, NI-DAQmx
selects the highest possible decimation rate. Refer to the operating instructions for
your device for more information about available sampling rates.
When C Series Delta Sigma devices, such as the NI 9230, NI 9231, NI 9232, NI 9234, NI
9250, or NI 9251 are in a task with a C Series device that has a different sample clock
timebase, NI-DAQmx always chooses the sample clock timebase with the highest
frequency. To override this selection, you can set the sample clock timebase in the
SampClk.Timebase.Src attribute/property.
524 ni.com
NI-DAQmx
device cannot be used for hardware-timed and software-timed tasks at the same
time.
CompactRIO and Single-Board RIO controllers can support more than one
hardware-timed AO task per controller. Refer to CompactRIO Timing Engines.
determined based on Sample Clock Rate. To increase power line noise rejection on
the NI 9212 and NI 9219, set this attribute/property to Best 60 Hz Rejection or Best
50 Hz Rejection.
For the NI 9224 and NI 9228, this attribute/property is set by default to Automatic,
which causes the module to sample with the highest resolution timing mode that is
faster than the rate you specified.
For the NI 9775, this attribute/property has a default timing mode of Automatic. The
Automatic timing mode automatically configures the module to sample with the
highest resolution timing mode that is compatible with the user-specified rate. If the
AI.Lowpass.Enable attribute/property is set to false, the timing mode will remain in
High Speed regardless of the user-specified sample rate.
Slow sample modules are able to sample just fast enough to avoid returning
repeated data. If the user-specified rate is above the maximum rate, the module
will enter background convert and return repeated data. Slow sample modules on
the cDAQ-9171 and cDAQ-9191 chassis have a default timing mode of Automatic.
The AI.ADCTimingMode attribute/property affects both the maximum and default
values for AIConv.Rate attribute/property in the DAQmx Timing property node. For
instance, if the ADC timing mode corresponds to a conversion time of 200 ms, the
maximum conversion rate is 5 Hz.
526 ni.com
NI-DAQmx
Unlike some other DAQmx devices, DSA devices have both a maximum and a
minimum sampling rate. Refer to the specifications for your device to
determine the sampling rate range.
■ Other DSA Timing Considerations
DSA devices do not support the on-demand timing type. All DSA acquisitions
and generations require hardware timing from a steady clock. The NI 4464,
4480, and 4481 are an exception. The NI 4464, 4480, and 4481 support on-
demand timing type.
DSA devices do not support external clocking from arbitrary external signal
sources such as encoders and tachometers. The PFI lines on DSA devices
cannot accept external clocks. You can program a DSA device to use an
external clock only when it is a slave in multi-device synchronized system.
Refer to Synchronizing DSA Devices for more details.
■ ai/ConvertClock
When using the ai/ConvertClock as the source of a route, one extra convert
pulse is generated than you might expect. For example, if you perform a finite
acquisition of 100 samples with four channels, you see 401 convert pulses
instead of 400. This extra convert pulse is necessary to set up the
configuration memory in hardware and occurs as the task transitions to the
committed state.
■ ao/SampleClock
When using an external ao/SampleClock for finite generations, you need to
provide one extra sample clock pulse than the number of samples in the
generation for the Wait Until Done function/VI to indicate the task is complete.
For example, if you want to generate 1000 samples using an external sample
clock, you need to provide 1001 sample clock pulses or the Wait Until Done
function/VI never indicates the task is done. All of the samples are generated,
but the analog output timing engine needs one additional clock pulse to
indicate the generation is complete. If you are trying to synchronize an analog
output generation with another acquisition or generation by sharing a
common clock, use the ao/SampleClock as the master clock or key off of the
generation or acquisition providing the master clock to determine when the
generation is complete.
On-Demand Timing
The FD-11601, FD-11603, FD-11605, FD-11634, and FD-11637 do not support the
on-demand timing type.
528 ni.com
NI-DAQmx
On X Series, M Series, and C Series devices, you can detect changes on digital lines
or ports without using a buffer by specifying change detection timing with a buffer
size of 0. To use change detection timing on port 1 or port 2 for X Series devices, you
must use this non-buffered approach (i.e. specifying a buffer size of 0). On M Series
devices, you can read from port 1 and port 2 using non-buffered change detection
timing, but changes must be detected on port 0.
Timing Considerations for S Series
530 ni.com
NI-DAQmx
are not guaranteed. Refer to the specifications for your device to determine the
recommended minimum sampling rate.
This degradation of samples in the pipeline also affects on-demand single-point
acquisitions and acquisitions that use a Pause Trigger. For on-demand single-point
acquisitions, NI-DAQmx generates multiple sample clocks at the maximum sample
rate of the device for each sample that is read. For S Series devices with a pipelined
ADC, the number of sample clocks generated is equal to the pipeline depth plus
one. For S Series devices that do not have a pipelined ADC, two sample clock pulses
are generated for each point. This means that if you export the sample clock while
doing an on-demand single-point acquisition, you get more sample clock pulses
than data points. NI-DAQmx then throws away all points except the data point that
corresponds to the first sample clock pulse. This ensures the data returned is always
valid data. For acquisitions that use a Pause Trigger, the trigger could invalidate
the samples in the pipeline if the trigger is asserted longer than the pipeline depth
divided by the minimum sampling rate. For instance, if the device has a pipeline
depth of three and a minimum sampling rate of 1000 samples per second, data
should not sit in the pipeline for more than 3 ms. This gives up to a maximum
of 3 ms for the Pause Trigger to remain asserted and three sample clocks to be
detected before the data in the pipeline deteriorates past specifications. In the case
of a Pause Trigger, NI-DAQmx does not detect or throw out any invalid samples. You
must detect this situation and deal with any invalid samples as appropriate.
Analog Output
When using an external ao/SampleClock for finite generations, you need to provide
one more sample clock pulse than the number of samples in the generation for
the Wait Until Done function/VI to indicate the task is complete. For example, if
you want to generate 1000 samples using an external sample clock, you need to
provide 1001 sample clock pulses, or the Wait Until Done function/VI never indicates
the task is done. All of the samples are generated, but the analog output timing
engine needs one additional clock pulse to indicate the generation is complete. If
you are trying to synchronize an analog output generation with another acquisition
or generation by sharing a common clock, use the ao/SampleClock as the master
clock, or key off of the generation or acquisition providing the master clock to
determine when the generation is complete.
532 ni.com
NI-DAQmx
Note:
■ Standalone NI CompactDAQ systems do
not support hardware-timed single-point
sample mode or hardware-timed non-
buffered sample mode.
■ Standalone NI CompactDAQ systems do
not support DAQ events as timing sources
for time loops.
DAQmx Timing property node. The following figure depicts a ten-channel analog
input task on two simultaneous sampling C Series devices and two multiplexed
sampling C Series devices with different AI convert rates:
cDAQ-9171, 9174, 9178, 9179, 9181, 9184, 9185, 9188, 9188XT, 9189, and 9191
TS-15000 and TS-15010
cDAQ-9132, 9133, 9134, 9135, 9136, and 9137
cRIO-9040, 9041, 9042, 9043, 9045, 9046, 9047, 9048, 9049, 9053, 9054, 9055, 9056,
9057, and 9058
sbRIO-9603, 9608, 9609, 9628, 9629, and 9638
Timing Considerations for X Series Devices
X Series USB devices do not support hardware-timed single-point sample mode or
Wait for Next Sample Clock.
Timestamps
Network-synchronized devices support four timestamp resources that allow for
timestamping the first sample clock, start trigger, arm start trigger (counters only) or
reference trigger.
The timestamp resources will be used to provide an accurate t0 for waveform reads
with timed acquisitions that will correspond to the first sample clock for Analog
Input and Digital Input tasks. Therefore, the first sample timestamp is enabled by
default for these types of tasks.
534 ni.com
NI-DAQmx
Host Time
The timescale your PC or NI Linux Real-Time controller uses. In cases where
the NI Linux Real-Time controller is the Grand Master of your 802.1AS subnet,
Host Time and I/O Device Time are the same. However, Host Time is typically
synchronized to a local Real Time Clock or a Network Time Protocol server,
and it is usually traceable to global time. Using Host Time is more intuitive
because triggers and timestamps on the chassis are specified in times that are
easily correlated to your local system time. However, this usability comes at
the cost of reduced relative accuracy between time triggers and timestamps
that are spread across multiple devices or tasks, because using the calculated
offset between the two timescales is not as accurate as using I/O Device Time
directly. To help account for this loss of accuracy in a specific and common
use-case, NI-DAQmx guarantees that two events that are scheduled for the
same Host Time are guaranteed to start at the same I/O Device Time,
preserving precise synchronization between chassis.
536 ni.com
NI-DAQmx
■ NI 4302, 4303, 4304, 4305, 4339, 4340, 4463, 4464, 4480, and 4481
■ NI 6533 and 6534
■ cDAQ-9132, 9133, 9134, 9135, 9136, 9137, 9174, 9178, 9179, 9184, 9185,
9188, 9188XT, and 9189
■ TS-15000 and TS-15010
■ cRIO-9040, 9041, 9042, 9043, 9045, 9046, 9047, 9048, 9049, 9053, 9054, 9055,
9056, 9057, and 9058
■ sbRIO-9603, 9608, 9609, 9628, 9629, and 9638
specify the timing engine to use or to determine which timing engine NI-DAQmx
automatically selected.
538 ni.com
NI-DAQmx
540 ni.com
NI-DAQmx
for those signals include the associated timing engine. If NI-DAQmx automatically
selects the timing engine for a task, the timing engine, thus the output terminals for
those signals, are undefined until you reserve the task. To reference one of those
terminals, such as to share a Start Trigger across multiple tasks, use the Terminal
attribute/property associated with each signal to determine the terminal name.
tasks, use the Terminal attribute/property associated with each signal to determine
the terminal name.
542 ni.com
NI-DAQmx
specify the timing engine to use or to determine which timing engine NI-DAQmx
automatically selected.
cDAQ-9132, 9133, 9134, 9135, 9136, 9137, 9174, 9178, 9179, 9184, 9185, 9188,
9188XT, and 9189
TS-15000 and TS-15010
CompactRIO Timing Engines
CompactRIO and CompactRIO Single-Board controllers provide eight timing engines
for input and a separate eight timing engines for output. The eight input timing
engines are shared between analog input, digital input, and NI 9361 tasks. Multiple
input timing engines allow those chassis to run up to eight analog input, digital
input, or NI 9361 tasks simultaneously, each using independent timing and
triggering configurations.
The eight output timing engines are shared between analog output and digital
output. Multiple output timing engines allow those chassis to run up to eight analog
output or digital output tasks simultaneously, each using independent timing and
triggering configurations.
By default, NI-DAQmx automatically selects an available timing engine when
reserving the task. Use the DAQmx Timing attribute/property SampTimingEngine to
specify the timing engine to use or to determine which timing engine NI-DAQmx
automatically selected.
SampTimingEngine Value Analog Input, Digital Input, and Analog Output and Digital
NI 9361 Timing Engine Used Output Timing Engine Used
0 it0 ot0
1 it1 ot1
2 it2 ot2
3 it3 ot3
4 it4 ot4
5 it5 ot5
6 it6 ot6
7 it7 ot7
On the CompactRIO and CompactRIO Single-Board controllers, the Sample Clock
and Sample Clock Timebase, as well as the Start, Reference (for analog input, digital
input, and NI 9361 tasks only), and Pause triggers, exist on each timing engine.
Therefore, the names of the output terminals for those signals include the
associated timing engine. If NI-DAQmx automatically selects the timing engine for a
task, the timing engine, thus the output terminals for those signals, are undefined
544 ni.com
NI-DAQmx
until you reserve the task. To reference one of those terminals, such as to share a
Start Trigger across multiple tasks, use the Terminal attribute/property associated
with each signal to determine the terminal name.
546 ni.com
NI-DAQmx
Synchronization Issues
When synchronizing multiple devices, set the AI.EnhancedAliasRejectionEnable
attribute/property to the same value on all devices. If any of the
synchronized devices do not support enhanced alias rejection, set
AI.EnhancedAliasRejectionEnable to FALSE on all devices. When synchronizing
devices from different categories, NI 4461/4462 with NI 447x for example, set
AI.EnhancedAliasRejectionEnable to FALSE on all devices.
Channel Order
On DSA devices, you must list channels in a task in ascending order. For example, if
your task includes ai0 and ai1, you must arrange the channel list such that ai0
precedes ai1.
This constraint applies to virtual channels as well as physical channels. For example,
if you include a virtual channel for ai0 named vibration and a virtual channel for ai1
named proxProbe, vibration must precede proxProbe in the channel list.
DSA, C Series, and the DAQmx I/O Server
DSA devices and C Series Delta-Sigma devices do not support the DAQmx I/O Server.
Filter Delay Removal
NI 4302, 4303, 4304, 4305, 433x, 4340, 4464, 4466, 4467, 4480, 4481, and 449x devices
support filter delay removal, which automatically discards filter delay samples. The
AI.RemoveFilterDelay attribute/property controls the filter delay removal.
On NI 449x devices, the AI.RemoveFilterDelay attribute/property is disabled by
default.
On NI 4302, 4303, 4304, 4305, 433x, 4340, 4464, 4466, 4467, 4480, and 4481 devices,
the AI.RemoveFilterDelay attribute/property is enabled by default. On the NI
4330/4331, filter delay removal is always enabled.
On NI 4302, 4303, 4304, 4305, 4339, 4340, 4464, 4466, 4467, 4480, and 4481 devices,
you can use the AI.FilterDelayAdjustment attribute/property to further adjust which
samples to discard. This adjustment is relative to the amount of filter delay in the
device, which is indicated by the AI.FilterDelay attribute/property.
If you disable the AI.RemoveFilterDelay attribute/property, you must compensate
for filter delay samples. Refer to your device documentation for information on how
many filter delay samples to compensate for on your device.
Filter Delay (DSA, C Series, and NI 433x)
The delta-sigma ADCs and DACs on DSA devices, C Series Delta-Sigma devices, and
NI 433x devices employ digital filtering that imparts a delay of several sample
intervals. The filter delays are equal in a homogeneous system, so these delays
cancel out when performing phase measurements between channels. However, the
filter delays differ in a heterogeneous system. This can introduce errors in phase
comparisons between channels on different devices or between channels on similar
devices running at different rates. Such phase errors are always deterministic, and
you can account for them in software.
Gain for DSA Devices
On DSA devices, each gain setting corresponds to a particular range centered on 0 V.
The gain settings are specified in decibels (dB), where the 0 dB reference is the
default range of ±10 V.
For analog input operations, a negative gain value implies attenuation of the signal
before the ADC, increasing the range beyond ±10 V. Thus, an input gain setting of –10
dB corresponds to an input range of ±31.6 V. On analog output, a negative gain value
implies attenuation following the DAC. This decreases the output range. For
instance, an output gain setting of –20 dB corresponds to an output range of ±1 V.
NI-DAQmx has three separate attribute/property sets you can use to control the
hardware gain setting. Each has a different priority. If you write values to two or
more of these attributes/properties that correspond to different hardware gain
settings, the one with the highest priority will determine the hardware behavior.
Gain Attributes/Properties
The gain attributes/properties AI.Gain and AO.Gain set the amount of gain to
apply to the signal. These properties are set in decibels referenced to 10 V.
These properties have the highest priority in NI-DAQmx.
548 ni.com
NI-DAQmx
Range Attributes/Properties
The range attributes/properties AI.Rng.High, AI.Rng.Low, AO.DAC.Rng.High,
and AO.DAC.Rng.Low define the maximum and minimum voltages you can
acquire or generate. The range attributes/properties have a lower priority
than the gain attributes/properties, but a higher priority than the maximum
and minimum attributes/properties.
Maximum and Minimum Attributes/Properties
The maximum and minimum attributes/properties AI.Max, AI.Min, AO.Max,
and AO.Min specify values in engineering units that define the range. These
attributes/properties have the lowest priority in NI-DAQmx. They are also the
most commonly used since you can set them immediately when an NI-DAQmx
task is created.
Note:
■ You cannot enable IEPE excitation on
DSA devices when the terminal
configuration is differential. The
A DC offset is generated equal to the product of the excitation current and sensor
impedance when IEPE signal conditioning is enabled. To remove the unwanted
offset, you should enable AC coupling. Using DC coupling with IEPE excitation
enabled is appropriate only if the offset does not exceed the voltage range of the
channel.
Devices are listed as examples and are not intended to be a comprehensive list.
Refer to the device documentation for the IEPE specifications of your device.
Input Coupling
You can configure each AI channel of your DSA device to be either AC or DC coupled,
with the exception of the NI 4495, the NI 4496, and the NI 4498 devices, which are AC
coupled only. If you select DC coupling, any DC offset present in the source signal is
passed to the ADC. The DC-coupled configuration is usually best if the signal source
has only small amounts of offset voltage, less than ±100 mV, or if the DC content of
the acquired signal is important.
If the source has a significant amount of unwanted DC offset (bias voltage), you
should select AC coupling to take full advantage of the input dynamic range.
Selecting AC coupling enables a single-pole, high-pass resistor-capacitor (RC) filter
into the positive and negative signal path. Refer to your device documentation for
additional information on the filter circuitry.
Use the NI-DAQmx Channel attribute/property AI.Coupling to set the input coupling
mode on your DSA device.
550 ni.com
NI-DAQmx
Simultaneous Tasks
The following devices can run multiple tasks simultaneously on some subsystems.
■ NI 4302, 4303, 4304, 4305, 4339, 4340, 4463, 4464, 4466, and 4467
■ NI 6533 and 6534
■ cDAQ-9132, 9133, 9134, 9135, 9136, 9137, 9174, 9178, 9179, 9184, 9185,
9188, 9188XT, and 9189
■ TS-15000 and TS-15010
■ cRIO-9040, 9041, 9042, 9043, 9045, 9046, 9047, 9048, 9049, 9053, 9054, 9055,
9056, 9057, and 9058
■ sbRIO-9603, 9608, 9609, 9628, 9629, and 9638
Each timing engine can control up to eight channels. If a task has more than eight
channels, NI-DAQmx automatically uses multiple timing engines for the task,
synchronizing and sharing settings across all timing engines. For example, if a task
has 10 channels, NI-DAQmx uses two timing engines for the task, which leaves two
timing engines for other tasks. If the task has 32 channels, all four timing engines are
used for one task.
552 ni.com
NI-DAQmx
Each bank of 8 ADCs (ai0:7, ai8:15, ai16:23, ai23:31) must all be in the same sample
mode (buffered or hardware timed single point). For example, if ai0 is used in a task
configured for hardware timed single point, any task using ai1:7 must also use the
hardware timed single point sample mode.
Each channel's gain can be independently configured regardless of what task it's in
or what sample mode it's used with.
NI 4339, 4463, and 4464 Simultaneous Tasks
NI 4339, 4463, and 4464 devices can run up to two tasks simultaneously, each using
independent timing and triggering configurations. Each task uses one of the two
timing engines on the device.
The NI 4339 only supports running a single buffered task and a single hardware-
timed single-point task simultaneously.
NI 4340 Simultaneous Tasks
NI 4340 devices can run up to four tasks simultaneously, each using independent
timing and triggering configurations. Each task uses one of the four timing engines
on the device.
NI 4480 and 4481 Simultaneous Tasks
NI 4480 and 4481 devices can run up to three tasks simultaneously, each using
independent timing and triggering configurations. Each task uses one of the three
timing engines on the device.
Each timing engine can be individually configured for frequency-domain mode
(Sample Rate ≤ 1.25 MS/s) or time-domain mode (Sample Rate > 1.25 MS/s). For
information on the differences between frequency-domain and time-domain mode
refer to the PXIe-4480/4481 User Manual.
Hardware-Timed Tasks
Hardware-timed tasks require timing information from the System Timing
Controller to use for sample clocks, reference clocks, triggers, and so on.
The System Timing Controller for the Gen II chassis has the following timing engines
built in:
554 ni.com
NI-DAQmx
Software-Timed Tasks
Most software-timed tasks do not require a signal from the System Timing
Controller to run. Software timed means the host computer is controlling how often
a sample is read from or written to the C Series module.
Analog Input tasks will still use one of the AI timing engines, so the limit for AI
tasks is always the same as hardware times tasks. Each counter input task using
an NI 9361 will also use an AI timing engine. This is not the case for AO, DI, or DO.
Subsequently, the software timed task limits for these types of acquisitions depends
on the number of channels you have available to use. See following table for a
summary.
556 ni.com
NI-DAQmx
Tasks can contain channels from multiple devices for these devices:
■ C Series
■ FieldDAQ
■ S Series
■ DSA, SC Express, and X Series
■ All channels in the task must be of the same I/O type. Multiple counter I/O
channels are only allowed for Devices That Support Multi-Counter Tasks.
■ If the task includes channels from a mixture of C Series Delta-Sigma devices,
you must account for filter delay differences between the devices. This delay
is also known as the input delay. Refer to your device specifications for the
value.
■ The modules must all be in the same NI CompactDAQ chassis or meet the
conditions for multichassis device tasks.
Note:
■ AI tasks containing only 16-bit or lower
resolution AI modules use half the USB
bandwidth of tasks with 24-bit AI
modules.
■ The format of raw data returned by a C
Series AI task varies depending on if any
24-bit AI modules are in the task and
might not correspond to the order of the
channels in the task. Scaled or unscaled
data is preferable to raw data with the NI
CompactDAQ chassis.
■ The acquisition mode of the NI 9775
will vary depending on the other modules
in the task. If the task uses only NI 9775
558 ni.com
NI-DAQmx
Exceptions
■ The NI 9361 does not support multichassis device tasks.
■ The NI 9260 must drive the idle output to zero. If you don't, you will receive
an error.
Analog Input
■ USB X Series Devices
You cannot use USB X Series devices in multidevice tasks.
■ PCIe X Series Devices
You must use a RTSI cable to connect the devices, and you must identify the
cable in MAX.
■ PXI/PXIe Devices
■ The devices must be in a single chassis, and you must identify the chassis
in MAX.
■NI-DAQmx accounts for filter delay differences between devices with some
qualifications:
560 ni.com
NI-DAQmx
■ NI 4461 and 4462 devices lack the ability to compensate for filter
delay.
■ For all other devices, if the task includes channels from different
device families, NI-DAQmx will account for filter delay differences
between the devices.
Use the following table to check the multidevice task compatibility of any one
device to another device. A checkmark in a cell indicates that the devices in the
corresponding row and column can be used together in a multidevice task. For
groups of more than two devices, every device must be compatible with every
other device. An example of a group of devices that can be used in a multidevice
task is the NI 4300, 4353, 4357 and PXIe X Series (63xx) as all of these devices are
compatible with every other device listed in the group.
4353 - - - - - - - - - -
4357 - - - - - - - - - - - -
4461 - - - - - - - - -
/
4462
4464 - - - -
4466
/
4467
4480 - - - - -
/
4481
449x - - - - - - - - - - - - -
6386 - - - - - -
/
6396
Othe - - -
rX
Seri
es
(63x
x)
Analog Output
■ PXIe-4463, 4466, and 4467 devices
The devices must be in a single chassis and the chassis must be identified in
MAX. All devices in the task must be PXIe-4463s.
■ PXIe X Series, NI 4322, and NI 6738/6739 Devices
The devices must be in a single chassis and the chassis must be identified in
MAX.
■ PCIe X Series Devices
You must use a RTSI cable to connect the devices, and you must identify the
cable in MAX.
■ USB X Series Devices
562 ni.com
NI-DAQmx
■ All Devices
All channels in the task must be analog input channels.
When you include channels from different S Series devices and use an
external clock setup, you must import the external clock into the device with
the longest pipeline of all the devices in the task. Failing to do so results in an
incomplete acquisition, with the device importing the clock not receiving
enough sample clock pulses.
■ PXI Devices
The devices must all be in a single chassis, and you must identify the chassis
in MAX.
■ PCI Devices
You must use a RTSI cable to connect the devices, and you must identify the
cable in MAX.
■ NI FD-11637
■ PXIe-433x
■ NI 9218
■ NI 9219
■ NI 9235
■ NI 9236
■ NI 9237
564 ni.com
NI-DAQmx
■ NI 9237
■ NI 9238
■ NI 9239
■ NI 9242
■ NI 9244
■ NI 9246
■ NI 9247
■ NI 9250
■ NI 9251
■ NI 9260
566 ni.com
NI-DAQmx
Common Mode Range Error Channels returns the names of the virtual channels that
exceed the common-mode input range.
If a common-mode voltage out of range is detected, the accuracy of the data on any
channel in the task may be impacted. If a thermocouple is connected to the device,
but is not in the task, make sure the channel does not exceed the common-mode
voltage range. A floating thermocouple, or a channel that is left unconnected, will
not exceed the common-mode voltage range. Refer to the devices Specifications
document for more information about the common-mode voltage range.
Differential (DIFF)
CompactRIO Considerations
This section contains information on using the following CompactRIO and
CompactRIO single-board controllers with NI-DAQmx:
■ cRIO-9040, 9041, 9042, 9043, 9045, 9046, 9047, 9048, 9049, 9053, 9054, 9055,
9056, 9057, and 9058 controllers.
■ sbRIO-9603, 9608, 9609, 9628, 9629, and 9638 controllers.
■ Real-Time (NI-DAQmx)
■ Real-Time Scan
■ LabVIEW FPGA
In order for DAQmx to communicate with the module, the module must be in
Real-Time (NI-DAQmx) mode.
568 ni.com
NI-DAQmx
Model Names
CompactRIO may use slightly different C Series model names and product IDs
compared to CompactDAQ. For CompactRIO, see C Series Module IDs on ni.com.
Timing Considerations
CompactRIO controllers handle sampling rate and the default value for the
hardware-timed mode differently than CompactDAQ chassis.
In a CompactRIO or Single-Board RIO controller with C Series Slow Sample devices,
such as the NI 9211, if the sampling rate of a hardware-timed acquisition exceeds
the maximum sampling rate of the module, DAQmx generates warning or errors.
When a Slow Sample device is in the same task as a non-Slow Sample device,
exceeding the maximum sampling rate of the Slow Sample device results in the
most recently acquired sample being read multiple times. In this scenario, the
first sample of a hardware-timed acquisition with C Series Slow Sample devices is
sampled when the task is committed.
■ Four fixed direction LabVIEW FPGA to ■ Two fixed direction LabVIEW FPGA to
NI-DAQmx Lines: NI-DAQmx Lines:
■ cRIO_Trig0, cRIO_Trig1, cRIO_Trig2, ■ cRIO_Trig0 and cRIO_Trig1 are
and cRIO_Trig3 are terminals that terminals that are driven from LabVIEW
FPGA to NI-DAQmx.
570 ni.com
NI-DAQmx
■ NI 9361
Digital AI Filtering
The NI 4302, 4303, 4304, 4305, 4339, 4480, and 4481 modules have a user-
configurable lowpass filter for their analog input channels. This filtering is
implemented with a digital elliptical filter. It is configured independently of the
tracking anti-aliasing filter. It may be helpful when measuring in an environment
with excessive high frequency noise below the anti-aliasing filter's cutoff.
When sampling in hardware-timed single point mode, the filter is always enabled.
You can set or query its cutoff frequency using the AI.DigFltr.Lowpass.CutoffFreq
attribute/property. If your application does not require this additional filtering,
leave this property set to its default value. This will configure the widest bandwidth
filter possible.
572 ni.com
NI-DAQmx
NI-DAQmx returns all data regardless of whether an excitation fault happens. If your
application needs excitation fault checking, you should read the excitation fault
attributes/properties after each call to read. Your program should discard
questionable data or return a flag when NI-DAQmx reports an excitation fault.
The NI 9218 can detect if there is an overcurrent fault between EX+ and EX- pins of
either channel for either the strain mode case or the powered sensor measurement
case. When the NI 9218 is configured for powered sensor measurement, which
requires a +12 V excitation, it can also detect the absence of the required 9-30 V
external power supply connected to the Vsup terminal. Both of these types of faults
are reported as excitation faults.
The PXIe-4340 can detect if there is an overcurrent fault between the EX+ and EX-
pins of any channel. This fault occurs when a voltage source is connected to the EX+
and EX- pins of any channel, or the load impedance is too low (excessive current).
Ensure that only the primary winding of an LVDT/RVDT sensor is connected to the
EX+ and EX- pins of any channel on this module.
Excitation
The FD-11637 supports internal excitation at 3 V, 5 V, and 10 V. 10 V excitation is only
supported in Full-Bridge and Half-Bridge modes.
574 ni.com
NI-DAQmx
Quarter-Bridge Completion
The FD-11637 supports internal quarter-bridge completion with resistances of 120 ?
and 350 ?.
Shunt Calibration
The FD-11637 has a built-in resistor for shunt calibration. Shunt calibration also only
works in Quarter-Bridge mode.
The NI-DAQmx input limits fault properties allow you to check for samples that are
outside the configurable upper and lower limits for each channel in the task.
The fault detection applies to both positive and negative inputs. For instance, if you
specify a lower limit of 2 mA and an upper limit of 12 mA, NI-DAQmx detects a fault
at 15 mA and -15 mA, but not at -6 mA because it is in the range of -2 mA to -12 mA.
AI.InputLimitsFaultDetectEnable—Enables input limits fault detection.
AI.InputLimitsFaultDetect.UpperLimit—Specifies the level of the upper limit for
input limits detection. An input sample outside the upper and lower bounds causes
a fault.
AI.InputLimitsFaultDetect.LowerLimit—Specifies the level of the lower limit for
input limits detection. An input sample outside the upper and lower bounds causes
a fault.
InputLimitsFaultChansExist—Indicates if the device or devices detected a sample
that was outside the upper or lower limits configured for each channel in the task.
Reading this property clears the input limits fault channel status for all channels in
the task.
InputLimitsFaultChans—Lists the virtual channels that have detected samples
beyond the upper or lower limits configured for each channel in the task. You must
read InputLimitsFaultChansExist before you read this property.
NI 9775 Considerations
576 ni.com
NI-DAQmx
The NI 9775 module operates in two different modes, Continuous Mode and Record
Mode. You can set the NI 9775 operation to be Record Mode by setting the
DataXferReqCond attribute/property to When Acquisition Complete. Any other
supported value of the DataXferReqCond attribute/property will force the NI 9775
into Continuous Mode. If a value is not set for DataXferReqCond attribute/property,
the module will coerce a value based on other task settings.
Continuous Mode
While in Continuous Mode, the NI 9775 returns data as the data is acquired from the
source.
The module does not use the module's onboard buffer when in Continuous Mode.
NI-DAQmx will automatically put the NI 9775 in Continuous Mode if the task is set
for continuous acquisition or if the specified rate is less than or equal to 4 MS/s
aggregate for each module.
Record Mode
While in Record Mode, the data is stored on a buffer in the module until the entire
acquisition is complete. The data on the buffer is stored in records based on a
trigger signal sent to the device.
Acquisition is considered complete when any of the following conditions are
satisfied:
■ The maximum number of triggers are detected and the data for all detected
triggers have been acquired.
By default, the NI 9775 acquires one record. To acquire more than one record,
you can set the Retriggerable attribute/property to true, which will give you
as many records that can fit in the buffer, up to 32 records. Or, you can use
the Maximum Number of Triggers to Detect attribute/property to specify how
many records you want, up to 32 records. Any ignored triggers do not count
towards the maximum of 32 records.
■ The Trigger Window has elapsed.
This time setting can be configured through the Trigger Window attribute/
property. The Trigger Window begins when the modules receive a sync pulse,
which synchronizes modules in a task. This sync pulse is sent during the
commit stage of the task which happens in the Start Task function/VI. If the
Trigger Window expires, the module finishes acquiring post-trigger data. If the
module is already finished acquiring post-trigger data, the module returns all
of the acquired data.
■ The Retrigger Window has elapsed.
This time setting can be configured through the Retrigger Window attribute/
property. The Retrigger Window begins once the module has detected a
trigger and resets every time it detects another trigger. If the Retrigger
Window expires, the module finishes acquiring post-trigger data. If the
module is already finished acquiring post-trigger data, the module returns
all of the acquired data.
NI-DAQmx will automatically put the NI 9775 in Record Mode if the channels on the
module are used for trigger sources or if the rate is specified to be greater than 4
MS/s aggregate for finite acquisitions. When in Record Mode, the NI 9775 may only
be in the same task as other NI 9775 modules in Record Mode.
578 ni.com
NI-DAQmx
■Up to 4 channels configured as the source, but all of the source channels
must be on the same device when using Analog Multi Edge Triggering.
■ Configuration of a single trigger type. You can have Start or Reference
triggers configured, but not both.
■Retriggering on any edge trigger type: Digital Edge, Analog Edge, and Analog
Multi Edge.
Note: The module will ignore triggers when
acquiring pre-trigger buffer data or post-
trigger data.
NI USB-TC01 Considerations
If you are acquiring data from the device in a NI-DAQmx task or using the device's
temperature logger, the NI USB-TC01 launch screen cannot acquire data.
In MAX, the Reset Device option is disabled for the NI USB-TC01. If you attempt to
reset the device with the Reset Device VI/function, it returns an error if any task is
using the device. To reset the NI USB-TC01, disconnect and reconnect the device.
OpenChansExist reads the open channel condition from the device and caches it in
the driver. Subsequent reads of OpenChans attribute/property will read the channel
information cached in the driver from the previous OpenChansExist query.
NI-DAQmx returns all data whether an open channel is detected. If your application
requires open channel checking, it is recommended that you read the open channel
attributes/properties after each call to Read/Write. Your program should discard
questionable data or return a flag when the driver reports an open channel.
You can also check for shorted channels using the DAQmx Read
OvercurrentChansExist and OvercurrentChans attributes/properties. Refer to
Overcurrent Detection.
Note:
■ NI-DAQmx returns all data whether or
not an open current loop occurs. If your
application requires open current loop
checking, it is recommended that you
read the open current loop attributes/
properties after each call to Read. Your
program should discard questionable
data or return a flag when the driver
reports an open current loop.
■ For Analog Input devices with IEPE, the
IEPE excitation current source must be
580 ni.com
NI-DAQmx
Overcurrent Detection
Two NI-DAQmx Read/Write attributes/properties allow you to check for shorted
channels. The first is OvercurrentChansExist. This attribute/property returns a
Boolean true if one or more channels experience an overcurrent condition. The
second is OvercurrentChans. This attribute/property returns an array of strings
indicating which channels (if any) experienced an overcurrent condition. You must
query the OvercurrentChansExist attribute/property before querying the
OvercurrentChans attribute/property.
OvercurrentChansExist reads the overcurrent condition from the device and caches
it in the driver. Subsequent reads of OvercurrentChans attribute/property will read
the overcurrent channel information cached in the driver from the previous
OvercurrentChansExist query.
582 ni.com
NI-DAQmx
Overtemperature Detection
An overtemperature condition occurs when the ambient temperature of the device
exceeds a safe operating level. The device may disable any overtemperature
channels until the ambient temperature returns to a safe level. Use the
OvertemperatureChansExist attribute/property to determine if the device is
experiencing an overtemperature condition. Devices may have front panel LEDs that
will indicate an overtemperature condition has occurred.
Default Values
The following property values take effect when the task is committed or started.
Pwr.Current.Setpoint
The constant output current, in amperes. If the load draws current greater
than this value, output voltage is reduced and the device operates in constant
current mode.
Pwr.Voltage.Setpoint
The constant output voltage, in volts.
Use the DAQmx Channel property node with the Pwr.IdleOutputBehavior property
to enable or disable power channel output when the task is uncommitted.
Use the DAQmx Channel property node to read the Pwr.OutputState property and
determine the channel state.
584 ni.com
NI-DAQmx
AuxPowerErrorChansExist
Indicates if the device detected something is wrong with an auxiliary power
supply.
AuxPowerErrorChans
Indicates a list of names of any auxiliary power supply error virtual channels.
RemoteSenseErrorChansExist
Indicates if the device detected an error on a hardware or remote sense
connection. You must disable the output and resolve the hardware
connection issue to clear the remote sense error status for all channels in the
task.
RemoteSenseErrorChans
Indicates a list of names of any remote sense error virtual channels.
OvertemperatureChansExist
Indicates if the device detected an overtemperature condition in any virtual
channel in the task. Reading this property clears the overtemperature status
for all channels in the task.
OvertemperatureChans
Indicates a list of names of any overtemperature virtual channels.
ReverseVoltageErrorChansExist
Indicates if the device detected a reverse voltage error in any channel in the
task. Reverse voltage error occurs if the local voltage is equal to the negative
saturated voltage.
ReverseVoltageErrorChans
Indicates a list of names of any reverse voltage error virtual channels.
586 ni.com
NI-DAQmx
588 ni.com
NI-DAQmx
SCC modules that are not listed in the table above do not support dual-stage
configuration. This includes all analog output, digital input, and digital output SCC
modules.
590 ni.com
NI-DAQmx
592 ni.com
NI-DAQmx
594 ni.com
NI-DAQmx
596 ni.com
NI-DAQmx
598 ni.com
NI-DAQmx
600 ni.com
NI-DAQmx
602 ni.com
NI-DAQmx
604 ni.com
NI-DAQmx
606 ni.com
NI-DAQmx
608 ni.com
NI-DAQmx
610 ni.com
NI-DAQmx
highlighted will throw DAQmx errors, and the reasons for the errors are described in
the Use Case and Notes column of the table.
The cDAQ-9185/9189 are tethered chassis that can be daisy-chained to each other or
connected to external networks that support 802.1AS synchronization. To learn
about this feature, refer to the cDAQ-9185/9189 User Manual and the related
concepts in this help.
The FD-116xx are devices that can be daisy-chained to each other and connected to
external networks that support 802.1AS synchronization. To learn about this feature,
refer to your FieldDAQ User Guide and the related concepts in this help.
Excitation
The RM-4339 has a connection for an external excitation source. Each channel can
also use it's own channel-specific internal excitation. Use the AI.Excit.Src attribute/
property to set the excitation connection.
Quarter-Bridge Completion
The RM-4339 includes three internal resistors you can use for quarter-bridge
completion. These resistors are 120 ?, 350 ?, and 1 k?. Use the
AI.Bridge.NomResistance attribute/property to set quarter-bridge completion.
612 ni.com
NI-DAQmx
Shunt Calibration
The RM-4339 includes two independent shunt calibration resistors, named A and B.
You can select which resistor to use using the AI.Bridge.ShuntCal.Select attribute/
property.
You can use an internal or external resistor for shunt resistor A. Use the
AI.Bridge.ShuntCal.ShuntCalASrc attribute/property to set this. Select Built-In to use
the internal 100 k? resistor, or User Provided to use an external resistor.
Shunt resistor B is an internal resistor that you can use only with quarter-bridge
completion. You can use a 50 k? or 100 k? resistor by setting the
AI.Bridge.ShuntCal.ShuntCalBResistance attribute/property.
Note:
The DAQmx Perform Shunt Calibration
function/VI and the Strain Gage Calibration
Wizard in MAX do not support
AI.Bridge.ShuntCal.ShuntCalASrc or
AI.Bridge.ShuntCal.ShuntCalBResistance.
■ NI 6320
■ NI 6321
■ NI 6323
■ NI 6341
■ NI 6343
■ NI 6345
■ NI 6351
■ NI 6353
■ NI 6355
■
NI 6361
■ NI 6363
■ NI 6365
■ NI 6375
X Series Simultaneous Sampling Devices:
■ NI 6346
■ NI 6349
■ NI 6356
■ NI 6358
■ NI 6366
■ NI 6368
■ NI 6374
■ NI 6376
■ NI 6378
■ NI 6386
■ NI 6396
614 ni.com
NI-DAQmx
DAQ Devices
Pinout descriptions in this book include DAQ devices supported by NI-DAQmx.
FD-11601
Pin Signal
Number
1 SP
2 AI-
3 GND/T-
4 AI+
5 T+
FD-11603
616 ni.com
NI-DAQmx
Pin Signal
Number
1, 3, 5 NC
2 AI-
4 AI+
FD-11605
4 Bla
FD-11613
618 ni.com
NI-DAQmx
FD-11614
FD-11634
620 ni.com
NI-DAQmx
FD-11637
TS-15050 DIO P0
622 ni.com
NI-DAQmx
TS-15100
TS-15110
624 ni.com
NI-DAQmx
TS-15120
TS-15130
626 ni.com
NI-DAQmx
TS-15200
USB-4431
Front Panel
628 ni.com
NI-DAQmx
Back Panel
USB-4432
Front Panel
Back Panel
NI 4461/4462
630 ni.com
NI-DAQmx
NI 4463
1 PFI
2 Chassis Ground
3 AO+
4 AO-
NI 447x
NI 449x
This topic covers the NI 4492, NI 4495, NI 4496, NI 4497, NI 4498, and NI 4499.
632 ni.com
NI-DAQmx
S1 AI 7 + AI 15 +
S2 AI 7 – AI 15 –
S3 AI 6 + AI 14 +
S4 AI 6 – AI 14 –
S5 AI 5 + AI 13 +
S6 AI 5 – AI 13 –
S7 AI 4 + AI 12 +
S8 AI 4 – AI 12 –
S9 AI 3 + AI 11 +
S10 AI 3 – AI 11 –
S11 AI 2 + AI 10 +
S12 AI 2 – AI 10 –
S13 AI 1 + AI 9 +
S14 AI 1 – AI 9 –
S15 AI 0 + AI 8 +
S16 AI 0 – AI 8 –
GND 1–9 Ground Ground
Shield Ground Ground
PXIe-4610
USB-6000
634 ni.com
NI-DAQmx
USB-6001
USB-6002
636 ni.com
NI-DAQmx
USB-6003
USB-6008
638 ni.com
NI-DAQmx
USB-6009
NI 6020E
640 ni.com
NI-DAQmx
DAQPad-6020E (BNC)
DAQPad-6052E (BNC)
DAQCard-6062E
642 ni.com
NI-DAQmx
PCI-6010
644 ni.com
NI-DAQmx
NI 6110
NI 6111
646 ni.com
NI-DAQmx
NI 6115
NI 6120
648 ni.com
NI-DAQmx
NI 6122
NI 6123
650 ni.com
NI-DAQmx
NI 6124
652 ni.com
NI-DAQmx
CTR 0 B 45 PFI 10
CTR 1 SRC 42 PFI 3
CTR 1 GATE 41 PFI 4
CTR 1 AUX 46 PFI 11
CTR 1 OUT 40 PFI 13
CTR 1 A 42 PFI 3
CTR 1 Z 41 PFI 4
CTR 1 B 46 PFI 11
FREQ OUT 1 PFI 14
NI 6132
NI 6133
654 ni.com
NI-DAQmx
NI 6143
NI 6154
656 ni.com
NI-DAQmx
USB-6210
658 ni.com
NI-DAQmx
CTR 0 B 2 PFI 1
CTR 1 SRC 4 PFI 3
CTR 1 GATE 3 PFI 2
CTR 1 AUX 4 PFI 3
CTR 1 OUT 7 PFI 5
CTR 1 A 4 PFI 3
CTR 1 Z 2 PFI 1
CTR 1 B 3 PFI 2
FREQ OUT 8 PFI 6
USB-6211
660 ni.com
NI-DAQmx
USB-6212 (BNC)
662 ni.com
NI-DAQmx
CTR 0 A PFI 8
CTR 0 Z PFI 9
CTR 0 B PFI 10
CTR 1 SRC PFI 3
CTR 1 GATE PFI 4
CTR 1 AUX PFI 11
CTR 1 OUT PFI 13
CTR 1 A PFI 3
CTR 1 Z PFI 4
CTR 1 B PFI 11
FREQ OUT PFI 14
664 ni.com
NI-DAQmx
CTR 0 B 45 PFI 10
CTR 1 SRC 42 PFI 3
CTR 1 GATE 41 PFI 4
CTR 1 AUX 46 PFI 11
CTR 1 OUT 40 PFI 13
CTR 1 A 42 PFI 3
CTR 1 Z 41 PFI 4
CTR 1 B 46 PFI 11
FREQ OUT 1 PFI 14
666 ni.com
NI-DAQmx
CTR 0 B 35 PFI 10
CTR 1 SRC 4 PFI 3
CTR 1 GATE 6 PFI 4
CTR 1 AUX 36 PFI 11
CTR 1 OUT 39 PFI 13
CTR 1 A 4 PFI 3
CTR 1 Z 6 PFI 4
CTR 1 B 36 PFI 11
FREQ OUT 40 PFI 14
USB-6215
668 ni.com
NI-DAQmx
CTR 0 B 2 PFI 1
CTR 1 SRC 4 PFI 3
CTR 1 GATE 3 PFI 2
CTR 1 AUX 4 PFI 3
CTR 1 OUT 7 PFI 5
CTR 1 A 4 PFI 3
CTR 1 Z 2 PFI 1
CTR 1 B 3 PFI 2
FREQ OUT 8 PFI 6
USB-6216 (BNC)
670 ni.com
NI-DAQmx
CTR 0 A PFI 8
CTR 0 Z PFI 9
CTR 0 B PFI 10
CTR 1 SRC PFI 3
CTR 1 GATE PFI 4
CTR 1 AUX PFI 11
CTR 1 OUT PFI 13
CTR 1 A PFI 3
CTR 1 Z PFI 4
CTR 1 B PFI 11
FREQ OUT PFI 14
672 ni.com
NI-DAQmx
CTR 0 B 45 PFI 10
CTR 1 SRC 42 PFI 3
CTR 1 GATE 41 PFI 4
CTR 1 AUX 46 PFI 11
CTR 1 OUT 40 PFI 13
CTR 1 A 42 PFI 3
CTR 1 Z 41 PFI 4
CTR 1 B 46 PFI 11
FREQ OUT 1 PFI 14
674 ni.com
NI-DAQmx
CTR 0 B 35 PFI 10
CTR 1 SRC 4 PFI 3
CTR 1 GATE 6 PFI 4
CTR 1 AUX 36 PFI 11
CTR 1 OUT 39 PFI 13
CTR 1 A 4 PFI 3
CTR 1 Z 6 PFI 4
CTR 1 B 36 PFI 11
FREQ OUT 40 PFI 14
USB-6218
676 ni.com
NI-DAQmx
CTR 0 B 34 PFI 9
CTR 1 SRC 4 PFI 3
CTR 1 GATE 3 PFI 2
CTR 1 AUX 35 PFI 10
CTR 1 OUT 7 PFI 5
CTR 1 A 4 PFI 3
CTR 1 Z 3 PFI 2
CTR 1 B 35 PFI 10
FREQ OUT 8 PFI 6
USB-6218 BNC
678 ni.com
NI-DAQmx
8 P0.4 —
9 P0.5 CTR 0 AUX (CTR 0 B)
10 P0.6 CTR 1 AUX (CTR 1 B)
11 P0.7 —
4 P1.0 CTR 0 OUT
5 P1.1 CTR 1 OUT
6 P1.2 FREQ OUT
7 P1.3 —
12 P1.4 —
13 P1.5 —
14 P1.6 —
15 P1.7 —
PCI/PXI-6220
680 ni.com
NI-DAQmx
CTR 0 B 45 PFI 10
CTR 1 SRC 42 PFI 3
CTR 1 GATE 41 PFI 4
CTR 1 AUX 46 PFI 11
CTR 1 OUT 40 PFI 13
CTR 1 A 42 PFI 3
CTR 1 Z 41 PFI 4
CTR 1 B 46 PFI 11
FREQ OUT 1 PFI 14
PCI-6221 (37-Pin)
PCI/PXI-6221 (68-Pin)
682 ni.com
NI-DAQmx
CTR 0 B 45 PFI 10
CTR 1 SRC 42 PFI 3
CTR 1 GATE 41 PFI 4
CTR 1 AUX 46 PFI 11
CTR 1 OUT 40 PFI 13
CTR 1 A 42 PFI 3
CTR 1 Z 41 PFI 4
CTR 1 B 46 PFI 11
FREQ OUT 1 PFI 14
USB-6221 (BNC)
684 ni.com
NI-DAQmx
686 ni.com
NI-DAQmx
PCI/PXI-6224
688 ni.com
NI-DAQmx
PCI/PXI-6225
690 ni.com
NI-DAQmx
692 ni.com
NI-DAQmx
PCI/PXI-6229
694 ni.com
NI-DAQmx
CTR 1 A 42 PFI 3
CTR 1 Z 41 PFI 4
CTR 1 B 46 PFI 11
FREQ OUT 1 PFI 14
USB-6229 BNC
696 ni.com
NI-DAQmx
698 ni.com
NI-DAQmx
CTR 0 Z 83 PFI 9
CTR 0 B 85 PFI 10
CTR 1 SRC 76 PFI 3
CTR 1 GATE 77 PFI 4
CTR 1 AUX 87 PFI 11
CTR 1 OUT 91 PFI 13
CTR 1 A 76 PFI 3
CTR 1 Z 77 PFI 4
CTR 1 B 87 PFI 11
FREQ OUT 93 PFI 14
PCI/PXI-6230
700 ni.com
NI-DAQmx
PCI/PXI-6232
702 ni.com
NI-DAQmx
CTR 1 B 16 PFI 5
FREQ OUT 18 PFI 8
PCI/PXI-6233
CTR 0 Z 32 PFI 1
CTR 0 B 33 PFI 2
CTR 1 SRC 15 PFI 3
CTR 1 GATE 34 PFI 4
CTR 1 AUX 16 PFI 5
CTR 1 OUT 36 PFI 7
CTR 1 A 15 PFI 3
CTR 1 Z 34 PFI 4
CTR 1 B 16 PFI 5
FREQ OUT 18 PFI 8
PCI/PXI-6236
704 ni.com
NI-DAQmx
PCI/PXI-6238
706 ni.com
NI-DAQmx
CTR 1 B 16 PFI 5
FREQ OUT 18 PFI 8
PCI/PXI-6239
CTR 0 Z 32 PFI 1
CTR 0 B 33 PFI 2
CTR 1 SRC 15 PFI 3
CTR 1 GATE 34 PFI 4
CTR 1 AUX 16 PFI 5
CTR 1 OUT 36 PFI 7
CTR 1 A 15 PFI 3
CTR 1 Z 34 PFI 4
CTR 1 B 16 PFI 5
FREQ OUT 18 PFI 8
PCI/PXI-6250
708 ni.com
NI-DAQmx
PCI/PCIe/PXI/PXIe-6251
710 ni.com
NI-DAQmx
USB-6251 BNC
712 ni.com
NI-DAQmx
714 ni.com
NI-DAQmx
PCI/PXI-6254
716 ni.com
NI-DAQmx
PCI/PXI-6255
718 ni.com
NI-DAQmx
CTR 1 Z 41 PFI 4
CTR 1 B 46 PFI 11
FREQ OUT 1 PFI 14
CTR 0 A 37 PFI 8
CTR 0 Z 3 PFI 9
CTR 0 B 45 PFI 10
CTR 1 SRC 42 PFI 3
CTR 1 GATE 41 PFI 4
CTR 1 AUX 46 PFI 11
CTR 1 OUT 40 PFI 13
CTR 1 A 42 PFI 3
CTR 1 Z 41 PFI 4
CTR 1 B 46 PFI 11
FREQ OUT 1 PFI 14
720 ni.com
NI-DAQmx
PCI/PCIe/PXI/PXIe-6259
722 ni.com
NI-DAQmx
USB-6259 BNC
724 ni.com
NI-DAQmx
726 ni.com
NI-DAQmx
728 ni.com
NI-DAQmx
CTR 0 B 85 PFI 10
CTR 1 SRC 76 PFI 3
CTR 1 GATE 77 PFI 4
CTR 1 AUX 87 PFI 11
CTR 1 OUT 91 PFI 13
CTR 1 A 76 PFI 3
CTR 1 Z 77 PFI 4
CTR 1 B 87 PFI 11
FREQ OUT 93 PFI 14
PCI/PXI-6280
730 ni.com
NI-DAQmx
PCI/PXI-6281
732 ni.com
NI-DAQmx
734 ni.com
NI-DAQmx
CTR 0 A 81 PFI 8
CTR 0 Z 83 PFI 9
CTR 0 B 85 PFI 10
CTR 1 SRC 76 PFI 3
CTR 1 GATE 77 PFI 4
CTR 1 AUX 87 PFI 11
CTR 1 OUT 91 PFI 13
CTR 1 A 76 PFI 3
CTR 1 Z 77 PFI 4
CTR 1 B 87 PFI 11
FREQ OUT 93 PFI 14
PCI/PXI-6284
736 ni.com
NI-DAQmx
CTR 1 Z 41 PFI 4
CTR 1 B 46 PFI 11
FREQ OUT 1 PFI 14
PCI/PXI-6289
738 ni.com
NI-DAQmx
740 ni.com
NI-DAQmx
CTR 0 B 85 PFI 10
CTR 1 SRC 76 PFI 3
CTR 1 GATE 77 PFI 4
CTR 1 AUX 87 PFI 11
CTR 1 OUT 91 PFI 13
CTR 1 A 76 PFI 3
CTR 1 Z 77 PFI 4
CTR 1 B 87 PFI 11
FREQ OUT 93 PFI 14
PCIe-6320
742 ni.com
NI-DAQmx
CTR 0 A 37 (PFI 8)
CTR 0 Z 3 (PFI 9)
CTR 0 B 45 (PFI 10)
CTR 1 SRC 42 (PFI 3)
CTR 1 GATE 41 (PFI 4)
CTR 1 AUX 46 (PFI 11)
CTR 1 OUT 40 (PFI 13)
CTR 1 A 42 (PFI 3)
CTR 1 Z 41 (PFI 4)
CTR 1 B 46 (PFI 11)
CTR 2 SRC 11 (PFI 0)
CTR 2 GATE 10 (PFI 1)
CTR 2 AUX 43 (PFI 2)
CTR 2 OUT 1 (PFI 14)
CTR 2 A 11 (PFI 0)
CTR 2 Z 10 (PFI 1)
CTR 2 B 43 (PFI 2)
CTR 3 SRC 6 (PFI 5)
CTR 3 GATE 5 (PFI 6)
CTR 3 AUX 38 (PFI 7)
CTR 3 OUT 39 (PFI 15)
CTR 3 A 6 (PFI 5)
CTR 3 Z 5 (PFI 6)
CTR 3 B 38 (PFI 7)
FREQ OUT 1 (PFI 14)
PCIe-6321
744 ni.com
NI-DAQmx
CTR 0 A 37 (PFI 8)
CTR 0 Z 3 (PFI 9)
CTR 0 B 45 (PFI 10)
CTR 1 SRC 42 (PFI 3)
CTR 1 GATE 41 (PFI 4)
CTR 1 AUX 46 (PFI 11)
CTR 1 OUT 40 (PFI 13)
CTR 1 A 42 (PFI 3)
CTR 1 Z 41 (PFI 4)
CTR 1 B 46 (PFI 11)
CTR 2 SRC 11 (PFI 0)
CTR 2 GATE 10 (PFI 1)
CTR 2 AUX 43 (PFI 2)
CTR 2 OUT 1 (PFI 14)
CTR 2 A 11 (PFI 0)
CTR 2 Z 10 (PFI 1)
CTR 2 B 43 (PFI 2)
CTR 3 SRC 6 (PFI 5)
CTR 3 GATE 5 (PFI 6)
CTR 3 AUX 38 (PFI 7)
CTR 3 OUT 39 (PFI 15)
CTR 3 A 6 (PFI 5)
CTR 3 Z 5 (PFI 6)
CTR 3 B 38 (PFI 7)
FREQ OUT 1 (PFI 14)
PCIe-6323
746 ni.com
NI-DAQmx
PCIe/PXIe-6341
748 ni.com
NI-DAQmx
CTR 0 A 37 (PFI 8)
CTR 0 Z 3 (PFI 9)
CTR 0 B 45 (PFI 10)
CTR 1 SRC 42 (PFI 3)
CTR 1 GATE 41 (PFI 4)
CTR 1 AUX 46 (PFI 11)
CTR 1 OUT 40 (PFI 13)
CTR 1 A 42 (PFI 3)
CTR 1 Z 41 (PFI 4)
CTR 1 B 46 (PFI 11)
CTR 2 SRC 11 (PFI 0)
CTR 2 GATE 10 (PFI 1)
CTR 2 AUX 43 (PFI 2)
CTR 2 OUT 1 (PFI 14)
CTR 2 A 11 (PFI 0)
CTR 2 Z 10 (PFI 1)
CTR 2 B 43 (PFI 2)
CTR 3 SRC 6 (PFI 5)
CTR 3 GATE 5 (PFI 6)
CTR 3 AUX 38 (PFI 7)
CTR 3 OUT 39 (PFI 15)
CTR 3 A 6 (PFI 5)
CTR 3 Z 5 (PFI 6)
CTR 3 B 38 (PFI 7)
FREQ OUT 1 (PFI 14)
USB-6341
750 ni.com
NI-DAQmx
USB-6341 (BNC)
752 ni.com
NI-DAQmx
PCIe-6343
754 ni.com
NI-DAQmx
USB-6343
756 ni.com
NI-DAQmx
USB-6343 (BNC)
758 ni.com
NI-DAQmx
PXIe-6345
760 ni.com
NI-DAQmx
CTR 1 A 42 (PFI 3)
CTR 1 Z 41 (PFI 4)
CTR 1 B 46 (PFI 11)
CTR 2 SRC 11 (PFI 0)
CTR 2 GATE 10 (PFI 1)
CTR 2 AUX 43 (PFI 2)
CTR 2 OUT 1 (PFI 14)
CTR 2 A 11 (PFI 0)
CTR 2 Z 10 (PFI 1)
CTR 2 B 43 (PFI 2)
CTR 3 SRC 6 (PFI 5)
CTR 3 GATE 5 (PFI 6)
CTR 3 AUX 38 (PFI 7)
CTR 3 OUT 39 (PFI 15)
CTR 3 A 6 (PFI 5)
CTR 3 Z 5 (PFI 6)
CTR 3 B 38 (PFI 7)
FREQ OUT 1 (PFI 14)
PCIe-6346
762 ni.com
NI-DAQmx
USB-6346 (BNC)
764 ni.com
NI-DAQmx
766 ni.com
NI-DAQmx
PXIe-6349
768 ni.com
NI-DAQmx
770 ni.com
NI-DAQmx
PCIe-6351
772 ni.com
NI-DAQmx
CTR 1 Z 41 (PFI 4)
CTR 1 B 46 (PFI 11)
CTR 2 SRC 11 (PFI 0)
CTR 2 GATE 10 (PFI 1)
CTR 2 AUX 43 (PFI 2)
CTR 2 OUT 1 (PFI 14)
CTR 2 A 11 (PFI 0)
CTR 2 Z 10 (PFI 1)
CTR 2 B 43 (PFI 2)
CTR 3 SRC 6 (PFI 5)
CTR 3 GATE 5 (PFI 6)
CTR 3 AUX 38 (PFI 7)
CTR 3 OUT 39 (PFI 15)
CTR 3 A 6 (PFI 5)
CTR 3 Z 5 (PFI 6)
CTR 3 B 38 (PFI 7)
FREQ OUT 1 (PFI 14)
USB-6351
774 ni.com
NI-DAQmx
PCIe-6353
776 ni.com
NI-DAQmx
USB-6353
778 ni.com
NI-DAQmx
PXIe-6355
780 ni.com
NI-DAQmx
CTR 1 A 42 (PFI 3)
CTR 1 Z 41 (PFI 4)
CTR 1 B 46 (PFI 11)
CTR 2 SRC 11 (PFI 0)
CTR 2 GATE 10 (PFI 1)
CTR 2 AUX 43 (PFI 2)
CTR 2 OUT 1 (PFI 14)
CTR 2 A 11 (PFI 0)
CTR 2 Z 10 (PFI 1)
CTR 2 B 43 (PFI 2)
CTR 3 SRC 6 (PFI 5)
CTR 3 GATE 5 (PFI 6)
CTR 3 AUX 38 (PFI 7)
CTR 3 OUT 39 (PFI 15)
CTR 3 A 6 (PFI 5)
CTR 3 Z 5 (PFI 6)
CTR 3 B 38 (PFI 7)
FREQ OUT 1 (PFI 14)
PXIe-6356
782 ni.com
NI-DAQmx
CTR 0 Z 3 (PFI 9)
CTR 0 B 45 (PFI 10)
CTR 1 SRC 42 (PFI 3)
CTR 1 GATE 41 (PFI 4)
CTR 1 AUX 46 (PFI 11)
CTR 1 OUT 40 (PFI 13)
CTR 1 A 42 (PFI 3)
CTR 1 Z 41 (PFI 4)
CTR 1 B 46 (PFI 11)
CTR 2 SRC 11 (PFI 0)
CTR 2 GATE 10 (PFI 1)
CTR 2 AUX 43 (PFI 2)
CTR 2 OUT 1 (PFI 14)
CTR 2 A 11 (PFI 0)
CTR 2 Z 10 (PFI 1)
CTR 2 B 43 (PFI 2)
CTR 3 SRC 6 (PFI 5)
CTR 3 GATE 5 (PFI 6)
CTR 3 AUX 38 (PFI 7)
CTR 3 OUT 39 (PFI 15)
CTR 3 A 6 (PFI 5)
CTR 3 Z 5 (PFI 6)
CTR 3 B 38 (PFI 7)
FREQ OUT 1 (PFI 14)
USB-6356
784 ni.com
NI-DAQmx
CTR 1 Z 77 (PFI 4)
CTR 1 B 87 (PFI 11)
CTR 2 SRC 73 (PFI 0)
CTR 2 GATE 74 (PFI 1)
CTR 2 AUX 75 (PFI 2)
CTR 2 OUT 93 (PFI 14)
CTR 2 A 73 (PFI 0)
CTR 2 Z 74 (PFI 1)
CTR 2 B 75 (PFI 2)
CTR 3 SRC 78 (PFI 5)
CTR 3 GATE 79 (PFI 6)
CTR 3 AUX 80 (PFI 7)
CTR 3 OUT 95 (PFI 15)
CTR 3 A 78 (PFI 5)
CTR 3 Z 79 (PFI 6)
CTR 3 B 80 (PFI 7)
FREQ OUT 93 (PFI 14)
USB-6356 (BNC)
786 ni.com
NI-DAQmx
PXIe-6358
788 ni.com
NI-DAQmx
PCIe/PXIe-6361
790 ni.com
NI-DAQmx
CTR 1 Z 41 (PFI 4)
CTR 1 B 46 (PFI 11)
CTR 2 SRC 11 (PFI 0)
CTR 2 GATE 10 (PFI 1)
CTR 2 AUX 43 (PFI 2)
CTR 2 OUT 1 (PFI 14)
CTR 2 A 11 (PFI 0)
CTR 2 Z 10 (PFI 1)
CTR 2 B 43 (PFI 2)
CTR 3 SRC 6 (PFI 5)
CTR 3 GATE 5 (PFI 6)
CTR 3 AUX 38 (PFI 7)
CTR 3 OUT 39 (PFI 15)
CTR 3 A 6 (PFI 5)
CTR 3 Z 5 (PFI 6)
CTR 3 B 38 (PFI 7)
FREQ OUT 1 (PFI 14)
USB-6361 (BNC)
792 ni.com
NI-DAQmx
794 ni.com
NI-DAQmx
796 ni.com
NI-DAQmx
PCIe/PXIe-6363
798 ni.com
NI-DAQmx
USB-6363 (BNC)
800 ni.com
NI-DAQmx
802 ni.com
NI-DAQmx
804 ni.com
NI-DAQmx
PXIe-6365
806 ni.com
NI-DAQmx
PXIe-6366
808 ni.com
NI-DAQmx
CTR 0 Z 3 (PFI 9)
CTR 0 B 45 (PFI 10)
CTR 1 SRC 42 (PFI 3)
CTR 1 GATE 41 (PFI 4)
CTR 1 AUX 46 (PFI 11)
CTR 1 OUT 40 (PFI 13)
CTR 1 A 42 (PFI 3)
CTR 1 Z 41 (PFI 4)
CTR 1 B 46 (PFI 11)
CTR 2 SRC 11 (PFI 0)
CTR 2 GATE 10 (PFI 1)
CTR 2 AUX 43 (PFI 2)
CTR 2 OUT 1 (PFI 14)
CTR 2 A 11 (PFI 0)
CTR 2 Z 10 (PFI 1)
CTR 2 B 43 (PFI 2)
CTR 3 SRC 6 (PFI 5)
CTR 3 GATE 5 (PFI 6)
CTR 3 AUX 38 (PFI 7)
CTR 3 OUT 39 (PFI 15)
CTR 3 A 6 (PFI 5)
CTR 3 Z 5 (PFI 6)
CTR 3 B 38 (PFI 7)
FREQ OUT 1 (PFI 14)
USB-6366 (BNC)
810 ni.com
NI-DAQmx
812 ni.com
NI-DAQmx
CTR 1 Z 77 (PFI 4)
CTR 1 B 87 (PFI 11)
CTR 2 SRC 73 (PFI 0)
CTR 2 GATE 74 (PFI 1)
CTR 2 AUX 75 (PFI 2)
CTR 2 OUT 93 (PFI 14)
CTR 2 A 73 (PFI 0)
CTR 2 Z 74 (PFI 1)
CTR 2 B 75 (PFI 2)
CTR 3 SRC 78 (PFI 5)
CTR 3 GATE 79 (PFI 6)
CTR 3 AUX 80 (PFI 7)
CTR 3 OUT 95 (PFI 15)
CTR 3 A 78 (PFI 5)
CTR 3 Z 79 (PFI 6)
CTR 3 B 80 (PFI 7)
FREQ OUT 93 (PFI 14)
814 ni.com
NI-DAQmx
PXIe-6368
816 ni.com
NI-DAQmx
PCIe-6374
818 ni.com
NI-DAQmx
CTR 0 Z 3 (PFI 9)
CTR 0 B 45 (PFI 10)
CTR 1 SRC 42 (PFI 3)
CTR 1 GATE 41 (PFI 4)
CTR 1 AUX 46 (PFI 11)
CTR 1 OUT 40 (PFI 13)
CTR 1 A 42 (PFI 3)
CTR 1 Z 41 (PFI 4)
CTR 1 B 46 (PFI 11)
CTR 2 SRC 11 (PFI 0)
CTR 2 GATE 10 (PFI 1)
CTR 2 AUX 43 (PFI 2)
CTR 2 OUT 1 (PFI 14)
CTR 2 A 11 (PFI 0)
CTR 2 Z 10 (PFI 1)
CTR 2 B 43 (PFI 2)
CTR 3 SRC 6 (PFI 5)
CTR 3 GATE 5 (PFI 6)
CTR 3 AUX 38 (PFI 7)
CTR 3 OUT 39 (PFI 15)
CTR 3 A 6 (PFI 5)
CTR 3 Z 5 (PFI 6)
CTR 3 B 38 (PFI 7)
FREQ OUT 1 (PFI 14)
PXIe-6375
820 ni.com
NI-DAQmx
PCIe/PXIe-6376
822 ni.com
NI-DAQmx
CTR 0 Z 3 (PFI 9)
CTR 0 B 45 (PFI 10)
CTR 1 SRC 42 (PFI 3)
CTR 1 GATE 41 (PFI 4)
CTR 1 AUX 46 (PFI 11)
CTR 1 OUT 40 (PFI 13)
CTR 1 A 42 (PFI 3)
CTR 1 Z 41 (PFI 4)
CTR 1 B 46 (PFI 11)
CTR 2 SRC 11 (PFI 0)
CTR 2 GATE 10 (PFI 1)
CTR 2 AUX 43 (PFI 2)
CTR 2 OUT 1 (PFI 14)
CTR 2 A 11 (PFI 0)
CTR 2 Z 10 (PFI 1)
CTR 2 B 43 (PFI 2)
CTR 3 SRC 6 (PFI 5)
CTR 3 GATE 5 (PFI 6)
CTR 3 AUX 38 (PFI 7)
CTR 3 OUT 39 (PFI 15)
CTR 3 A 6 (PFI 5)
CTR 3 Z 5 (PFI 6)
CTR 3 B 38 (PFI 7)
FREQ OUT 1 (PFI 14)
PCIe/PXIe-6376
824 ni.com
NI-DAQmx
CTR 0 Z 3 (PFI 9)
CTR 0 B 45 (PFI 10)
CTR 1 SRC 42 (PFI 3)
CTR 1 GATE 41 (PFI 4)
CTR 1 AUX 46 (PFI 11)
CTR 1 OUT 40 (PFI 13)
CTR 1 A 42 (PFI 3)
CTR 1 Z 41 (PFI 4)
CTR 1 B 46 (PFI 11)
CTR 2 SRC 11 (PFI 0)
CTR 2 GATE 10 (PFI 1)
CTR 2 AUX 43 (PFI 2)
CTR 2 OUT 1 (PFI 14)
CTR 2 A 11 (PFI 0)
CTR 2 Z 10 (PFI 1)
CTR 2 B 43 (PFI 2)
CTR 3 SRC 6 (PFI 5)
CTR 3 GATE 5 (PFI 6)
CTR 3 AUX 38 (PFI 7)
CTR 3 OUT 39 (PFI 15)
CTR 3 A 6 (PFI 5)
CTR 3 Z 5 (PFI 6)
CTR 3 B 38 (PFI 7)
FREQ OUT 1 (PFI 14)
PXIe-6378
826 ni.com
NI-DAQmx
PXIe-6386
828 ni.com
NI-DAQmx
CTR 0 Z 3 (PFI 9)
CTR 0 B 45 (PFI 10)
CTR 1 SRC 42 (PFI 3)
CTR 1 GATE 41 (PFI 4)
CTR 1 AUX 46 (PFI 11)
CTR 1 OUT 40 (PFI 13)
CTR 1 A 42 (PFI 3)
CTR 1 Z 41 (PFI 4)
CTR 1 B 46 (PFI 11)
CTR 2 SRC 11 (PFI 0)
CTR 2 GATE 10 (PFI 1)
CTR 2 AUX 43 (PFI 2)
CTR 2 OUT 1 (PFI 14)
CTR 2 A 11 (PFI 0)
CTR 2 Z 10 (PFI 1)
CTR 2 B 43 (PFI 2)
CTR 3 SRC 6 (PFI 5)
CTR 3 GATE 5 (PFI 6)
CTR 3 AUX 38 (PFI 7)
CTR 3 OUT 39 (PFI 15)
CTR 3 A 6 (PFI 5)
CTR 3 Z 5 (PFI 6)
CTR 3 B 38 (PFI 7)
FREQ OUT 1 (PFI 14)
PXIe-6396
830 ni.com
NI-DAQmx
CTR 0 Z 3 (PFI 9)
CTR 0 B 45 (PFI 10)
CTR 1 SRC 42 (PFI 3)
CTR 1 GATE 41 (PFI 4)
CTR 1 AUX 46 (PFI 11)
CTR 1 OUT 40 (PFI 13)
CTR 1 A 42 (PFI 3)
CTR 1 Z 41 (PFI 4)
CTR 1 B 46 (PFI 11)
CTR 2 SRC 11 (PFI 0)
CTR 2 GATE 10 (PFI 1)
CTR 2 AUX 43 (PFI 2)
CTR 2 OUT 1 (PFI 14)
CTR 2 A 11 (PFI 0)
CTR 2 Z 10 (PFI 1)
CTR 2 B 43 (PFI 2)
CTR 3 SRC 6 (PFI 5)
CTR 3 GATE 5 (PFI 6)
CTR 3 AUX 38 (PFI 7)
CTR 3 OUT 39 (PFI 15)
CTR 3 A 6 (PFI 5)
CTR 3 Z 5 (PFI 6)
CTR 3 B 38 (PFI 7)
FREQ OUT 1 (PFI 14)
USB-6501
832 ni.com
NI-DAQmx
NI 6503
NI 6508
834 ni.com
NI-DAQmx
NI 6509
836 ni.com
NI-DAQmx
NI 6510
838 ni.com
NI-DAQmx
NI 6511
840 ni.com
NI-DAQmx
NI 6512
842 ni.com
NI-DAQmx
NI 6513
844 ni.com
NI-DAQmx
NI 6514
846 ni.com
NI-DAQmx
NI 6515
848 ni.com
NI-DAQmx
NI 6516
NI 6517
NI 6518
NI 6519
850 ni.com
NI-DAQmx
NI 6520
NI 6521
USB-6525
Module Terminal Signal Module Terminal Signal
1 P0.0A 17 P1.0+
2 P0.0B 18 P1.0–
3 P0.1A 19 P1.1+
4 P0.1B 20 P1.1–
5 P0.2A 21 P1.2+
6 P0.2B 22 P1.2–
7 P0.3A 23 P1.3+
8 P0.3B 24 P1.3–
9 P0.4A 25 P1.4+
10 P0.4B 26 P1.4–
11 P0.5A 27 P1.5+
12 P0.5B 28 P1.5–
13 P0.6A 29 P1.6+
14 P0.6B 30 P1.6–
852 ni.com
NI-DAQmx
15 P0.7A 31 P1.7+/PFI 0+
16 P0.7B 32 P1.7–/PFI 0–
NI 6527
(Pins 1–50) Direction input—Ports 0, 1, and 2 (Pins 51–100) Direction output with readback—
Ports 3, 4, and 5
NI 6528
(Pins 1–50) Direction input—Ports 0, 1, and 2 (Pins 51–100) Direction output with readback—
Ports 3, 4, and 5
NI 6529
854 ni.com
NI-DAQmx
NI 6533
68-Pin Connector 50-Pin Connector
NI 6534
68-Pin Connector 50-Pin Connector
856 ni.com
NI-DAQmx
NI 6535
NI 6536
858 ni.com
NI-DAQmx
NI 6537
NI 6601
The NI 6601 uses counters <0..3> only.
860 ni.com
NI-DAQmx
862 ni.com
NI-DAQmx
NI 6602
864 ni.com
NI-DAQmx
NI 6608
866 ni.com
NI-DAQmx
868 ni.com
NI-DAQmx
NI 6612
NI 6614
870 ni.com
NI-DAQmx
NI 6624
872 ni.com
NI-DAQmx
NI 6703
NI 6704
V = Voltage I = Current
NC = No Connect
874 ni.com
NI-DAQmx
V = Voltage I = Current
NC = No Connect
NI 6711
NI 6713
876 ni.com
NI-DAQmx
DAQCard-6715
NI 6722
878 ni.com
NI-DAQmx
NI 6731
880 ni.com
NI-DAQmx
NI 6733
PCIe/PXIe-6738
882 ni.com
NI-DAQmx
CTR 0 Z 8 (PFI 6)
CTR 0 B 40 (PFI 4)
CTR 1 SRC 4 (PFI 0)
CTR 1 GATE 38 (PFI 1)
CTR 1 AUX 6 (PFI 3)
CTR 1 OUT 5 (PFI 2)
CTR 1 A 4 (PFI 0)
CTR 1 Z 38 (PFI 1)
CTR 1 B 6 (PFI 3)
CTR 2 SRC 7 (PFI 5)
CTR 2 GATE 8 (PFI 6)
CTR 2 AUX 40 (PFI 4)
CTR 2 OUT 9 (PFI 7)
CTR 2 A 7 (PFI 5)
CTR 2 Z 8 (PFI 6)
CTR 2 B 40 (PFI 4)
CTR 3 SRC 4 (PFI 0)
CTR 3 GATE 38 (PFI 1)
CTR 3 AUX 6 (PFI 3)
CTR 3 OUT 5 (PFI 2)
CTR 3 A 4 (PFI 0)
CTR 3 Z 38 (PFI 1)
CTR 3 B 6 (PFI 3)
PXIe-6739
884 ni.com
NI-DAQmx
CTR 0 B 40 (PFI 4) —
CTR 1 SRC 4 (PFI 0) —
CTR 1 GATE 38 (PFI 1) —
CTR 1 AUX 6 (PFI 3) —
CTR 1 OUT 5 (PFI 2) —
CTR 1 A 4 (PFI 0) —
CTR 1 Z 38 (PFI 1) —
CTR 1 B 6 (PFI 3) —
CTR 2 SRC — 7 (PFI 13)
CTR 2 GATE — 8 (PFI 14)
CTR 2 AUX — 40 (PFI 12)
CTR 2 OUT — 9 (PFI 15)
CTR 2 A — 7 (PFI 13)
CTR 2 Z — 8 (PFI 14)
CTR 2 B — 40 (PFI 12)
CTR 3 SRC — 4 (PFI 8)
CTR 3 GATE — 38 (PFI 9)
CTR 3 AUX — 6 (PFI 11)
CTR 3 OUT — 5 (PFI 10)
CTR 3 A — 4 (PFI 8)
CTR 3 Z — 38 (PFI 9)
CTR 3 B — 6 (PFI 11)
NI 9201
886 ni.com
NI-DAQmx
NC = No connect.
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9201
NC = No connect.
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
USB-9201
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
USB-9201 (DSUB)
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9202
888 ni.com
NI-DAQmx
NC = No Connect
The NI 9202 with spring terminal shown on the left. The NI 9202 with DSUB shown
on the right.
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9202
NC = No Connect
The NI 9202 with spring terminal shown on the left. The NI 9202 with DSUB shown
on the right.
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9203
890 ni.com
NI-DAQmx
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9205
892 ni.com
NI-DAQmx
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9207
NI 9207 Spring Terminal NI 9207 DSUB
894 ni.com
NI-DAQmx
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9208
NI 9208 Spring Terminal NI 9208 DSUB
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9208
NI 9208 Spring Terminal NI 9208 DSUB
896 ni.com
NI-DAQmx
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9209
NI 9209 Spring Terminal NI 9209 DSUB
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9209
NI 9209 Spring Terminal NI 9209 DSUB
898 ni.com
NI-DAQmx
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9210
NI 9210 (Mini TC) NI 9210 Spring Terminal
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9210 Spring Terminal
NI 9210 (Mini TC) NI 9210 Spring Terminal
900 ni.com
NI-DAQmx
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9211
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
USB-9211A
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9212 (Mini TC)
TB-9212
The NI TB-9212 provides connections for 8 thermocouple channels on the NI 9212.
902 ni.com
NI-DAQmx
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9212 (Mini TC)
TB-9212
The NI TB-9212 provides connections for 8 thermocouple channels on the NI 9212.
904 ni.com
NI-DAQmx
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9213
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
USB-9213
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
TB-9214
The NI TB-9214 provides connections for 16 thermocouple channels on the NI 9214.
906 ni.com
NI-DAQmx
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9215
NC = No Connect.
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
USB-9215A
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
USB-9215A (BNC)
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9216
NI 9216 NI 9216 (DSUB)
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9216
NI 9216 NI 9216 (DSUB)
908 ni.com
NI-DAQmx
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9217
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9218
910 ni.com
NI-DAQmx
NI 9218 (DSUB)
912 ni.com
NI-DAQmx
8 SC — — — — —
9 SC — — — — —
10 — — — — — TEDS+
Optional sensor excitation.
In ±60 mV mode, you must tie pin 7 (AI-) to pin 3 (EX-).
NI 9218 (DSUB)
5 RS- — — — — — —
6 AI+ AI+ AI+ — — AI+ AI+
7 AI- AI- — — — — AI-
8 SC+ — — — — — —
9 SC- — — — — — —
Optional sensor excitation.
In ±65 mV and ±20 mA mode, you must tie pin 7 (AI-) to pin 3 (EX-).
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9219
Module Terminal Signal Name Signal Descriptions
1 T+ TEDS Data
2 T- TEDS COM
3 EX+/HI Positive excitation or in
put signal
4 HI Positive input signal
5 EX-/LO Negative excitation or i
nput signal
6 LO Negative input signal
Depending on the mode, terminals 3 and 5 are either the excitation or input signals.
Terminal Assignments
Mode Terminal
1 2 3 4 5 6
Voltage T+ T- — HI LO —
Current T+ T- HI — LO —
4-Wire Resist T+ T- EX+ HI EX- LO
ance
914 ni.com
NI-DAQmx
2-Wire Resist T+ T- HI — LO —
ance
Thermocoup T+ T- — HI LO —
le
4-Wire RTD T+ T- EX+ HI EX- LO
3-Wire RTD T+ T- EX+ — EX- LO
Quarter-Brid T+ T- HI — LO —
ge
Half-Bridge T+ T- EX+ HI EX- —
Full-Bridge T+ T- EX+ HI EX- LO
Digital In T+ T- — HI LO —
Contact T+ T- HI — LO —
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
USB-9219
Module Terminal Signal Name Signal Descriptions
1 T+ TEDS Data
2 T- TEDS COM
3 EX+/H Positive excitation or in
put signal
4 HI Positive input signal
5 EX-/LO Negative excitation or i
nput signal
6 LO Negative input signal
Depending on the mode, terminals 3 and 5 are either the excitation or input signals.
Terminal Assignments
Mode Terminal
1 2 3 4 5 6
Voltage T+ T- — HI LO —
Current T+ T- HI — LO —
4-Wire Resist T+ T- EX+ HI EX- LO
ance
2-Wire Resist T+ T- HI — LO —
ance
Thermocoup T+ T- — HI LO —
le
4-Wire RTD T+ T- EX+ HI EX- LO
3-Wire RTD T+ T- EX+ — EX- LO
Quarter-Brid T+ T- HI — LO —
ge
Half-Bridge T+ T- EX+ HI EX- —
Full-Bridge T+ T- EX+ HI EX- LO
Digital In T+ T- — HI LO —
Contact T+ T- HI — LO —
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9220
916 ni.com
NI-DAQmx
The NI 9220 with spring terminal, shown on the left, has a 36-terminal detachable
spring-terminal connector. The NI 9220 with DSUB, shown on the right, has a 37-pin
DSUB connector.
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9221
NC = No connect.
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9221
NC = No connect.
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
918 ni.com
NI-DAQmx
USB-9221
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
USB-9221 (DSUB)
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9222
NI 9222 NI 9222 (BNC)
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9222
NI 9222 NI 9222 (BNC)
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9223
NI 9223 NI 9223 (BNC)
920 ni.com
NI-DAQmx
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9223
NI 9223 NI 9223 (BNC)
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9224
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9225
Terminal Assignments
Module Channel Terminal Signal
922 ni.com
NI-DAQmx
0 0+ AI 0+
0- AI 0-
1 1+ AI 1+
1- AI 1-
2 2+ AI 2+
2- AI 2-
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9226
NI 9226 NI 9226 (DSUB)
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9226
NI 9226 NI 9226 (DSUB)
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9227
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
924 ni.com
NI-DAQmx
NI 9228
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9229
Terminal Assignments
Channel Terminal Signal
0 0+ AI 0+
0- AI 0-
1 1+ AI 1+
1- AI 1-
2 2+ AI 2+
2- AI 2-
3 3+ AI 3+
3- AI 3-
USB-9229 (BNC)
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9229
926 ni.com
NI-DAQmx
Terminal Assignments
Channel Terminal Signal
0 0+ AI 0+
0- AI 0-
1 1+ AI 1+
1- AI 1-
2 2+ AI 2+
2- AI 2-
3 3+ AI 3+
3- AI 3-
USB-9229 (BNC)
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
USB-9229
Terminal Assignments
Channel Terminal Signal
0 0+ AI 0+
0- AI 0-
1 1+ AI 1+
1- AI 1-
2 2+ AI 2+
2- AI 2-
3 3+ AI 3+
3- AI 3-
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
USB-9229 (BNC)
928 ni.com
NI-DAQmx
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9230
NI 9230 NI 9230 (BNC)
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9230
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9231
930 ni.com
NI-DAQmx
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9232
NI 9232 NI 9232 (BNC)
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9232
NI 9232 NI 9232 (BNC)
932 ni.com
NI-DAQmx
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
USB-9233
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9234
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
USB-9234
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9235
934 ni.com
NI-DAQmx
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9236
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9237
The following pin assignments appear on Channel 0-3.
936 ni.com
NI-DAQmx
NI 9237 (DSUB)
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9237
The following pin assignments appear on Channel 0-3.
NI 9237 (DSUB)
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
938 ni.com
NI-DAQmx
USB-9237
The following pin assignments appear on Channel 0-3.
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9238
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9239
Terminal Assignments
Channel Terminal Signal
0 0+ AI 0+
0- AI 0-
1 1+ AI 1+
1- AI 1-
2 2+ AI 2+
2- AI 2-
3 3+ AI 3+
3- AI 3-
NI 9239 (BNC)
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
940 ni.com
NI-DAQmx
NI 9239
Terminal Assignments
Channel Terminal Signal
0 0+ AI 0+
0- AI 0-
1 1+ AI 1+
1- AI 1-
2 2+ AI 2+
2- AI 2-
3 3+ AI 3+
3- AI 3-
NI 9239 (BNC)
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
USB-9239
Terminal Assignments
Channel Terminal Signal
0 0+ AI 0+
0- AI 0-
1 1+ AI 1+
1- AI 1-
2 2+ AI 2+
2- AI 2-
3 3+ AI 3+
3- AI 3-
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9242
942 ni.com
NI-DAQmx
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9244
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9246
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9247
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9250 (BNC)
944 ni.com
NI-DAQmx
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9251 (Mini XLR)
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9252
NC = No Connect
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
946 ni.com
NI-DAQmx
NI 9252
NC = No Connect
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9253
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9260
NI 9260 (Mini XLR) NI 9260 (BNC)
948 ni.com
NI-DAQmx
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9260
NI 9260 (Mini XLR) NI 9260 (BNC)
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9262
950 ni.com
NI-DAQmx
NC = No Connect
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9263
NC = No Connect.
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
USB-9263
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9264
NI 9264 NI 9264 (DSUB)
952 ni.com
NI-DAQmx
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9264
NI 9264 NI 9264 (DSUB)
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
USB-9264
954 ni.com
NI-DAQmx
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9265
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
USB-9265
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9266
NC = No Connect
956 ni.com
NI-DAQmx
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9269
Terminal Assignments
Channel Terminal Signal
0 0+ AO 0+
0- AO 0-
1 1+ AO 1+
1- AO 1-
2 2+ AO 2+
2- AO 2-
3 3+ AO 3+
3- AO 3-
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9326
There are 6 PFI lines, from PFI0 to PFI5. Each counter can use any of the input PFI
lines to perform measurements. Two counters can use the same PFI line as inputs
for their measurements, as long as the input configurations are the same for both
counters.
The following table shows the terminal defaults for edge counting measurements
for the 9326.
958 ni.com
NI-DAQmx
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9361
There are 8 PFI lines, from PFI0 to PFI7. Each counter can use any of the input PFI
lines to perform measurements. Two counters can use the same PFI line as inputs
for their measurements, as long as the input configurations are the same for both
counters.
The following table shows the terminal defaults for edge counting measurements
for NI 9361 modules.
960 ni.com
NI-DAQmx
The following table shows the terminal defaults for position measurements for NI
9361 modules.
Counter A B Z
ctr0 PFI0 PFI4 PFI7
ctr1 PFI1 PFI5 PFI6
ctr2 PFI2 PFI6 PFI5
ctr3 PFI3 PFI7 PFI4
ctr4 PFI4 PFI0 PFI3
ctr5 PFI5 PFI1 PFI2
ctr6 PFI6 PFI2 PFI1
ctr7 PFI7 PFI3 PFI0
The following table shows the terminal defaults for frequency, period, duty cycle,
and pulse width measurements for NI 9361 modules.
The NI 9375 provides connections for 16 digital output channels and 16 digital input
channels. The NI 9375 can have either a spring terminal or a DSUB connector.
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9401
962 ni.com
NI-DAQmx
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9402
964 ni.com
NI-DAQmx
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9411
966 ni.com
NI-DAQmx
CTR 2 A 3 PFI 2
CTR 2 Z 1 PFI 0
CTR 2 B 2 PFI 1
CTR 3 SRC 8 PFI 5
CTR 3 GATE 6 PFI 3
CTR 3 AUX 7 PFI 4
CTR 3 A 8 PFI 5
CTR 3 Z 6 PFI 3
CTR 3 B 7 PFI 4
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9421
968 ni.com
NI-DAQmx
NI 9421 (DSUB)
970 ni.com
NI-DAQmx
NI 9421 (DSUB)
972 ni.com
NI-DAQmx
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
USB-9421 (DSUB)
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9422
974 ni.com
NI-DAQmx
976 ni.com
NI-DAQmx
CTR 2 A 3 PFI 3
CTR 2 Z 2 PFI 2
CTR 2 B 0 PFI 0
CTR 3 SRC 7 PFI 7
CTR 3 GATE 6 PFI 6
CTR 3 AUX 4 PFI 4
CTR 3 A 7 PFI 7
CTR 3 Z 6 PFI 6
CTR 3 B 4 PFI 4
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9425
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9426
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9435
978 ni.com
NI-DAQmx
980 ni.com
NI-DAQmx
CTR 1 A 4 PFI 4
CTR 1 Z 5 PFI 5
CTR 1 B 6 PFI 6
CTR 2 SRC 3 PFI 3
CTR 2 GATE 2 PFI 2
CTR 2 AUX 0 PFI 0
CTR 2 A 3 PFI 3
CTR 2 Z 2 PFI 2
CTR 2 B 0 PFI 0
CTR 3 SRC 7 PFI 7
CTR 3 GATE 6 PFI 6
CTR 3 AUX 4 PFI 4
CTR 3 A 7 PFI 7
CTR 3 Z 6 PFI 6
CTR 3 B 4 PFI 4
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9469
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9472
982 ni.com
NI-DAQmx
984 ni.com
NI-DAQmx
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
USB-9472 (DSUB)
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9474
986 ni.com
NI-DAQmx
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9476
NI 9476 Spring Terminal NI 9476 DSUB
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9476
NI 9476 Spring Terminal NI 9476 DSUB
988 ni.com
NI-DAQmx
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9477
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9478
990 ni.com
NI-DAQmx
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9481
NO=Normally Open
NO=Normally Open
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9482
NO=Normally Open
992 ni.com
NI-DAQmx
NO=Normally Open
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
NI 9485
NO=Normally Open
994 ni.com
NI-DAQmx
sbRIO AI 0-15
sbRIO AO 0-3
996 ni.com
NI-DAQmx
sbRIO AI 0-15
998 ni.com
NI-DAQmx
sbRIO AO 0-3
1000 ni.com
NI-DAQmx
sbRIO AI 0-15
sbRIO AO 0-3
1002 ni.com
NI-DAQmx
1004 ni.com
NI-DAQmx
1006 ni.com
NI-DAQmx
Pinouts may vary by connector variants. If your exact variant isn't listed here, refer
to the manual for your module. You can find manuals at ni.com/manuals.
DAQCard-DIO-24
myDAQ
1008 ni.com
NI-DAQmx
I/O Connectors
PCI-DIO-96
1010 ni.com
NI-DAQmx
SCC-68
Signals available on the SCC-68 vary depending on the DAQ device you are
connected to. Refer to the SCC-68 reference guide that corresponds to the DAQ
device you are using.
1012 ni.com
NI-DAQmx
E Series Devices
SensorDAQ
Vernier Digital Sensor Screw Terminal Signal Names Description
Channel
and 12-pin Screw
Terminal Connector
1 P0.0 Digital port 0, line 0
2 P0.1 Digital port 0, line 1
3 P0.2 Digital port 0, line 2
4 P0.3 Digital port 0, line 3
5, 8, 10 GND Ground (analog and dig
ital)
6 +5V +5 V power source
7 PFI 0 Digital trigger or counte
r signal
9 AO 0 Analog output channel
11, 12 AI 0, AI 1 Analog input channels
USB-TC01
Signal Conditioning
This help file includes signal names for signal conditioning devices supported in NI-
DAQmx.
1014 ni.com
NI-DAQmx
RM-24999
10 — No connect
96-Pin DIN
TB-4300
1016 ni.com
NI-DAQmx
TB-4300B
TB-4300C
1018 ni.com
NI-DAQmx
RM-4302
Status LED
1020 ni.com
NI-DAQmx
Chassis ground
96-Pin DIN
TB-4302
1022 ni.com
NI-DAQmx
TB-4302C
RM-4304
Status LED
1024 ni.com
NI-DAQmx
Chassis ground
96-Pin DIN
TB-4304
CAL-4309
1026 ni.com
NI-DAQmx
1028 ni.com
NI-DAQmx
NC means no connection.
TB-4310 (10V)
TB-4310 (600V)
TB-4322
1030 ni.com
NI-DAQmx
TB-4330
RM-4339
1032 ni.com
NI-DAQmx
1 PFI0
2 DGND
1034 ni.com
NI-DAQmx
Chassis ground
96-Pin DIN
TB-4339
TB-4340
1036 ni.com
NI-DAQmx
CAL-4353
TB-4353
1038 ni.com
NI-DAQmx
TC-4353
TB-4357
SC-2345 Carrier
The following image shows the locations of the digital signals on the SC-2345 and
SC-2350 terminal block when using an E Series or M Series connector 0. Refer to the
M Series User Manual for specific pinout descriptions for M Series devices when
using connector 1.
1040 ni.com
NI-DAQmx
NC = No Connect
SC-2350 Carrier
Connector Diagram Signal Name Pin Number Pin Number Signal Name
for Socket J35
1042 ni.com
NI-DAQmx
NC 39 40 NC
NC 41 42 NC
NC 43 44 NC
NC 45 46 NC
NC 47 48 NC
NC = No Connect NC 49 50 NC
SCC-68
Signals available on the SCC-68 vary depending on the DAQ device you are
connected to. Refer to the SCC-68 reference guide that corresponds to the DAQ
device you are using.
E Series Devices
1044 ni.com
NI-DAQmx
Switch Modules
Refer to the NI Switches Help.
Related Documentation
Many manuals also are available as PDFs. You must have Adobe Reader with Search
and Accessibility 5.0.5 or later installed to view the PDFs. Refer to the Adobe Systems
Incorporated website to download Adobe Reader. Refer to the National Instruments
Product Manuals Library for updated documentation resources.
The following documents contain information that you may find helpful as you use
this help file. For additional details on these documents, along with their default
installation locations, refer to ni.com/kb.
1046 ni.com
NI-DAQmx
The following web locations contain information that you might find helpful as you
use this help file:
■ Go to ni.com/support/daqmx.
■ Go to ni.com/support and enter your device name for information and
resources specific to your device.
■ Go to NI-DAQmx for Windows Documentation for a complete listing of the
NI-DAQmx documents and their locations.