National Instruments NI USB-621x manual

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178

Go to page of

A good user manual

The rules should oblige the seller to give the purchaser an operating instrucion of National Instruments NI USB-621x, along with an item. The lack of an instruction or false information given to customer shall constitute grounds to apply for a complaint because of nonconformity of goods with the contract. In accordance with the law, a customer can receive an instruction in non-paper form; lately graphic and electronic forms of the manuals, as well as instructional videos have been majorly used. A necessary precondition for this is the unmistakable, legible character of an instruction.

What is an instruction?

The term originates from the Latin word „instructio”, which means organizing. Therefore, in an instruction of National Instruments NI USB-621x one could find a process description. An instruction's purpose is to teach, to ease the start-up and an item's use or performance of certain activities. An instruction is a compilation of information about an item/a service, it is a clue.

Unfortunately, only a few customers devote their time to read an instruction of National Instruments NI USB-621x. A good user manual introduces us to a number of additional functionalities of the purchased item, and also helps us to avoid the formation of most of the defects.

What should a perfect user manual contain?

First and foremost, an user manual of National Instruments NI USB-621x should contain:
- informations concerning technical data of National Instruments NI USB-621x
- name of the manufacturer and a year of construction of the National Instruments NI USB-621x item
- rules of operation, control and maintenance of the National Instruments NI USB-621x item
- safety signs and mark certificates which confirm compatibility with appropriate standards

Why don't we read the manuals?

Usually it results from the lack of time and certainty about functionalities of purchased items. Unfortunately, networking and start-up of National Instruments NI USB-621x alone are not enough. An instruction contains a number of clues concerning respective functionalities, safety rules, maintenance methods (what means should be used), eventual defects of National Instruments NI USB-621x, and methods of problem resolution. Eventually, when one still can't find the answer to his problems, he will be directed to the National Instruments service. Lately animated manuals and instructional videos are quite popular among customers. These kinds of user manuals are effective; they assure that a customer will familiarize himself with the whole material, and won't skip complicated, technical information of National Instruments NI USB-621x.

Why one should read the manuals?

It is mostly in the manuals where we will find the details concerning construction and possibility of the National Instruments NI USB-621x item, and its use of respective accessory, as well as information concerning all the functions and facilities.

After a successful purchase of an item one should find a moment and get to know with every part of an instruction. Currently the manuals are carefully prearranged and translated, so they could be fully understood by its users. The manuals will serve as an informational aid.

Table of contents for the manual

  • Page 1

    DAQ M Series NI USB-621 x User Manual Bus-Powered M Series USB Devices NI USB-621 x User Manual August 2006 371931A-01[...]

  • Page 2

    Support Worldwide Technical Support and Product Info rmation ni.com National Instruments Corporate Headquarters 11500 North Mopac Expressway Aust in, Texas 78759-3504 USA Tel: 512 683 0100 Worldwide Offices Australia 1800 300 800, Austria 43 0 662 45 79 90 0, Belgium 32 0 2 757 00 20, Brazil 55 11 3262 3599, Canada 800 433 3488, China 86 21 6555 78[...]

  • Page 3

    Important Information Warranty The USB-6210, USB -6211, USB-6215, an d USB-6218 devices are warrant ed against defects in mat erials and workmanshi p for a period of three years from the date of shipment, as evidenced by receipts or other document ation. National Instruments will, at its option, repair or replace equipment that proves to be defecti[...]

  • Page 4

    NATIONAL INSTRUMENTS PRODUCTS ARE IN CORPORATED IN A SYSTEM OR APPLICATION, INC LUDING, WITHOUT LIMITATION, THE APPROPRIATE DESIGN, PROC ESS AND SAFETY LEVEL OF SUCH SYSTEM OR APPLI CATION.[...]

  • Page 5

    © National Instruments Corpor ation v NI USB-621x User Manual Contents About This Manual Conventions ............ .............. .............. .............. .............. .............. ............... .............. .... x iii Related Documentation ............ .............. .............. .............. .............. .............. ........[...]

  • Page 6

    Contents NI USB-621x User Manual vi ni.com Chapter 4 Analog Input Analog Input Circuitry ............. .............. .............. .............. .............. ............... .............. 4-1 Analog Input Range ............ .............. ............... .............. .............. .............. .............. ...... 4-2 Analog Input Groun[...]

  • Page 7

    Contents © National Instruments Corporat ion vii NI USB-621x User Manual AI Pause Trigger Signal .......... .............. .............. .............. .............. ................ 4-23 Using a Digital Source ......... .............. ................. .............. .............. .. 4-23 Getting Started with AI Applicat ions in Softwa re ....[...]

  • Page 8

    Contents NI USB-621x User Manual viii ni.com Chapter 7 Analog Output Analog Output Circuitry ......................... .............. .............. .............. ................. ............ 7-1 AO Range ................... .............. .............. ........... .............. ............... .............. .............. ... 7 -2 Minimizing[...]

  • Page 9

    Contents © National Instruments Corpor ation ix NI USB-621x User Manual Pulse-Width Measurement ............ .............. .............. .............. ................. ....... 9-5 Single Pulse-Width Measurement .................... ............... .............. .... 9-5 Buffered Pulse-Width Meas urement ...................... .............. .[...]

  • Page 10

    Contents NI USB-621x User Manual x ni.com Counter n A, Counter n B, and Counter n Z Signals .... .............. .............. ...... 9-28 Routing Signals to A, B, and Z Count er Inputs ............ .............. ...... 9-28 Counter n Up_Down Signal ................... .............. .............. ............... .............. 9-28 Counter n HW [...]

  • Page 11

    Contents © National Instruments Corpor ation xi NI USB-621x User Manual Chapter 11 Isolation and Di gital Isolators Digital Isolation ................. .............. .............. .............. ............... .............. .............. ....... 1 1-2 Benefits of an Isolated DAQ Device ................ ... .............. .............. ......[...]

  • Page 12

    Contents NI USB-621x User Manual xii ni.com Appendix B Troubleshooting Appendix C Technical Support and Professional Services Glossary Index Device Pinouts Figure A-1. USB-6210 Pinout ........ .................................................................... ...... A-2 Figure A-2. USB-6211/6215 Pi nout .. ........................................[...]

  • Page 13

    © National Instruments Corporat ion xiii NI USB-621x User Manual About This Manual The NI 621x User Manual contains information abou t using the National Instrument s USB-621 x data acquisition (DA Q) devices with NI-D A Qmx 8.3 and later . NI 621 x de vices feature up to 32 analog input (AI) channels, up to two analog ou tput (A O ) channels, up [...]

  • Page 14

    About This Manual NI USB-621x User Manual xiv ni.com Related Documentation Each application software package an d driv er includes inform ation about writing applications for taking measur ements and controlling measurement devices. The follo wing references to documents assume you have NI-D A Q 8.3 or later , and where applicable, version 7.0 or l[...]

  • Page 15

    About This Manual © National Instruments Corpor ation xv NI USB-621x User Manual tools. Refer to the following locations on the Contents tab of the LabVIEW Help for info rmation about NI-DA Qmx: • Getting St arted»Gett ing Started wi th D A Q —I ncludes overvie w information and a tutorial to learn how to take an NI-D A Qmx measurement in Lab[...]

  • Page 16

    About This Manual NI USB-621x User Manual xvi ni.com .NET Languages without NI Application Software The NI Measurement Studio Help contains function reference and measurement concepts for using th e Measurement Studio NI-D A Qmx .NET and V isual C++ class libraries. This help collection is integ rated into the V isual St udio .NET documentation. In[...]

  • Page 17

    © National Instruments Corporat ion 1-1 NI USB-621x User Manual 1 Getting Started Figure 1-1. USB-6210/6211[...]

  • Page 18

    Chapter 1 Getting Started NI USB-621x User Manual 1-2 ni.com Figure 1-2. USB-6215/6218 NI 621 x devices feature up to 32 analog input (AI) channels, up to two analog output (A O) channels, 8 lines of digital inp ut (DI), 8 lines of digital output (DO), and two counters. If you hav e not already installed your device, refer to the NI-D A Qmx for USB[...]

  • Page 19

    Chapter 1 Getting Started © National Instruments Corporat ion 1-3 NI USB-621x User Manual Installing the Hardware The NI-D A Qmx for USB Devices Getting Started Guide contains non-software-specif ic information ab out ho w to install USB devices. Device Pinouts Refer to Appendix A , Device-Specific Information , for NI 621 x device pinouts. Device[...]

  • Page 20

    © National Instruments Corporat ion 2-1 NI USB-621x User Manual 2 DAQ System Over view Figure 2-1 sho ws a typical D A Q sy stem, which i ncludes sensors, transducers, signal condition ing devi ces, cables that connect the v arious device s to the accessories, the M Serie s device, programming software, and PC. The follo wing sections cov er the c[...]

  • Page 21

    Chapter 2 DAQ System Over view NI USB-621x User Manual 2-2 ni.com Figure 2-2. USB-621 x Block Diagram DAQ-STC2 The D A Q-STC2 implemen ts a high-performance digital engine for M Series data acquisition hardware. So me key features of this engine include the following: • Fle xible AI and A O sample and con vert timing • Man y triggering modes ?[...]

  • Page 22

    Chapter 2 DAQ System Overview © National Instruments Corporat ion 2-3 NI USB-621x User Manual Factory-calibration constants are permanently stored in an onboard EEPR OM and cannot be mod ified. When you self-calibrate th e device, software stores new constants in a us er -modifiable section of the EEPR OM. T o return a de vice to its initial facto[...]

  • Page 23

    Chapter 2 DAQ System Over view NI USB-621x User Manual 2-4 ni.com Programming Devices in Software National Instruments measurement de vices are packaged with NI-D A Q dri ver software, an e xtensiv e library of functions and VIs you can call from your application software, such as LabVIEW or LabW indows/CVI, to program all the features of your NI m[...]

  • Page 24

    © National Instruments Corporat ion 3-1 NI USB-621x User Manual 3 Connector Information The I/O Connector Si gnal Descriptions and +5 V Power sections contain information about NI 621 x connectors. Refer to Appen dix A, Device-Specific Information , for device I/O connector pinouts. I/O Connector Signal Descriptions T able 3-1 describes the signal[...]

  • Page 25

    Chapter 3 Connector Information NI USB-621x User Manual 3-2 ni.com +5 V Power The +5 V terminals on the I/O connector can be use as either an output or an input. Both terminals are inte rnally connected on the USB-621 x . +5 V Power as an Output Because the USB-621 x de vices are bus po wered, there is a 50 mA limit on the total current that can be[...]

  • Page 26

    Chapter 3 Connector Information © National Instruments Corporat ion 3-3 NI USB-621x User Manual +5 V Power as an Input If you hav e high current loads for the digital outp uts to dri ve, you can exceed the 50 mA internal limit b y connecting an external +5 V power source to the +5 V terminals. Thes e terminals are protected against undervoltage an[...]

  • Page 27

    © National Instruments Corporat ion 4-1 NI USB-621x User Manual 4 Analog Input Figure 4-1 shows the analog in put circuitry of NI 621 x devices. Figure 4-1. M Series Analog Input Circuitry Analog Input Circuitr y I/O Connector Y ou can connect analog i nput signals to the M Series device through the I/O connector . The proper w ay to connect analo[...]

  • Page 28

    Chapter 4 Analog Inpu t NI USB-621x User Manual 4-2 ni.com Ground-Reference Settings The analog input ground-reference settings circu itry selects between differential, referenced s ingle-ended, and non-referenced single-ended input modes. Each AI channel can use a different mode. Instrumentation A mplifier (NI-PG IA) The NI programmable gain instr[...]

  • Page 29

    Chapter 4 Analog Input © National Instruments Corporat ion 4-3 NI USB-621x User Manual calibration method im prov es absolute accuracy , bu t it increases the nominal resolution of input ranges by about 5% over what the formula sho wn abov e would indicate. Choose an input rang e that matches the expected input rang e of your signal. A large input[...]

  • Page 30

    Chapter 4 Analog Inpu t NI USB-621x User Manual 4-4 ni.com The AI gr o und-r efer ence setting determines how you should connect y our AI signals to the NI 621 x de vice. Refer to Chapter 5, Connecting AI Signals on the USB-6210/ 6211 Devices , section for mor e informatio n. Ground-reference settings are programmed on a per-channel basis. For exam[...]

  • Page 31

    Chapter 4 Analog Input © National Instruments Corporat ion 4-5 NI USB-621x User Manual pairs that form dif ferential input channels, refer to the I/O Connector Si gnal Descriptions section of Chapter 3, Connector Information . Caution The maximum input voltages rating of AI signals with respect to AI GND (and for dif ferential signals with respect[...]

  • Page 32

    Chapter 4 Analog Inpu t NI USB-621x User Manual 4-6 ni.com Multichannel Scanning Considerations M Series de vices can scan multiple chan nels at high rate s and digitize the signals accurately . Howe v er , you should consider sev eral issues when designing your measurement system to ensure the high accuracy of your measurements. In multichannel sc[...]

  • Page 33

    Chapter 4 Analog Input © National Instruments Corporat ion 4-7 NI USB-621x User Manual If your source impedance is high, you can decrease the scan rate to allow the NI-PGIA mo re time to settle. A nother option is to use a voltage follo wer circuit external to your D A Q device to decrease the impedance seen b y the D A Q device. Refer to the Know[...]

  • Page 34

    Chapter 4 Analog Inpu t NI USB-621x User Manual 4-8 ni.com Y ou can connect channel 2 to AI GND (o r you can use the internal ground signal; refer to Internal Ch annels in the NI-DA Qmx Help ) . Set the input range of channel 2 to –200 mV to 200 m V to match channel 1. Then scan channels in the order: 0, 2, 1. Inserting a grounded channel betw ee[...]

  • Page 35

    Chapter 4 Analog Input © National Instruments Corporat ion 4-9 NI USB-621x User Manual Example 2 If the time relationship between channe ls is not critical, you can sample from the same c hannel multip le times and scan l ess frequently . For example, suppose an application requires av eraging 100 points from channel 0 and av eraging 100 points fr[...]

  • Page 36

    Chapter 4 Analog Inpu t NI USB-621x User Manual 4-10 ni.com Buffered In a buf fered acquisition, data is mov ed from the D A Q device’ s onboard F I F O m e m o r y t o a P C bu f f e r u s i n g USB signal streams or progr ammed I/O before it is transferred to appli cation memory . Buf f ered acquisitions typically allo w for much faster transfe[...]

  • Page 37

    Chapter 4 Analog Input © National Instruments Corporat ion 4-11 NI U SB-621x User Manual A digital trigger can initiate these acti ons. All NI 621 x devices support digital triggering. NI 621 x devices do not support analog triggering. Field Wiring Considerations En vironmental noise can seriously af f ect the measurement accuracy of the device if[...]

  • Page 38

    Chapter 4 Analog Inpu t NI USB-621x User Manual 4-12 ni.com Figure 4-4. Analog Input T iming Options M Series de vices use ai/SampleClock and ai/Conv ertClock to perform interval sampling. As Figure 4-5 sh ows, ai/SampleClock controls the sample period, which is determined by the following equation: 1/Sample Period = Sample Rate Figure 4-5. Int erv[...]

  • Page 39

    Chapter 4 Analog Input © National Instruments Corporat ion 4-13 NI U SB-621x User Manual NI-D A Qmx chooses the default con vert rate to allo w for the maximum settling time between con versions. T yp ically , this rate is the sampling rate for the task multiplied by the number of channels in the task. Note The sampling rate is the fastest you can[...]

  • Page 40

    Chapter 4 Analog Inpu t NI USB-621x User Manual 4-14 ni.com Figure 4-7. Pretriggered Data Ac quisition Example If an ai/ReferenceT rigger pulse occurs before the specified number of pretrigger samples are acquired, the trigger pulse is ignored. Otherwise, when the ai/ReferenceT rigger pulse occurs, the sample counter v alue decrements until the spe[...]

  • Page 41

    Chapter 4 Analog Input © National Instruments Corporat ion 4-15 NI U SB-621x User Manual Using an Inte rnal Source One of the follo wing internal signals can dri ve ai/SampleClock. • Counter n Internal Output • AI Sample Clock Timebase (di vided down) •A s o f t w a r e p u l s e A programma ble inte rnal counter d i vides do wn t he sample [...]

  • Page 42

    Chapter 4 Analog Inpu t NI USB-621x User Manual 4-16 ni.com to AI Con vert Clock Signal for more information abou t the timing requirements between ai/Con v e rtClock and ai/SampleClock. Figure 4-8 shows the relationship of ai/SampleClock to ai/StartTrigger . Figure 4-8. ai/SampleCl ock and ai/St artT rigger AI Sample Clock Ti mebase Signal Y ou ca[...]

  • Page 43

    Chapter 4 Analog Input © National Instruments Corporat ion 4-17 NI U SB-621x User Manual channel to allow for adequate settling time. This scheme enables the channels to approximate simultaneous samp ling and still allow for adequate settling time. If the AI Sample Clo ck rate is too fast to allow for this 10 µs of padding, NI-D A Qmx chooses the[...]

  • Page 44

    Chapter 4 Analog Inpu t NI USB-621x User Manual 4-18 ni.com Figure 4-9 shows the relationship of ai/SampleClock to ai/Con vertClock. Figure 4-9. ai/SampleCl ock and ai/ConvertCloc k Other Timing Requirements The sample and con v ersion lev el timing of M Series de vices work such that clock signals are gated of f unless the proper timin g requir em[...]

  • Page 45

    Chapter 4 Analog Input © National Instruments Corporat ion 4-19 NI U SB-621x User Manual Figure 4-10. ai/SampleClo ck T oo Fast Figure 4-11. ai/ConvertClock T oo Fast Figure 4-12. ai/SampleClock and ai/C onver tClock Improperly Matched • Sample Clock T oo F ast f or Con vert Clock ai/SampleClock ai/Conv er tClock Sample #1 Sample #2 Sample #3 Ch[...]

  • Page 46

    Chapter 4 Analog Inpu t NI USB-621x User Manual 4-20 ni.com Figure 4-13. ai/SampleClock and ai/C onvertClock Properly Matched It is also possible to use a single external signal to driv e both ai/SampleClock and ai/Con v ertClock at the same time. In this mode, each tick of the external clock will cause a con version on the ADC. Figure 4-14 shows t[...]

  • Page 47

    Chapter 4 Analog Input © National Instruments Corporat ion 4-21 NI U SB-621x User Manual AI Hold Complete Event Signal The AI Hold Complete Event (ai/HoldCompleteEvent) signal generates a pulse after each A/D con version begins. Y ou can route ai/HoldCompleteEvent out to any PFI <4..8> or PFI <12..15> terminal. The polarity of ai/HoldC[...]

  • Page 48

    Chapter 4 Analog Inpu t NI USB-621x User Manual 4-22 ni.com The device also uses ai/StartT rig ger to initiate pretriggered D A Q operations. In most p retriggered applications, a software trigger generates ai/StartT rigger . Refer to the AI Reference Trigger Signal section for a complete description of the use of ai/StartT rigger and ai/ReferenceT[...]

  • Page 49

    Chapter 4 Analog Input © National Instruments Corporat ion 4-23 NI U SB-621x User Manual Using a Digital Source T o use ai/ReferenceT rigger with a di gital source, specify a source and an edge. The source can be the PFI <0..3> or PFI <8..11> signals. The source also can be one of sev eral internal signals on your D A Q device. Refer t[...]

  • Page 50

    Chapter 4 Analog Inpu t NI USB-621x User Manual 4-24 ni.com Getting Started with AI Applications in Software Y ou can use the M Series de vice in the following analog input applications. • Single-point analog in put • Finite analog input • Continuous analog input Y ou can perform these applications through DMA, int errupt, or programmed I/O d[...]

  • Page 51

    © National Instruments Corporat ion 5-1 NI USB-621x User Manual 5 Connecting AI Signals on the USB-6210/6211 Devices T able 5-1 summarizes the recommen ded input configuration for both types of signal sources on NI 6210/6211 devices.[...]

  • Page 52

    Chapter 5 Connecti ng AI Signals on the USB-6210/6211 Devices NI USB-621x User Manual 5-2 ni.com Table 5-1. Analog Input Configuration AI Ground-Refer ence Setting * Floating Signal Sources (Not Connected to Buildi ng Ground) Ground-Refer enced Signal Sources ** Examples: • Ungrounded thermocouples • Signal conditioning with isolated outputs ?[...]

  • Page 53

    Chapter 5 Connecting AI Signal s on the USB-6210/6211 Devices © National Instruments Corporat ion 5-3 NI USB-621x User Manual Connecting Floating Signal Sources What Are Floating Signal Sources? A floating signal sour ce is not connected to t he building ground system, but has an isolated ground-reference point. Some examples of floating signal so[...]

  • Page 54

    Chapter 5 Connecti ng AI Signals on the USB-6210/6211 Devices NI USB-621x User Manual 5-4 ni.com In the single-ended modes, more elect rostatic and magnetic noise couples into the signal connections than in D IFF configurations. The coupling is the result of differences in the signal path. Magnetic coupling is proportional to the area between the t[...]

  • Page 55

    Chapter 5 Connecting AI Signal s on the USB-6210/6211 Devices © National Instruments Corporat ion 5-5 NI USB-621x User Manual Using Differential Connections for Floating Signal Sources It is important to connect the negati ve lead of a floating source to AI GND (either directly or th rough a bias resistor). Otherwise, the sou rce may float out of [...]

  • Page 56

    Chapter 5 Connecti ng AI Signals on the USB-6210/6211 Devices NI USB-621x User Manual 5-6 ni.com Figure 5-2. Differential Connections for Floating Signal Source s with Single Bias Resistor Y ou can fully balance the signal path by connecting anoth er resistor of the same value between the positi ve input and AI GND on the USB-621 x device, as sho w[...]

  • Page 57

    Chapter 5 Connecting AI Signal s on the USB-6210/6211 Devices © National Instruments Corporat ion 5-7 NI USB-621x User Manual Figure 5-3. Differential Connections for Floating Signal Sour ce s with Balanced Bias Resistors Both inputs of the NI-PGIA require a DC path to ground in order for the NI-PGIA to work. If the source is A C coupled (capaciti[...]

  • Page 58

    Chapter 5 Connecti ng AI Signals on the USB-6210/6211 Devices NI USB-621x User Manual 5-8 ni.com inputs; be aware that there is some ga in error from loading down the source, as sho wn in Figure 5-4. Figure 5-4. Differential Co nnections fo r AC Coupled Floating Sour ces with Balanced Bia s Resistors Using Non-Referenced Single-Ended (NRSE) Connect[...]

  • Page 59

    Chapter 5 Connecting AI Signal s on the USB-6210/6211 Devices © National Instruments Corporat ion 5-9 NI USB-621x User Manual connection is shared with all channels rather than being cabled in a twisted pair with the AI+ signal. Using the D A Q Assistant, you can conf igure the channels for RSE or NRSE input modes. Refer to the Configurin g AI Gro[...]

  • Page 60

    Chapter 5 Connecti ng AI Signals on the USB-6210/6211 Devices NI USB-621x User Manual 5-10 ni.com The dif ference in ground potenti al be tween two instruments connected to the same building po wer system is typically between 1 and 100 mV , but the diff erence can be much higher if po we r distribution circuits are improperly connected. If a ground[...]

  • Page 61

    Chapter 5 Connecting AI Signal s on the USB-6210/6211 Devices © National Instruments Corporat ion 5-11 NI U SB-621x User Manual In the single-ended modes, more elect rostatic and magnetic noise couples into the signal connections than in D IFF configurations. The coupling is the result of differences in the signal path. Magnetic coupling is propor[...]

  • Page 62

    Chapter 5 Connecti ng AI Signals on the USB-6210/6211 Devices NI USB-621x User Manual 5-12 ni.com Using Differential Connections for Ground-Referenced Signal Sources Figure 5-7 shows ho w to connect a ground-referenced signal source to the USB-6210/6211 device configured in DIFF mode. Figure 5-7. Differential Co nnections for Ground-Referenced Sign[...]

  • Page 63

    Chapter 5 Connecting AI Signal s on the USB-6210/6211 Devices © National Instruments Corporat ion 5-13 NI U SB-621x User Manual Using Non-Referenced Single-E nded (NRSE) Connections for Ground-Referenced Signal Sources Figure 5-8 shows ho w to connect ground-reference signal sources to th e USB-6210/6211 device in NRSE mode. Figure 5-8. Single-End[...]

  • Page 64

    © National Instruments Corporat ion 6-1 NI USB-621x User Manual 6 Connecting AI Signals on the USB-6215/6218 Devices Y ou can connect the USB-6215/6218 directly to a v ariety of devices and other signal sources. Make sure the devices you connect to the USB-6215/6218 are compatib le with the input specifications of the module. When connecting vario[...]

  • Page 65

    Chapter 6 Connecti ng AI Signals on the USB-6215/6218 Devices NI USB-621x User Manual 6-2 ni.com Refer to Figure 6-1 for an illustr a tion of a dif feren tial connection configuration. Figure 6-1. Connecting a Device to a USB-6215/62 18 Usin g Differen tial Connections 3 A I3 AI 11 4 A I4 AI 12 5 A I5 AI 13 6 A I6 AI 14 7 A I7 AI 15 16* AI 16 AI 24[...]

  • Page 66

    Chapter 6 Connecting AI Signal s on the USB-6215/6218 Devices © National Instruments Corporat ion 6-3 NI USB-621x User Manual The dif ferential connection configuration allows the common-mode noise voltage, V cm , to be rejected duri ng the measurement of V 1 . Y ou must connect the negati ve lead of your sensors and AI GND to a local ground signa[...]

  • Page 67

    Chapter 6 Connecti ng AI Signals on the USB-6215/6218 Devices NI USB-621x User Manual 6-4 ni.com Non-Referenced Single-Ended (NRSE) Measurements T o reach a compromise between RSE and differential measurements, you can use an NRSE measurem ent configuration. This configuration allows for a remote sense for the negativ e (–) input of the programma[...]

  • Page 68

    © National Instruments Corporat ion 7-1 NI USB-621x User Manual 7 Analog Output Many M Series de vices have analog output functionalit y . NI 621 x devices that support analog output have tw o A O chan nels controlled by a single clock and capable of wav eform generation. Refer to Appendix A, Device-Specific Information , for informatio n about th[...]

  • Page 69

    Chapter 7 Analog Output NI USB-621x User Manual 7-2 ni.com D A Cs. It allows you to do wnload the points of a wav eform to your M Series device without host computer interaction. AO Sample Clock The A O Sample Clock signal reads a sample from the D A C FIFO and generates the A O voltage. AO Range The A O Range is ±10 V for NI 621 x devices. Minimi[...]

  • Page 70

    Chapter 7 Analog Output © National Instruments Corporat ion 7-3 NI USB-621x User Manual Hardware-timed generations ha ve se veral adv antages ov er software-timed acquisitions: • The time between samples can be m uch shorter . • The timing between samples can b e deterministic. • Hardw are-timed acquisitions can use hardware triggering. Hard[...]

  • Page 71

    Chapter 7 Analog Output NI USB-621x User Manual 7-4 ni.com the buf fer at a f ast enough rate to k e ep up with the generation, the buffer will underflo w and cause an error . Analog Output Digital T riggering Analog output supports two dif ferent triggering acti ons: • Start trigger • P ause trigger A digital trigger can init iate these action[...]

  • Page 72

    Chapter 7 Analog Output © National Instruments Corporat ion 7-5 NI USB-621x User Manual Analog Output T iming Signals Figure 7-3 summarizes all of the timi ng options provided by the analog output timing eng ine. Figure 7-3. Analog Output T iming Options USB M Series devices feature the follo wing A O (waveform generation) timing signals. • A O [...]

  • Page 73

    Chapter 7 Analog Output NI USB-621x User Manual 7-6 ni.com The source also can be one of several internal signals on your D A Q device. Refer to Device Routing in MAX in the NI-D AQmx Help or the LabVIEW 8.x Help for more i nformation. Y ou also can specify whether the waveform generation begins on the rising edge or falling edge of ao/StartTrigger[...]

  • Page 74

    Chapter 7 Analog Output © National Instruments Corporat ion 7-7 NI USB-621x User Manual The source also can be one of sev eral other internal signals on your DA Q device. Refer to Device Routing in MAX in the NI-D A Qmx Help or the LabVIEW 8.x Help for mor e informatio n. Y ou also can specify whether the samples are paused when ao/PauseT rigger i[...]

  • Page 75

    Chapter 7 Analog Output NI USB-621x User Manual 7-8 ni.com Figure 7-5 shows the relationship of ao/SampleClock to ao/StartTrigger . Figure 7-5. ao/SampleC lock an d ao/StartT rigger AO Sample Clock T imebase Signal The A O Sample Clo ck T imebase (ao/SampleClockTimebase) signal is di vided down to pro vide a source for ao/SampleClock. Y ou can rout[...]

  • Page 76

    Chapter 7 Analog Output © National Instruments Corporat ion 7-9 NI USB-621x User Manual Getting Started with AO Applications in Software Y ou can use an NI 62 1 x device in the following an alog ou tput appli cations. • Single-point (on-demand) generation • F inite generatio n • Continuous generation • W aveform generation Y ou can perform[...]

  • Page 77

    © National Instruments Corporat ion 8-1 NI USB-621x User Manual 8 Digital I/O NI 621 x devices ha v e eight static digital inpu t lines, P0.<0..7>. These lines also can be used as PFI inputs. NI 621 x devices hav e eight static digital output l ines, P1.<0..8>.These lines also can be used as PFI output. By default the digital output li[...]

  • Page 78

    Chapter 8 Digital I/O NI USB-621x User Manual 8-2 ni.com The voltage input and output lev els and the current driv e le vels of the DIO lines are listed in the sp ecifications of your device. Static DIO Y ou can use static DI and DO lines to monitor or cont rol digital signals. All samples of static D I lines and updat es of DO lines are software-t[...]

  • Page 79

    Chapter 8 Digital I/O © National Instruments Corporat ion 8-3 NI USB-621x User Manual Connecting Digital I/O Signals The DI and DO signals, P0.<0..7> and P1.<0..7> are referenced to D GND. Digital input applications include receiving TTL signals and sensing external de vice states, such as the st ate of the switch sho wn in the figure.[...]

  • Page 80

    Chapter 8 Digital I/O NI USB-621x User Manual 8-4 ni.com Getting Started with DIO Applications in Software Y ou can use the M Series de vice in the follo wing digital I/ O applications: • Static digital input • Static digital output • Digital wav eform generation • Digital wav eform acquisi tion • DI cha nge detection Note For more inform[...]

  • Page 81

    © National Instruments Corporat ion 9-1 NI USB-621x User Manual 9 Counters M Series devices hav e two general-purpose 32-b it counter/timers and one frequency generator , as sho wn in Figure 9-1. The general-purpose counter/timers can be used for many measurement and pulse generation applications. Figure 9-1. M Series Counters Counter 0 Counter 0 [...]

  • Page 82

    Chapter 9 Counters NI USB-621x User Manual 9-2 ni.com The counters have se ven input signals, although in most applications only a fe w inputs are used. For information about connecting counter signals, refer to the Default Counter/Timer Pinouts section. Counter Input Applications Counting Edges In edge counting appl ications, the co unter counts e[...]

  • Page 83

    Chapter 9 Counters © National Instruments Corporat ion 9-3 NI USB-621x User Manual Figure 9-3. Single Point (On-Demand) Edge Counting with Pause T rigger Buffered (Sample Cl ock) Edge Counting W ith b uffered edge counting (edge counting using a sample clock), the counter counts the nu mber of edges on the Source input after the counter is armed. [...]

  • Page 84

    Chapter 9 Counters NI USB-621x User Manual 9-4 ni.com Non-Cumulative Buffe red Edge Counting Non-cumulativ e edge counting is similar to buf fered (sample clock) edge counting. Ho wev er , the counter resets after each acti v e edge of the Sample Clock. Y ou can route the Sample Clock to the Gate input of the coun ter . Figure 9-5 shows an e xample[...]

  • Page 85

    Chapter 9 Counters © National Instruments Corporat ion 9-5 NI USB-621x User Manual Pulse-Width Measurement In pulse-width measuremen ts, the counter measures the width of a pulse on its Gate input signal. Y ou can configur e the counter to measure the width of high pulses or low pulses on the Gate signal. Y ou can route an internal or externa l pe[...]

  • Page 86

    Chapter 9 Counters NI USB-621x User Manual 9-6 ni.com The counter counts the number of edges o n the Source input whi le the Gate input remains acti ve. On each trailing ed ge of the Gate signal, the counter stores the count in a hardware sa ve re gister . A USB Signal Stream transfers the stored values to host memory . Figure 9-7 sho ws an example[...]

  • Page 87

    Chapter 9 Counters © National Instruments Corporat ion 9-7 NI USB-621x User Manual Single Period Measurement W ith single period measurement, the counter counts the number of rising (or falling) edges on the Source inp ut occurring between two active edges of the Gate input. On the second activ e edge of the Gate input, the counter stores the coun[...]

  • Page 88

    Chapter 9 Counters NI USB-621x User Manual 9-8 ni.com Figure 9-9. Buffered Period Measu rement Note that if you are using an external signal as the Source, at least one Source pulse should occu r between each acti ve edge of the Gate signal. This condition ensures that correct v alues are returned b y th e counter . If this condition is not met, th[...]

  • Page 89

    Chapter 9 Counters © National Instruments Corporat ion 9-9 NI USB-621x User Manual Semi-Period Measurement In semi-period measuremen ts, the counter measures a semi-peri od on its Gate input signal after the counter is arme d. A semi-period is the time between any tw o consecuti ve e dges on the Gate input. Y ou can route an internal or externa l [...]

  • Page 90

    Chapter 9 Counters NI USB-621x User Manual 9-10 ni.com This condition ensures that correct v alues are returned b y th e counter . If this condition is not met, the count er returns a zero. Refer to the Duplicate Count Prevention section for more information. For information about connecting counter signals, refer to the Default Counter/Timer Pinou[...]

  • Page 91

    Chapter 9 Counters © National Instruments Corporat ion 9-11 NI U SB-621x User Manual Method 1b—Measure Low Frequency with One Counter (Averaged) In this method, you measure sev eral periods of your signal using a known timebase. This method is good for low to medium freq uency signals. Y ou can route the signal to measure (F1) to the Gate of a c[...]

  • Page 92

    Chapter 9 Counters NI USB-621x User Manual 9-12 ni.com generate the pulse externally and connect it to a PFI terminal. Y ou only need to use one counter if you generate the pulse externally . Route the signal to measure (F1) to the Source of the co unter . Conf igure the counter for a single pulse-width meas urement. Suppose you measure the width o[...]

  • Page 93

    Chapter 9 Counters © National Instruments Corporat ion 9-13 NI U SB-621x User Manual Figure 9-14. Method 3 Then route the Counter 0 Internal Output signal to the Gate input of Counter 1. Y ou can route a signal of kno wn freq uenc y (F2) to the Counte r 1 Source input. F2 can be 80MHzTimebase. For signals that might be slo wer than 0.02 Hz, use a [...]

  • Page 94

    Chapter 9 Counters NI USB-621x User Manual 9-14 ni.com 80 MHz T imebase. Y our measurement may return 1600 ± 1 cycles depending on the phase of the signal with respect to the timebase. As your frequency becomes larger , this error of ±1 cycle becomes more significant; T ab le 9-2 illustrates this point. • Method 1b (measuring K periods of F1) i[...]

  • Page 95

    Chapter 9 Counters © National Instruments Corporat ion 9-15 NI U SB-621x User Manual T able 9-3 summarizes some of the di f ferences in methods of measuring frequency . For information about connecting counter signals, refer to the Default Counter/Timer Pinouts section. Position Measurement Y ou can use the counters to perform position measurement[...]

  • Page 96

    Chapter 9 Counters NI USB-621x User Manual 9-16 ni.com Figure 9-15 shows a quadrature c ycle and the resulting increments and decrements for X1 encoding. When channel A leads channel B, the increment occurs on the rising edge of channel A. When channel B leads channel A, the decrement occurs on the f alling edge of channel A. Figure 9-15. X1 Encodi[...]

  • Page 97

    Chapter 9 Counters © National Instruments Corporat ion 9-17 NI U SB-621x User Manual Channel Z Behavior Some quadrature encoders hav e a thir d channel, channel Z, which is also referred to as the index channe l. A high lev el on channel Z causes the counter to b e reloaded w ith a specifi ed value in a specif ied phase of the quadrature cycle. Y [...]

  • Page 98

    Chapter 9 Counters NI USB-621x User Manual 9-18 ni.com The counter increments on each rising edge of channel A. The counter decrements on each rising edge of channel B, as shown in Figure 9-19. Figure 9-19. Measurements Using T wo Pulse Encoders For information about connecting counter signals, refer to the Default Counter/Timer Pinouts section. T [...]

  • Page 99

    Chapter 9 Counters © National Instruments Corporat ion 9-19 NI U SB-621x User Manual Figure 9-20 shows an example of a si ngle two-signal edge-separation measurement. Figure 9-20. Single T wo-Signal Edge-Separation Measurement Buffered T wo-Signal Edge- Separation Measurement Buffered and single two-signal edge-sep aration measurements are similar[...]

  • Page 100

    Chapter 9 Counters NI USB-621x User Manual 9-20 ni.com Counter Output Applications Simple Pulse Generation Single Pulse Generation The counter can output a single pulse. The pulse appears on the Counter n Internal Output sign al of the counter . Y ou can specify a delay from when the counter is armed to the beginning of the pulse. The delay i s mea[...]

  • Page 101

    Chapter 9 Counters © National Instruments Corporat ion 9-21 NI U SB-621x User Manual Figure 9-23 shows a generation of a pulse with a pulse del ay of four and a pulse width of three (using the rising edge of Source). Figure 9-23. Single Pulse Generation with Start T rigger Retriggerable Single Pulse Generation The counter can output a single pulse[...]

  • Page 102

    Chapter 9 Counters NI USB-621x User Manual 9-22 ni.com Pulse T rain Generation Continuous Pulse T rain Generation This function generates a train of pul ses with programmab le frequency and duty cycle. The pulses appear on the Counter n Internal Outp ut signal of the counter . Y ou can specify a delay from when the counter is armed to the beginning[...]

  • Page 103

    Chapter 9 Counters © National Instruments Corporat ion 9-23 NI U SB-621x User Manual Frequency Generation Y ou can generate a frequency b y using a counter in pulse train generation mode or by using the frequency generator circuit. Using the Frequency Generator The frequency generator can output a square wav e at many dif ferent frequencies. The f[...]

  • Page 104

    Chapter 9 Counters NI USB-621x User Manual 9-24 ni.com Frequency Output can be routed out to any PFI <4..7> or PFI <12..15> terminal. All PFI terminals are set to high-impedance at startup. The FREQ OUT signal also can be routed to DO Sample Clock and DI Sample Clock. In software, program th e frequency ge nerator as you would program o[...]

  • Page 105

    Chapter 9 Counters © National Instruments Corporat ion 9-25 NI U SB-621x User Manual frequency of the system. Figure 9-28 sho ws an e xample of pulse generation for ETS; the delay from the trigger to the pulse increases after each subsequent Gate activ e edge. Figure 9-28. Pulse Generation for ETS For information about connecting counter signals, [...]

  • Page 106

    Chapter 9 Counters NI USB-621x User Manual 9-26 ni.com Counter n Source Signal The selected edge of the Counter n Source signal increments and decrements the counter v alue dependin g on the application the counter is performing. T able 9-4 lists how this terminal is used in various applications. Routing a Signal to Counter n Source Each counter ha[...]

  • Page 107

    Chapter 9 Counters © National Instruments Corporat ion 9-27 NI U SB-621x User Manual Counter n Gate Signal The Counter n Gate signal can perform many dif ferent operations depending on the application includi ng starting and stopping the counter, and saving the counter contents. Routing a Signal to Counter n Gate Each counter has independent input[...]

  • Page 108

    Chapter 9 Counters NI USB-621x User Manual 9-28 ni.com Output, Counter 0 Gate, Counter 0 Source, or Co unter 1 Gate can be routed to Counter 1 Aux. Some of these options may not be av ailable in some driv er software. Counter n A, Counter n B, and Counter n Z Signals Counter n B can control the direction of counting in edge counting applications. U[...]

  • Page 109

    Chapter 9 Counters © National Instruments Corporat ion 9-29 NI U SB-621x User Manual Some of these options may not be av ailable in some driv er software. Counter n Internal Output and Counter n TC Signals Counter n TC is an internal signal that asserts when the counter value is 0. The Counter n Internal Output signal changes in resp onse to Count[...]

  • Page 110

    Chapter 9 Counters NI USB-621x User Manual 9-30 ni.com CTR 0 B 2 (PFI 1) CTR 1 SRC 4 (PFI 3) CTR 1 GA TE 3 (PFI 2) CTR 1 A UX 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) Table 9-6. Default NI-DAQmx C ounter/T imer Pins for USB-6218 Devices Counter/Timer Signal Default T erminal Number (Name[...]

  • Page 111

    Chapter 9 Counters © National Instruments Corporat ion 9-31 NI U SB-621x User Manual Y ou can use these defaults or select other sources and destinations for the counter/timer si gnals in NI-DA Qmx. Refer to Con necting Counter Signals in the NI-D A Qmx Help or the LabVIEW 8.x Help for more informati on about how to connect your signals for common[...]

  • Page 112

    Chapter 9 Counters NI USB-621x User Manual 9-32 ni.com the signal goes high or vice versa. F or continuous pulse generati ons, the counter stops generating pulses while the external trigger signal is low and resumes when the signal goes high or vice versa. When using a pause t rigger , the paus e trigger source is routed to the Counter n Gate signa[...]

  • Page 113

    Chapter 9 Counters © National Instruments Corporat ion 9-33 NI U SB-621x User Manual Cascading Counters Y ou can internally route th e Counter n Internal Output and Counter n TC signals of each counter to Gate input s of the other counter . By cascading two counters together , you can eff ecti vely create a 64-bit counter . By cascading counters, [...]

  • Page 114

    Chapter 9 Counters NI USB-621x User Manual 9-34 ni.com The filter setting for each input can be conf igured independently . On power up, the filters are dis abled. Figure 9- 30 shows an e xample of a low to high transition on an input that has its filter set to 125 ns (N = 5). Figure 9-30. Filter Example Enabling filters introduces jitter on the in[...]

  • Page 115

    Chapter 9 Counters © National Instruments Corporat ion 9-35 NI U SB-621x User Manual Figure 9-31. Pres caling Prescaling is intended to be used for frequency measurement where the measurement is made on a continu ous, repetiti ve signal. The prescaling counter cannot be read; therefore, you cannot determ ine ho w many edges hav e occurred since th[...]

  • Page 116

    Chapter 9 Counters NI USB-621x User Manual 9-36 ni.com Example Application That W orks Correctly (No Duplicate Counting) Figure 9-32 shows an e xternal buf fered signal as the period measurement Source. Figure 9-32. Duplicate Count Pr evention Example On the first rising edge of Gate, the current count of 7 is stored. On the next rising edge of Gat[...]

  • Page 117

    Chapter 9 Counters © National Instruments Corporat ion 9-37 NI U SB-621x User Manual Example Application That W orks Incorrectly (Duplicate Counting) In Figure 9-33, after the first rising edge of Gate, no Source pulses occur , so the counter does not write th e correct data to the buf fer . Figure 9-33. Duplicate Count Example Example Application[...]

  • Page 118

    Chapter 9 Counters NI USB-621x User Manual 9-38 ni.com Even if the Source pulses are long, the counter increments only once for each Source pulse. Normally , the coun ter value and Counter n Internal Output signals change synchronously to the Source signal. W ith duplicate count p rev ention, the counter value and Counter n Internal Output signals [...]

  • Page 119

    © National Instruments Corporat ion 10-1 NI USB-621x User Manual 10 PFI NI 621 x devices ha ve up to eight input and eight output Programmab le Function Interface (PFI) signals, which also can be used as static digital input or static digital ou tput signals. Each input PFI can be indi vidual ly conf igured as the following: • A static di gital [...]

  • Page 120

    Chapter 10 PFI NI USB-621x User Manual 10-2 ni.com Figure 10-2. NI 621 x PFI Output Cir cuitry When a terminal is used as a t iming input or output signal , it is called PFI x . When a terminal is used as a static digital input or output , it is called P0. x or P1. x . On the I/O connector , each terminal is labeled PFI x /P0 or PFI x /P1. The volt[...]

  • Page 121

    Chapter 10 PFI © National Instruments Corporat ion 10-3 NI USB-621x User Manual Most functions allow you to configure the polarity of PFI inputs and whether the input is edge or lev el sensitiv e. Exporting T iming Output Signals Using PFI T erminals Y ou can route any of the following timing signals to any PFI output terminal. • AI Conv ert Clo[...]

  • Page 122

    Chapter 10 PFI NI USB-621x User Manual 10-4 ni.com Figure 10-3. PFI Input Signals Connections PFI Filters Y ou can enable a programmable debouncing filter on each PFI signal. When the f ilters are enabled, your de vice samples the input on each ris ing edge of a filter clock. M Series de vices use an onboard oscillator to generate the filter clock [...]

  • Page 123

    Chapter 10 PFI © National Instruments Corporat ion 10-5 NI USB-621x User Manual The filter setting for each input can be conf igured independently . On power up, the filters are dis abled. Figure 10-4 shows an e xample of a lo w to high transition on an input that has its filter set to 125 ns (N = 5). Figure 10-4. Filter Example Enabling filters i[...]

  • Page 124

    Chapter 10 PFI NI USB-621x User Manual 10-6 ni.com I/O Protection Each DI, DO, and PFI signal is protected against o verv oltage, undervoltage, and o vercurrent condition s as well as ES D e v ents. Ho wev er , you should avoid these fault conditions by following these guidelines. •D o not connect a DO or PFI output lines to any external signal s[...]

  • Page 125

    © National Instruments Corporat ion 11-1 NI USB-621x User Manual 11 Isolation and Digital Isolators USB-6215/6218 devices are isolated data acquisition devices. As sho wn in Figure 11-1, the analog input, analo g output, counters, PFI/static DI, and PFI/static DO circuitry , and digital routi ng and clock generat ion are referenced to an isolat ed[...]

  • Page 126

    Chapter 11 Isolati on and Digital Isolators NI USB-621x User Manual 11-2 ni.com The isolated ground is an input to th e USB-6215/6218 device. The user must connect this g round to the grou nd of system being m easured or controlled. Refer to Chapter 5, Connecting AI Signals on the USB-6210/6211 Devices , Chapter 6, Co nnecting AI Signals on the USB[...]

  • Page 127

    Chapter 11 Isolation and Digi tal Isolators © National Instruments Corporat ion 11-3 NI USB-621x User Manual Switching voltages through the transformer cause charging and discharging of the parasitic capacitances and inductances in the switch ing power supplies that occur on ev ery switch cycle, resulting in high-speed currents flowing through the[...]

  • Page 128

    Chapter 11 Isolati on and Digital Isolators NI USB-621x User Manual 11-4 ni.com Add an AC return path from the device isolated ground t o earth ground. For non-isolated systems, an AC return path is only needed for high or source impedances. An A C return path can be created by connecting a capacitor between the device’ s isolated ground and eart[...]

  • Page 129

    © National Instruments Corporat ion 12-1 NI USB-621x User Manual 12 Digital Routing and Clock Generation The digital routing circuitry has the following main functions. • Manages the flow of data be tween the bus interf ace and the acquisition/generat ion sub-systems (analog inpu t, analog output, digital I/O, and the counters). The digital rout[...]

  • Page 130

    Chapter 12 Digital Ro uting and Clock Generation NI USB-621x User Manual 12-2 ni.com 100 kHz T imebase The 100 kHz T imebase can be used to generate many of the AI and A O timing signals. The 100 kHz Timebase al so can be used as the Source input to the 32-bit general-pur pose counter/timers. The 100 kHz T imebase is generated by di viding down the[...]

  • Page 131

    © National Instruments Corporat ion 13-1 NI USB-621x User Manual 13 Bus Interface The b us interface circuitry of M Serie s de vices ef f iciently mov es data between host memory and the measurement and acquisition circuits. All M Series de vices are jumperless fo r complete plug-and-play operation. The operating system automatically a ssigns the [...]

  • Page 132

    Chapter 13 Bus Interface NI USB-621x User Manual 13-2 ni.com Programmed I/O Programmed I/O is a data transfer m echanism where the user’ s program is responsible for transferring data. Each read or write call in the program initiates the transfer of data. P rogrammed I/O is typically used in software-timed (on-demand) operations. Refer t o the So[...]

  • Page 133

    © National Instruments Corporat ion 14-1 NI USB-621x User Manual 14 T riggering A trigger is a signal that caus es an action, such as starting or stopping the acquisition of data. When you configure a trigger , you must decide how you want to produce the trigger and the action yo u want the trigger to cause. All M Series devices support internal s[...]

  • Page 134

    Chapter 14 T riggering NI USB-621x User Manual 14-2 ni.com Y ou also can program your D A Q device to perform an action in response t o a trigger from a digital source. Th e action can af fect the follo wing: • Anal og input acquisition • Anal og output generation • Counter beha vior[...]

  • Page 135

    © National Instruments Corporat ion A-1 NI USB-621x User Manual A Device-Specific Information This appendix contains device pinout s, specif ications, cable and accessory choices, and other information for the following USB M Series devices. • USB-6210 • USB-6211/6215 • USB 6218 T o obtain documentat ion for devices not listed h ere, refer t[...]

  • Page 136

    Appendix A Device-Speci fic Information NI USB-621x User Manual A-2 ni.com Figure A-1. USB-6210 Pinout Table A-1. Default NI-DAQmx Counter/T imer Pins Counter/Timer Signal Default T erminal Number (Name) CTR 0 SRC 1 (PFI 0) CTR 0 GA TE 2 (PFI 1) CTR 0 A UX 1 (PFI 0) CTR 0 OUT 6 (PFI 4) CTR 0 A 1 (PFI 0) 5678 1 2 3 4 13 14 15 16 9 1 01 11 2 AI 1 AI [...]

  • Page 137

    Appendix A Device-Specific Information © National Instruments Corporat ion A-3 NI USB-621x User Manual Note For more information abou t default NI-D A Qmx coun ter inputs, refer to Connecting Counter Signals in the NI-DA Qmx Help or the LabVIEW 8.x Help . USB-6210 Specifications Refer to the NI 621x Specifications for more detailed information abo[...]

  • Page 138

    Appendix A Device-Speci fic Information NI USB-621x User Manual A-4 ni.com USB-6211/6215 USB-6211/6215 Pinout Figure A-2 shows the pinout of the NI 6211/6215. For a detailed description of each signal, refer to the I/O Connector Signal Descriptions section of Chapter 3, Connector Information . Single-blink Operating normally . Connected to USB Hi-S[...]

  • Page 139

    Appendix A Device-Specific Information © National Instruments Corporat ion A-5 NI USB-621x User Manual Figure A-2. USB-6211/6215 Pinout Table A-3. Default NI-DAQmx Counter/T imer Pins Counter/Timer Signal Default T erminal Number (Name) CTR 0 SRC 1 (PFI 0) CTR 0 GA TE 2 (PFI 1) CTR 0 A UX 1 (PFI 0) CTR 0 OUT 6 (PFI 4) CTR 0 A 1 (PFI 0) CTR 0 Z 2 ([...]

  • Page 140

    Appendix A Device-Speci fic Information NI USB-621x User Manual A-6 ni.com Note For more information abou t default NI-D A Qmx coun ter inputs, refer to Connecting Counter Signals in the NI-DA Qmx Help or the LabVIEW 8.x Help . USB-6211/6215 Specifications Refer to the NI 621x Specifications for more detailed information about the USB-6211/6215 dev[...]

  • Page 141

    Appendix A Device-Specific Information © National Instruments Corporat ion A-7 NI USB-621x User Manual USB 6218 USB 6218 Pinout Figure A-3 shows the pinout of the NI 6218. For a detailed description of each signal, refer to the I/O Connector Signal Descriptions section of Chapter 3, Connector Information . Single-blink O perating normally . Connec[...]

  • Page 142

    Appendix A Device-Speci fic Information NI USB-621x User Manual A-8 ni.com Figure A-3. USB 6218 Pinout Table A-5. Default NI-DAQmx Counter/T imer Pins Counter/Timer Signal Default T erminal Number ( Name) CTR 0 SRC 1 (PFI 0) CTR 0 GA TE 2 (PFI 1) CTR 0 A UX 34 (PFI 9) CTR 0 OUT 6 (PFI 4) CTR 0 A 1 (PFI 0) CTR 0 Z 2 (PFI 1) AI 1 AI 9 AI 2 AI 10 AI 3[...]

  • Page 143

    Appendix A Device-Specific Information © National Instruments Corporat ion A-9 NI USB-621x User Manual Note For more information abou t default NI-D A Qmx coun ter inputs, refer to Connecting Counter Signals in the NI-DA Qmx Help or the LabVIEW 8.x Help . USB 6218 Specifications Refer to the NI 621x Specifications for more detailed information abo[...]

  • Page 144

    Appendix A Device-Speci fic Information NI USB-621x User Manual A-10 ni.com Single-blink O perating normally . Connected to USB Hi-Speed port. Refer to the NI 621x Specifications for more informatio n. Double-blink Connected to USB full speed port. Device performance might be affected. Refer to the NI 621x Specifications for more informatio n. Tabl[...]

  • Page 145

    © National Instruments Corporat ion B-1 NI USB-621x User Manual B T roubleshooting This section contains common questi ons about M Series devices. If your questions are not answered here, refer to the Natio nal Instruments KnowledgeBase at ni.com/kb . Analog Input I am seeing crosstalk or ghost v o ltages when samp ling multi ple channels. What do[...]

  • Page 146

    Appendix B T roubleshootin g NI USB-621x User Manual B-2 ni.com are various methods of achie ving this reference while maintai ning a high common-mode rejection ratio (CMRR ). These methods are outlined in Chapter 5, Connecting AI Signals on the USB-6210/6211 Devices and Chapter 6, Connecting AI Signals on the USB-6215/6218 Devices . AI GND is an A[...]

  • Page 147

    Appendix B T roubleshootin g © National Instruments Corporat ion B-3 NI USB-621x User Manual Analog Output I am seeing glitches on the outp ut signal. Ho w can I minimize it? When you use a D A C to generate a wa veform, you may observe glitches on the output signal. These glitches are normal; when a DA C switches from one voltage to another , it [...]

  • Page 148

    © National Instruments Corporat ion C-1 NI USB-621x User Manual C T echnical Support and Professional Ser vices Visit the following sections of the National Instruments Web site at ni.com for technical support an d professional services: • Support —Online technical support resources at ni.com/support include the following: – Self-Help Resour[...]

  • Page 149

    Appendix C T echnical Support and Professional Ser vices NI USB-621x User Manual C-2 ni.com • Calibration Certificate —If your product supports calibration, you can obtain t he calibration certificate for your product at ni.com/ calibration . If you searched ni.com and could not find the answers you need, contact your local off ice or NI corpor[...]

  • Page 150

    © National Instruments Corporat ion G-1 NI USB-621x User Manual Glossar y Numbers/Symbols % Percent. + Positiv e of, or plus. – Neg ativ e of, or minus. ± Plus or minus. < Less than. > Greater than. ≤ Less than or equal to. ≥ Greater than or equal to. /P e r . º Degree. Ω Ohm. A A Amperes—the unit of electric current. A/D Analog-t[...]

  • Page 151

    Glossary NI USB-621x User Manual G-2 ni.co m AI 1. Analog input. 2. Anal og input channel signal. AI GND Analog input ground signal. AI SENSE Analog input sense signal. analog A signal whose amplitude can ha ve a continuous range of v alues. analog input signal An input signal that varies smoothly ov er a continuous range of values, rather than in [...]

  • Page 152

    Glossary © National Instruments Corporat ion G-3 NI USB-621x User Manual ASIC Application-specific integrated circuit—A proprietary semiconduct or component designed and manufactur ed to perform a set of specific functions for a specif ic customer . asynchronous 1. Hardware—A prop erty of an ev ent that occurs at an arbitrary time, without syn[...]

  • Page 153

    Glossary NI USB-621x User Manual G-4 ni.co m cascading Process of extending the count ing ra nge of a counter chip b y connecting to the next higher counter . CE European emissions control standard. channel Pin or wire lead to which you apply or from which you read the analog or digital si gnal. Analog sign als can be single-ended or dif ferential.[...]

  • Page 154

    Glossary © National Instruments Corporat ion G-5 NI USB-621x User Manual counter/timer A circuit that counts external pulses or clock pulses (timing). D D GND Digital grou nd signal. D-SUB connector A serial connector . D A C Digital-to-Analog Con verter—An elect ronic device, often an inte grated circuit, that con verts a digital number into a [...]

  • Page 155

    Glossary NI USB-621x User Manual G-6 ni.co m data transfer A technique for moving digital data from one system to another . Options for data transfer are DMA, interrupt, and programmed I/O. For programmed I/O transfers, the CPU in the PC reads data from the D A Q device whenev er the CPU recei ves a soft ware signal to ac quire a single data point.[...]

  • Page 156

    Glossary © National Instruments Corporat ion G-7 NI USB-621x User Manual digital trigger A TTL level signal ha ving two discrete lev els—A high and a low le v el. DIO Digital input/ou tput. DMA Direct Memory Access—A method by which data can be tran sferred to/ from computer memory from /to a de vice or memory on the b us while the processor d[...]

  • Page 157

    Glossary NI USB-621x User Manual G-8 ni.co m F FIFO First- In-First-Out mem ory buf fer—A data buf fering technique that functions like a shift register where the oldest values (f irst in) come out first. Many D A Q products and instruments use FIFOs to b uffer digital data from an A/D con verter , or to buf f er the data before or after bus tran[...]

  • Page 158

    Glossary © National Instruments Corporat ion G-9 NI USB-621x User Manual function 1. A built-in ex ecution element, co mparable to an operator , function, or statement in a con v entional language. 2. A set of so ftware instructions executed by a single line of code that may hav e input and/or output parameters and returns a value when ex ecuted. [...]

  • Page 159

    Glossary NI USB-621x User Manual G-10 ni.com impedance 1. The electrical characteristic of a circuit expressed in ohms and/or capacitance/inductance. 2. Resistance. in. Inch or inches. instrument driv er A set of high-lev el software functions that controls a specif ic GPIB, VXI, or RS232 programmable instrument or a specific plug-in D A Q device. [...]

  • Page 160

    Glossary © National Instruments Corporat ion G-11 NI U SB-621x User Manual L LabVIEW A graphical programming language. LED Light-Emitting Di ode—A semiconductor l ight source. lowpass filter A filter that passes signals below a cutof f frequency while blocking signals abov e that frequency . LSB Least Significant Bit. M m Meter . M Series An arc[...]

  • Page 161

    Glossary NI USB-621x User Manual G-12 ni.com monotonicity A characteristic of a DA C in whic h the analog output always increases as the values of the digital code input to it increase. multichannel Pertaining to a radio-co mmunication system t hat operates on more than one channel at the same time. The indi vidu al channels might contain identical[...]

  • Page 162

    Glossary © National Instruments Corporat ion G-13 NI U SB-621x User Manual NRSE Non-Referenced Single-Ended mo de—All measurements are made with respect to a common (NRSE) measur ement system reference, b ut the voltage at this reference can v ary w ith respect to the measurement system ground. O of fset The unwanted DC voltage due to amplifier [...]

  • Page 163

    Glossary NI USB-621x User Manual G-14 ni.com Plug and Play devices Devices that do not require DIP switches or jumpers to configure resources on the devices. Also called switchless de vices port. 1. A com munications connection on a computer or a remote controller; 2. A dig ital port, consisting of four or eight lines of digital input and/or output[...]

  • Page 164

    Glossary © National Instruments Corporat ion G-15 NI U SB-621x User Manual Q quadrature encoder An encoding technique for a rotating device where two tracks of information are placed on the de vice, wi th the signals on the tracks of fset by 90° from each other . This makes it possible to detect the direction of the motion. R range The maximum an[...]

  • Page 165

    Glossary NI USB-621x User Manual G-16 ni.com scan One or more analog or digital input samples. T ypically , the number of input samples in a scan is equal to the number of channels in the input group . For example, one pulse from the scan cl ock produces one scan which acquires one new sample from e very analog input channel in the group. scan inte[...]

  • Page 166

    Glossary © National Instruments Corporat ion G-17 NI U SB-621x User Manual single-ended output A circu it whose output signal is present between one output terminal and ground. software applications The programs that run on your com puter and perform a specific user - oriented function, such as acco unting, program de velopment, measurement, or da[...]

  • Page 167

    Glossary NI USB-621x User Manual G-18 ni.com T imebase The reference signals for controlling the basic accuracy of time or frequency-based measurements. For inst ruments, timebase refe rs to the accuracy of the internal clock. t out Output delay time. T raditional NI-DA Q (Legac y) An upgrade to the earlier version of NI-D A Q. T raditi onal NI-D A[...]

  • Page 168

    Glossary © National Instruments Corporat ion G-19 NI U SB-621x User Manual V g Ground loop voltage. V IH V olts, inp ut high. V IL V olts, inp ut lo w . V in V olts in . V m Measured voltage. V OH V olts, output hi gh. V OL V olts, output low . V out V olts out. V s Signal source voltage. virtual channel See channel . W wa veform 1. The plot of th[...]

  • Page 169

    © National Instruments Corporat ion I-1 NI U SB-621x User Manual Index Symbols +5 V po wer input, 3-3 +5 V po wer output, 3-2 +5 V po wer source, 3-2 .NET languages documentatio n, xvi Numerics 100 kHz Timebase, 12-2 20 MHz T imebase, 12-1 80 MHz T imebase, 12-1 A A/D con verter, 4-2 A C return path, creating, 11-3 accessories choosing for your de[...]

  • Page 170

    Index NI USB-621x User Manual I-2 ni.com AI Sample Clock Timebase, 4-16 AI Start T rigger, 4-21 analog output, 7-1 circuitry, 7-1 connecting signals, 7-4 data generation methods, 7-2 fundamentals, 7-1 getting started with applications in software, 7-9 glitches on the output si gnal, 7-2 timing signals, 7-5 triggering, 7-4 troubleshooting, B-3 analo[...]

  • Page 171

    Index © National Instruments Corporat ion I-3 NI U SB-621x User Manual ground-referenced signal sources, 5-9 PFI input signals, 10-3 connections for floating si gnal sources, 5-9 single-ended for floating signal sources, 5-9 single-ended, RSE configuration, 5-9 connector information, 3-1 USB-6210 pinout, A-1 USB-6211 pinout, A-4 USB-6215 pinout, A[...]

  • Page 172

    Index NI USB-621x User Manual I-4 ni.com Declaration of Conformity (NI resources), C-1 default counter terminals, 9-29 NI-D A Qmx co unter/timer pins, 9-29 pins, 9-29 device information, A-1 pinouts, 1-3 specifications, 1-3, A-1 USB-6210, A-1 USB-6211, A-4 USB-6215, A-4 USB-6218, A-7 diagnostic tools (NI resources), C-1 DIFF connections using with [...]

  • Page 173

    Index © National Instruments Corporat ion I-5 NI U SB-621x User Manual F features, counter, 9-32 field wiring considerations, 4-11 fil t e rs counter, 9-33 PFI, 10-4 floating signal sources connecting, 5-3 description, 5-3 using in differential mode, 5-5 using in NRSE mode, 5-8 using in RSE mode, 5-9 when to use in differential mode, 5-3 when to u[...]

  • Page 174

    Index NI USB-621x User Manual I-6 ni.com instrumentation amplifier, 4-2 interface, b us, 13-1 isolated D A Q de vices, 11-1 benefits, 11-2 common-mode noise, 11 -2 isolators, 11-1 K Kno wledgeBase, C-1 L LabVIEW documentation, xiv LabW indo ws/CVI documentation , xv LED USB-6210, A-3 USB-6211, A-6 USB-6215, A-6 USB-6218, A-9 lo w impedance sources,[...]

  • Page 175

    Index © National Instruments Corporat ion I-7 NI U SB-621x User Manual when to use with groun d-referenced signal sources, 5-10 NRSE connections using with floating signal sources, 5-8 using with grou nd-referenced signal sources, 5-13 when to use with floating signal sources, 5-4 when to use with groun d-referenced signal sources, 5-10 O on-deman[...]

  • Page 176

    Index NI USB-621x User Manual I-8 ni.com when to use with groun d-referenced signal sources, 5-11 related documentation, xiv retriggerable single pu lse generation, 9-21 routing digital, 12-1 RSE configuration, 5-9 RSE connections using with floating signal sources, 5-9 when to use with floating signal sources, 5-3 when to use with groun d-referenc[...]

  • Page 177

    Index © National Instruments Corporat ion I-9 NI U SB-621x User Manual software configuring AI ground-reference settings, 4-5 programming devices, 2-4 software (NI resources), C-1 software-timed acquisitions, 4-9 generations, 7-2 specifications, A-1 device, 1-3 USB-6210, A-3 USB-6211, A-6 USB-6215, A-6 USB-6218, A-9 start trigger, 9-31 static DIO,[...]

  • Page 178

    Index NI USB-621x User Manual I-10 ni.com USB-6218, A-7 analog input signals, 6-1 LED, A-9 pinout, A-7 specifications, A-9 using lo w impedance sources, 4-6 using PFI termin als as static digital I/Os, 10-3 as timing input signals, 10-2 to export timing output signals, 10-3 W wav eform ge neration signals, 7-5 W eb resources, C-1 X X1 encoding, 9-1[...]