National Instruments NI 6232 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
179
180

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 6232, 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 6232 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 6232. 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 6232 should contain:
- informations concerning technical data of National Instruments NI 6232
- name of the manufacturer and a year of construction of the National Instruments NI 6232 item
- rules of operation, control and maintenance of the National Instruments NI 6232 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 6232 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 6232, 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 6232.

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 6232 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 6232/6233 User Manual NI 6232/6233 User Manual July 2006 371995A-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 NI 6232/6233 is warranted against defects in materi als a nd workmanship for a period of three years from the date o f ship ment, as evidenced by receipts or other documentati on. National Instruments wil l, at its option, repair or replace equipment that proves to be defect ive during the warranty period. This wa[...]

  • 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

    Compliance Compliance with FCC/Canada Radio Frequency Interference Regulations Determining FCC Class The Federal Communications Commission (FCC) has rules to protect wireless co mmunications from inte rference. The FCC places digital electronics into two classes. These classes are known as Class A (for use in industrial-commercial locations onl y) [...]

  • Page 6

    © National Instruments Corporation vii NI 6232/6233 User Manual Contents About This Manual Conventions ............ .............. .............. .............. .............. .............. ............... .............. .... x v Related Documentation ............ .............. .............. .............. .............. .............. ........[...]

  • Page 7

    Contents NI 6232/6233 User Manual viii ni.com Chapter 3 Connector Information I/O Connector Signal Descriptions .................. .............. ................. .............. .............. ... 3-1 RTSI Connector Pinout ............... .............. .............. .............. .............. .............. ............ 3-3 Chapter 4 Analog I[...]

  • Page 8

    Contents © National Instruments Corporation ix NI 6232/6233 User Manual Using an External Source ...................... .............. .............. .............. .. 4-23 Routing AI Sa mple Clock Signal to an Output Terminal ................. 4-23 Other Timing Requirements.................. ................. .............. ............. 4-23 AI [...]

  • Page 9

    Contents NI 6232/6233 User Manual x ni.com AO Sample Clock Signal ............... .............. ................. .............. .............. ...... 5-8 Using an Internal Source .... .............. .............. .............. .............. ...... 5-9 Using an External Source ........... .............. .............. .............. ...........[...]

  • Page 10

    Contents © National Instruments Corporation xi NI 6232/6233 User Manual Position Measurement ............. ........................................................ ................ 7- 16 Measurements Using Quadrature Encoders .................... .............. .... 7-16 Measurements Using Two Pulse Encoders .................. .............. .....[...]

  • Page 11

    Contents NI 6232/6233 User Manual xii ni.com Prescaling ............. .............. ............... .............. .............. .............. .............. ...... 7-34 Duplicate Count Prevention ................ .............. ............... .............. ................. 7-35 Duplicate Count Preventio n Example ... .............. .........[...]

  • Page 12

    Contents © National Instruments Corporation xiii NI 6232/6233 User Manual Using RTSI Terminals as Timing Input Sign als ............... .............. .............. .. 10-6 RTSI Filters ............... .............. .............. .............. .............. .............. .............. .. 10-6 PXI Clock and Trigger Signals ................. [...]

  • Page 13

    © National Instruments Corporation xv NI 6232/6233 User Manual About This Manual The NI 6232/6233 User Manual co ntains informatio n about usi ng the National Instruments 6232/623 3 M Series data acquisition (DA Q) de vices with NI-D A Qmx 8.0 and la ter . NI 6232/6233 devices feature eight analog input (AI) channels, four analog outp ut (A O) cha[...]

  • Page 14

    About This Manual NI 6232/6233 User Manual xvi ni.com monospace T ext in this font denotes text or ch aracters that you should enter from the keyboard, sections of code, programming examples, and syntax examples. This font is also used for the proper na mes of disk dri ves, paths, directories, programs, subprograms, su broutines, d evice names, fun[...]

  • Page 15

    About This Manual © National Instruments Corporation xvii NI 6232/6233 User Manual The NI-D AQmx for Linux Configuration Guide provi des conf iguration instructions, templates, and instructions for using test panels. Note All NI-D A Qmx documentatio n for Linux is installed at /usr/local/ natinst/nidaqmx/docs . NI-DAQmx Base The NI-D A Qmx Base Ge[...]

  • Page 16

    About This Manual NI 6232/6233 User Manual xviii ni.com • Getting St arted»Gett ing Started wi th D A Q —Includes ov ervie w information and a tutorial to learn how to take an NI-D A Qmx measurement in LabVIEW using the D A Q Assistant. • VI and Function Refer en ce»Measur ement I/O VIs and Functions —Describes the LabVIEW NI-D A Qmx VIs [...]

  • Page 17

    About This Manual © National Instruments Corporation xix NI 6232/6233 User Manual .NET and V isual C++ class libraries. This help collection is inte grated into the V isual Studio .NET documentation . In V isual Studio .NET , select Help»Contents . Note Y ou must ha ve V isual Studio .NET installed to view the NI Measur ement Studio Help . Device[...]

  • Page 18

    © National Instruments Corporatio n 1-1 NI 6232/6233 User Manual 1 Getting Started M Series NI 6232/6233 devices feature sixteen analog input (AI) channels, two analog output (A O) chann els, two counters, six lines of digital input (DI), and four lines of digital outpu t (DO). If you hav e not already installed your device, refer to the D A Q Get[...]

  • Page 19

    Chapter 1 Getting Started NI 6232/6233 User Manual 1-2 ni.com Device Specifications Refer to the NI 6232/6233 Specifications , av ailable on the NI-D A Q Device Document Br o wser or ni.com/manuals , fo r more detailed inf ormation on the NI 6232/6233 device. Device Accessories and Cables NI of fers a variety of accessories and cables to use with y[...]

  • Page 20

    © National Instruments Corporatio n 2-1 NI 6232/6233 User Manual 2 DAQ System Over view Figure 2-1 sho w s a typical D A Q sy st em, which includes sensors, transducers, cables that connect the various de vices to the accessories, the M Series de vi ce, programming software, and a PC. The following sections cov er t he components of a typi cal D A[...]

  • Page 21

    Chapter 2 DAQ System Over view NI 6232/6233 User Manual 2-2 ni.com Figure 2-2. General NI 6232/62 33 Block Diagram DAQ-STC2 The D A Q-STC 2 implements a high-performan ce digital engine for NI 6 232/6233 data acquisit ion hardware. Some key features of this engine include the following: • Flexible AI and A O sample and con vert timing • Many tr[...]

  • Page 22

    Chapter 2 DAQ System Overview © National Instruments Corporatio n 2-3 NI 6232/6233 User Manual Calibration Circuitr y The M S eries analog inputs and outputs have calibration circuitry to correct gain and of fset errors. Y ou can calibr ate the de vice to minimize AI and A O errors caused by time and temperatur e drift at run time. No external cir[...]

  • Page 23

    Chapter 2 DAQ System Over view NI 6232/6233 User Manual 2-4 ni.com Cables and Accessories NI offers a v ariety of produ cts to use with NI 6232/6233 devices, including cables, connector blocks, and other accessories, as follows: • Cables and cable assemblies – Shielded – Unshielded ribbon • Scre w terminal connector bl ocks, shielded and un[...]

  • Page 24

    Chapter 2 DAQ System Overview © National Instruments Corporatio n 2-5 NI 6232/6233 User Manual Programming Devices in Software National Instruments measurement de vices are packaged with NI-D A Q dri ver software, an e x tensiv e lib rary of functions and VIs you can call from your application software, such as LabVIEW or LabW ind ows/CVI, to prog[...]

  • Page 25

    © National Instruments Corporatio n 3-1 NI 6232/6233 User Manual 3 Connector Information The I/O Connector Si gnal Descriptions and RTSI Connector Pinou t sections contain information on M Series connectors. Refer to Appendix A, Device-Specific In formation , for device I/O connector pinouts. I/O Connector Signal Descriptions T able 3-1 describes [...]

  • Page 26

    Chapter 3 Connector Information NI 6232/6233 User Manual 3-2 ni.com A O GND — — Analog Output Ground —A O GND is t he refere nce for A O <0..1>. AI GND and A O GND are connected on the dev ice. Note: AI GND and AO GND are isolated from earth ground, chassis ground, P0.GND, and P1.GND. PFI <0..5>/P0.<0..5> P0.GND Input Progra[...]

  • Page 27

    Chapter 3 Connector Information © National Instruments Corporatio n 3-3 NI 6232/6233 User Manual R TSI Connector Pinout Refer to the RTSI Connector Pinout section of Chapter 10, Digital Routing and Clock Generation , for information on the R TSI connector .[...]

  • Page 28

    © National Instruments Corporatio n 4-1 NI 6232/6233 User Manual 4 Analog Input Figure 4-1 shows the analog in put circuitry o f NI 6232/6233 devices. Figure 4-1. NI 6232/6233 Analog Input Cir cuitry Analog Input Circuitr y I/O Connector Y ou can connect analog input signals to the M Series device through the I/O connector . The proper way to conn[...]

  • Page 29

    Chapter 4 Analog Inpu t NI 6232/6233 User Manual 4-2 ni.com Ground-Reference Settings The analog input ground-reference settings circu itry selects between differential and referenced single-ende d modes. Each AI channel can use a different mode. Instrumentation A mplifier (NI-P GIA) The NI programmable gain instrume ntation amplifier (PGIA) is a m[...]

  • Page 30

    Chapter 4 Analog Input © National Instruments Corporatio n 4-3 NI 6232/6233 User Manual 16-bit ADC con verts analog inputs into one of 65,536 (= 2 16 ) codes—that is, one of 65,536 possibl e digital valu es. These v alues are spread fairly ev enly acro ss the input range. So, for an input range of –10 V to 10 V , the voltage of each code of a [...]

  • Page 31

    Chapter 4 Analog Inpu t NI 6232/6233 User Manual 4-4 ni.com The AI gr ound-re fer en ce setting determines how you should con nect your AI signals to the NI 6232/6233 device. Refer to the Connecting Analog Voltage Input Signals section fo r more information. Ground-reference settings are programmed on a per-channel basis. For example, you might con[...]

  • Page 32

    Chapter 4 Analog Input © National Instruments Corporatio n 4-5 NI 6232/6233 User Manual T able 4 -3 shows how signals are routed to the NI-PGIA. For dif ferential measurements, AI 0 and AI 8 are the posi tiv e and negativ e inputs of dif f erential analog input ch annel 0. F or a complet e list of si gnal pairs that form dif ferential input channe[...]

  • Page 33

    Chapter 4 Analog Inpu t NI 6232/6233 User Manual 4-6 ni.com Figure 4-3. Enabling Multimode Scanning in LabVIEW Multichannel Scanning Considerations M Series de vices can scan multiple chan nels at high rate s and digitize the signals accurately . Ho wev er , you should consider sev e ral issues when designing your measurement system to ensure the h[...]

  • Page 34

    Chapter 4 Analog Input © National Instruments Corporatio n 4-7 NI 6232/6233 User Manual Settling times increase when scanning high-im pedance signals due to a phenomenon called charge injection. Multiplexers contain switches, usually made of switched capacitors. Wh en one of the channels, for example channel 0, is selected in a multiplexer , t hos[...]

  • Page 35

    Chapter 4 Analog Inpu t NI 6232/6233 User Manual 4-8 ni.com 1/50 LSB) of the ±10 V range. Some de vices can take many microseconds for the circuitry to settle this mu ch. T o avoid this ef fect, you should arrange you r channel scanning ord er so that transitions from large to small input ranges are infrequent. In general, you do not need this ext[...]

  • Page 36

    Chapter 4 Analog Input © National Instruments Corporatio n 4-9 NI 6232/6233 User Manual A void Scanning Faster Than Necessar y Designing your system to scan at s l ower speeds gi ves the PGIA more time to settle to a more accurate le vel. Here are two e xamples to consider . Example 1 A veraging many AI samples can incr ease the accurac y of the r[...]

  • Page 37

    Chapter 4 Analog Inpu t NI 6232/6233 User Manual 4-10 ni.com each ADC con version. In NI-D A Q mx , software-timed acquisitions are referred to as having on-demand timi ng. Software-timed acquisitions are also referred to as immediate or static acquisitio ns and are typically used for reading a single sample of data. Hardware-Timed Acquisitions W i[...]

  • Page 38

    Chapter 4 Analog Input © National Instruments Corporation 4-11 NI 6232/6233 User Manual be transferred to host memory . The device generates an error in this case. W ith con tinuous operations, if the user program does not read data out of the PC buf fer fast enough to keep up w ith the data transfer, the b uffer could reach an ov erflow condition[...]

  • Page 39

    Chapter 4 Analog Inpu t NI 6232/6233 User Manual 4-12 ni.com Refer to the Analog Input Ground-Reference Setti ngs section for descriptions of DIFF and RSE modes. T ypes of Signal Sources When configuring the input channels and maki ng signal connections, first determine whether the signal sources are floating or ground-referenced. For isolated meas[...]

  • Page 40

    Chapter 4 Analog Input © National Instruments Corporation 4-13 NI 6232/6233 User Manual two reference planes. Isolated front ends require a ground-reference point to the signal that is being measured. Floating Signal Sources A floating signal source is not con nected to the building ground system (earth or chassis ground), but has an isolated grou[...]

  • Page 41

    Chapter 4 Analog Inpu t NI 6232/6233 User Manual 4-14 ni.com Use DIFF input connections fo r any cha nnel that meets any of the following conditions: • The input signal is low le vel (less than 1 V). • The leads connecting the signal to the de vice are greater than 3 m (10 ft). • The input signal requires a separate ground-reference point or [...]

  • Page 42

    Chapter 4 Analog Input © National Instruments Corporation 4-15 NI 6232/6233 User Manual W ith th is type of connection, the PGIA rejects both the common -mode noise in the si gnal and the gro und potential difference between the signal source and the de vice ground, shown as V cm in the figure. Refer to the NI 6232/6233 S pecifications for the usa[...]

  • Page 43

    Chapter 4 Analog Inpu t NI 6232/6233 User Manual 4-16 ni.com Figure 4-5. Differential Connections fo r Floating Signal Sources This figure sho ws AI GND connected to the ground reference point for the floating signal source. If you do not connect AI GND, the source is not likely to remain withi n the common-mo de signal range of th e PGIA due to th[...]

  • Page 44

    Chapter 4 Analog Input © National Instruments Corporation 4-17 NI 6232/6233 User Manual signal connects to the positive input of the PGIA, and the ground connects to the negativ e input of the PGIA. Y ou shou ld only use single-ended input connections if the input si gnal meets the following conditions. • The input signal is high-level (greater [...]

  • Page 45

    Chapter 4 Analog Inpu t NI 6232/6233 User Manual 4-18 ni.com Figure 4-6. Single-Ended Connections for Fl oating Signal Sour ces (RSE Configuration) Refer to the NI 6232/623 3 Specifications for the usable range of V cm . Common-Mode Sign al Rejection Considerations For signal sources that are already re ferenced to some ground point w ith respect t[...]

  • Page 46

    Chapter 4 Analog Input © National Instruments Corporation 4-19 NI 6232/6233 User Manual • Use individually shielded, twisted-pair wires to connect AI signals to the device. W ith this type of wire, the signals attached to the positive and negati ve input channels are twisted together and then cov ered with a shield. Y ou th en connect this shiel[...]

  • Page 47

    Chapter 4 Analog Inpu t NI 6232/6233 User Manual 4-20 ni.com 1/Sample Period = Samp le Rate Figure 4-8. Int erval Sampling ai/Con vertClock control s the Con vert Period, which is determ ined by the following equation: 1/Con vert Period = Conv ert Rate By default, the NI-D A Qmx driv er chooses the fastest Channel Clock rate possible while still al[...]

  • Page 48

    Chapter 4 Analog Input © National Instruments Corporation 4-21 NI 6232/6233 User Manual the PCI-6220 M Series device, a sampling rate of 40 kHz for two channels would result in a Con vert Clock rate of 80 kHz. Maximum settling time for the amplifier is also very important. For example, to ensure accurac y to within ± 1 LSB on an NI 623 x M Series[...]

  • Page 49

    Chapter 4 Analog Inpu t NI 6232/6233 User Manual 4-22 ni.com Figure 4-10. Pretriggered Data Acquisition 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 coun ter value decrements until the sp[...]

  • Page 50

    Chapter 4 Analog Input © National Instruments Corporation 4-23 NI 6232/6233 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 T imebase (divided down) •A s o f t w a r e p u l s e A programma ble internal counter di vides do wn the sample cl o[...]

  • Page 51

    Chapter 4 Analog Inpu t NI 6232/6233 User Manual 4-24 ni.com A counter on y our device internally generates ai/SampleClock unless you select some external source. ai/StartT rigger starts this counter and either software or hardware can stop it when a f inite acquisition completes. When using an internally generated ai/S ampleClock, you also can spe[...]

  • Page 52

    Chapter 4 Analog Input © National Instruments Corporation 4-25 NI 6232/6233 User Manual sources for ai/SampleClock. Y ou can c onfigure the polarity select ion for ai/SampleClockT imebase as ei ther rising or falling edge. AI Convert Clock Signal Use the AI Con vert Clock (ai/Con vertClock) signal to initiate a sing le A/D con version on a single [...]

  • Page 53

    Chapter 4 Analog Inpu t NI 6232/6233 User Manual 4-26 ni.com Using an External Source Use one of the f ollowing external sign als as the source of ai/Con vertClock: • Input PFI <0..5> •R T S I < 0 . . 7 > •P X I _ S T A R Routing AI Convert Clo ck Signal to an Output Te r m i n a l Y ou can ro ute ai/Con vertClock (as an acti ve l[...]

  • Page 54

    Chapter 4 Analog Input © National Instruments Corporation 4-27 NI 6232/6233 User Manual Other Timing Requirements The sample and con version lev el timing of M Series de vices work such that clock signals are gated of f unless the proper timing requir ements are met. For e xample, the de vice ignores both ai/SampleClock and ai/Con vertClock until [...]

  • Page 55

    Chapter 4 Analog Inpu t NI 6232/6233 User Manual 4-28 ni.com ai/Con vertClockT imebase is not av a ilable as an output on the I/O connector . AI Hold Complete Event Signal The AI Hold Complete Event (ai/HoldCompleteEvent) signal generates a pulse after each A/D con version begins. Y o u can route ai/HoldCompleteEvent out to any output PFI <6..9&[...]

  • Page 56

    Chapter 4 Analog Input © National Instruments Corporation 4-29 NI 6232/6233 User Manual Y ou also can specif y whether the measurement acquisitio n begins on the rising edge or falling edge of ai/StartTrigger . Routing AI Start T rigger to an Output T erminal Y ou can rout e ai/StartTrigger out to any output PFI <6..9> or R TSI <0 ..7>[...]

  • Page 57

    Chapter 4 Analog Inpu t NI 6232/6233 User Manual 4-30 ni.com Figure 4-14. Reference T rigger Final Buffer 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 an y of the follo wing signals: • Input PFI <0..5> •R T S I < 0 . . 7 > •P X I _ S T A R The source al[...]

  • Page 58

    Chapter 4 Analog Input © National Instruments Corporation 4-31 NI 6232/6233 User Manual Using a Digital Source T o use ai/SampleClock, specify a sour ce and a polarity . The source can be any of the follo win g signals: • Input PFI <0..5> •R T S I < 0 . . 7 > •P X I _ S T A R The source also can be one of sev eral ot her internal[...]

  • Page 59

    © National Instruments Corporatio n 5-1 NI 6232/6233 User Manual 5 Analog Output NI 6 232/6233 devices hav e two A O channels that are co ntrolled by a single clock and are capable of wav eform generatio n. Figure 5-1 shows the analog output circuitry of NI 6232/6233 devices. Figure 5-1. NI 6232/6233 Analog Output Circu itr y Analog Output Circuit[...]

  • Page 60

    Chapter 5 Analog Output NI 6232/6233 User Manual 5-2 ni.com D ACs. It allows you to do wnload the points of a wa veform 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. Isolation Barrier and Digital Isolators The digital isolators[...]

  • Page 61

    Chapter 5 Analog Output © National Instruments Corporatio n 5-3 NI 6232/6233 User Manual Hardware-Ti med Generations W ith a hard ware-timed generation, a di gital hardware signal controls the rate of the generation. This signal can be generated internally on your device or pro vided externally . Hardware-timed generations ha ve se veral advantage[...]

  • Page 62

    Chapter 5 Analog Output NI 6232/6233 User Manual 5-4 ni.com Regeneration is the repetition of the data that is already in the buf fer . Standard regeneration is when data from the PC b uffer is continually downloaded to the FIFO to be written out. New data can be written to the PC buf fer at any time without disru pting the ou tput. W ith FIF O reg[...]

  • Page 63

    Chapter 5 Analog Output © National Instruments Corporatio n 5-5 NI 6232/6233 User Manual Figure 5-2. An alog Output Connections Analog Output T iming Signals Figure 5-3 summarizes all of the timi ng options provided by the analog output timing eng ine. Load Load V OUT V OUT + – + – AO 1 AO 0 Channel 1 Channel 0 I/O Connector AO G N D Isolation[...]

  • Page 64

    Chapter 5 Analog Output NI 6232/6233 User Manual 5-6 ni.com Figure 5-3. Analog Output T iming Options NI 6232/6233 devices feature the following A O (wa veform generation) timing signals. • AO Start Trigger Signal • AO Pause Trigger Signal • AO Sample Clock Signal • AO Sample Clock Timebase Signal AO Start T rigger Signal Use the A O Start [...]

  • Page 65

    Chapter 5 Analog Output © National Instruments Corporatio n 5-7 NI 6232/6233 User Manual 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 A Qmx Help or the LabVIEW 8.x Help for more i nformation. Y ou al so can specify whether the wav eform generation begins on the rising edge [...]

  • Page 66

    Chapter 5 Analog Output NI 6232/6233 User Manual 5-8 ni.com deasserted and another edge of the sa mple clock is recei ved, as shown in Figure 5-5. Figure 5-5. ao/PauseT rigger with Other Signal Sour ce Using a Digital Source T o use ao/PauseT rigger, specify a source and a polarity . The source can be one of the following signals: • Input PFI <[...]

  • Page 67

    Chapter 5 Analog Output © National Instruments Corporatio n 5-9 NI 6232/6233 User Manual Using an Inte rnal Source One of the follo wing internal signals can dri ve ao/SampleClock. • A O Sample Clock Timebase (di vided down) • Counter n Internal Output A programmable internal counter divides do wn the A O Sample Clock T imebase signal. Using a[...]

  • Page 68

    Chapter 5 Analog Output NI 6232/6233 User Manual 5-10 ni.com Figure 5-6. ao/SampleC lock an d ao/StartT rigger AO Sample Clock T imebase Signal The A O Sample Clock Timebase (ao/SampleClockT imebase) signal is di vided down to pro vide a source for ao/SampleClock. Y ou can ro ute any of the follo wing signals to be the A O Sample Clock T im ebase ([...]

  • Page 69

    Chapter 5 Analog Output © National Instruments Corporation 5-11 NI 6232/6233 User Manual • Finite gener ation • Continuous generation • W aveform generation Y ou can perform th ese generations through program med I/O, interrupt, or DMA data transfer mechanisms. Some of the applications also use start triggers and pause triggers. Note For mor[...]

  • Page 70

    © National Instruments Corporatio n 6-1 NI 6232/6233 User Manual 6 Digital Input and Output NI 6232/6233 devices hav e six static digita l input lines, P0.<0..5>. These lines also can be used as PFI inputs. The voltage input and output levels and the current driv e lev el of the DI and DO lines are listed in the NI 6232/6233 S pecifications [...]

  • Page 71

    Chapter 6 Digital Input and Output NI 6232/6233 User Manual 6-2 ni.com Connecting Digital I/O Signals The DI signals P0.<0..5> are referenced to P0.GND and DO signals P1.<0..3> are referenced to P1.GND. Figures 6 -1 and 6-2 show P0.<0..5> and P1.<0..3> on the NI 6232 and the NI 6233 device, respecti vely . Digital input and [...]

  • Page 72

    Chapter 6 Digital Input and Output © National Instruments Corporatio n 6-3 NI 6232/6233 User Manual Figure 6-2. NI 6233 Digital I/O Co nnections (DO Sink) Caution Exceeding the maximum input voltage or maximum working v oltage ratings, which are listed in the NI 6232/6233 Specifications , can damage the D A Q device and the computer . NI is not li[...]

  • Page 73

    Chapter 6 Digital Input and Output NI 6232/6233 User Manual 6-4 ni.com Getting Started with DIO Applications in Software Y ou can use NI 6232/6233 devices in the follo wing digi tal I/O applications: • Static digital input • Static digital output Note For more information about programming digital I/ O applications and triggers in software, ref[...]

  • Page 74

    © National Instruments Corporatio n 7-1 NI 6232/6233 User Manual 7 Counters NI 6 232/6233 devices hav e two general-purpose 32-bi t counter/timers and one frequency generator , as shown in Figure 7-1. The general-purpose counter/timers can be used for many measurement and pulse generation applications. Caution When making measurem ents, take into [...]

  • Page 75

    Chapter 7 Counters NI 6232/6233 User Manual 7-2 ni.com Figure 7-1. M Series Counters The counters have se ven input signals, although in most applications onl y a fe w inputs are used. For information on connecting co unter signals, refer to the Default Counter Terminals section. Counter 0 Counter 0 Source (Counter 0 Timebase) Counter 0 Aux Counter[...]

  • Page 76

    Chapter 7 Counters © National Instruments Corporatio n 7-3 NI 6232/6233 User Manual Counter Input Applications Counting Edges In edge counting appl ications, the co unter counts edges on its Source after the counter is armed. Y ou can conf igure the counter to count risi ng or falling edges on its Source input. Y ou also can control the direction [...]

  • Page 77

    Chapter 7 Counters NI 6232/6233 User Manual 7-4 ni.com Figure 7-3. Single Point (On-Demand) Edge Counting with Pause T rigger Buffered (Sample Clock) Edge Counting W ith buffered 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. The v alue of the counter is sa[...]

  • Page 78

    Chapter 7 Counters © National Instruments Corporatio n 7-5 NI 6232/6233 User Manual Non-Cumulative Buffe red Edge Counting Non-cumulativ e edge counting is similar to buf f ered (sample clock) edge counting. Ho wev er, the counter resets after each acti ve edge of the Sample Clock. Y ou can route the Sample Clock to the Gate input of the counter .[...]

  • Page 79

    Chapter 7 Counters NI 6232/6233 User Manual 7-6 ni.com 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 external periodic clock signal (wit h a k[...]

  • Page 80

    Chapter 7 Counters © National Instruments Corporatio n 7-7 NI 6232/6233 User Manual Buffered Pulse-Width Measurement Buffered pulse-width measurement is similar to single pulse-width measurement, b ut buf fered pulse-wi dth measurement ta kes measurements ov er multiple pulses. The counter counts the number of edges o n the Source input whi le the[...]

  • Page 81

    Chapter 7 Counters NI 6232/6233 User Manual 7-8 ni.com of rising (or falling) edges occurring on the Source input between the two acti ve edges of the Gate signal. Y ou can calculate the period of the Gate input by multiplying the perio d of the Source signal by the number of edges returned by the counter . Single Period Measurement W ith sing le p[...]

  • Page 82

    Chapter 7 Counters © National Instruments Corporatio n 7-9 NI 6232/6233 User Manual Figure 7-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 . I[...]

  • Page 83

    Chapter 7 Counters NI 6232/6233 User Manual 7-10 ni.com Buffered Semi-Period Measurement In b uffered semi-period measurement, on each edge of the Gate signal, the counter stores the count in a hardware sa ve register . A DMA con troller transfers the stored v a lues to host memory . The counter begins counting when it is armed. The arm usually occ[...]

  • Page 84

    Chapter 7 Counters © National Instruments Corporation 7-11 NI 6232/6233 User Manual Y ou can route the signal to measure (F1) to the Gate of a counter . Y ou can route a kno wn timebase (Ft) to th e Source of the counter . The known timebase can be 80MHzT imebase. For si gnals that might be slower than 0.02 Hz, use a slower kno wn timebase. Y ou c[...]

  • Page 85

    Chapter 7 Counters NI 6232/6233 User Manual 7-12 ni.com Figure 7-12. Method 1b Method 2—Measure High Frequency with T wo Counters In this method, you measure one pul se of a known width using your signal and deri ve the frequency of your signal fr om the result. This met hod is good for high frequency signals. In this method, you route a pulse of[...]

  • Page 86

    Chapter 7 Counters © National Instruments Corporation 7-13 NI 6232/6233 User Manual Figure 7-13. Method 2 Method 3—Measure Large Range of Frequencies Using T wo Counters By using two counters, yo u can accurately measure a signal that might be high or low frequency . This techniq ue is called recipr ocal fr equency measur emen t . In this method[...]

  • Page 87

    Chapter 7 Counters NI 6232/6233 User Manual 7-14 ni.com Figure 7-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 frequenc y (F2) to the Counter 1 Source input. F2 can be 80MHzTimebase. For signals that might be slo wer than 0.02 Hz, use a slo wer kno wn timebase. Configu[...]

  • Page 88

    Chapter 7 Counters © National Instruments Corporation 7-15 NI 6232/6233 User Manual Consider a frequency measurement on a 50 kHz signal using an 80 MHz T imebase. This frequency corresponds to 1600 cycles of the 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[...]

  • Page 89

    Chapter 7 Counters NI 6232/6233 User Manual 7-16 ni.com For information on connecting co unter signals, refer to the Default Counter Terminals section. Position Measurement Y ou can use the coun ters to perform position measurements with quadrature encoders or two-pulse encoders. Y ou can measure angular position with X1, X2 , and X4 angular encode[...]

  • Page 90

    Chapter 7 Counters © National Instruments Corporation 7-17 NI 6232/6233 User Manual Figure 7-15. X1 Encoding X2 Encoding The same behavior holds for X2 encodi ng ex cept the counter increments or decrements on each edge of channel A, depending on which channel leads the other . Each cycle results in two in crements or decrements, as sho wn in Figu[...]

  • Page 91

    Chapter 7 Counters NI 6232/6233 User Manual 7-18 ni.com Channel Z behavior—when it goes high and how long it stays high—differs with quadrature encoder designs. Y ou mu st refer to the documentation for your quadrature encoder to obtain timing of channe l Z with respect to channels A and B. Y ou must then ensure that channel Z is high during at[...]

  • Page 92

    Chapter 7 Counters © National Instruments Corporation 7-19 NI 6232/6233 User Manual For information on connecting co unter signals, refer to the Default Counter Terminals section. T wo-Signal Edge-Separation Measurement T wo-signal edge-separatio n measurement is similar to pulse-width measurement, except that there ar e two measurement signals—[...]

  • Page 93

    Chapter 7 Counters NI 6232/6233 User Manual 7-20 ni.com Figure 7-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 , but b uffered measurement m easures multiple interv als. The counter counts the number of rising (or falling)[...]

  • Page 94

    Chapter 7 Counters © National Instruments Corporation 7-21 NI 6232/6233 User Manual 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 o[...]

  • Page 95

    Chapter 7 Counters NI 6232/6233 User Manual 7-22 ni.com Figure 7-23. Single Pulse Generation with Start T rigger Retriggerable Single Pulse Generation The counter can output a single pulse in response to each pulse on a hardware Start T rigger signal. The pu lses appear on the Counter n Internal Output signal of the co unter . Y ou can ro ute the S[...]

  • Page 96

    Chapter 7 Counters © National Instruments Corporation 7-23 NI 6232/6233 User Manual Pulse T rain Generation Continuous Pulse T rain Generation This function generates a train of pul ses with program mable frequency and duty cycle. The pulses appear on the Counter n Internal Output signal of the counter . Y ou can specify a delay from when the coun[...]

  • Page 97

    Chapter 7 Counters NI 6232/6233 User Manual 7-24 ni.com Frequency Generation Y ou can generate a frequency by 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 different frequencies. The frequency genera tor is independe[...]

  • Page 98

    Chapter 7 Counters © National Instruments Corporation 7-25 NI 6232/6233 User Manual Frequenc y Output can be routed out to an y output PFI <6..9> or R TSI <0..7> terminal. All PFI terminal s are set to high-impedance at startup. In software, program th e frequency ge nerator as you would program one of the counters for pulse train gene[...]

  • Page 99

    Chapter 7 Counters NI 6232/6233 User Manual 7-26 ni.com Nyquist fr equency of the system. Fi gure 7-28 shows an example of pulse generation for ETS; the delay from the tr igger to the pulse increases after each subsequent Gate acti ve edge. Figure 7-28. Pulse Generation for ETS For information on connecting co unter signals, refer to the Default Co[...]

  • Page 100

    Chapter 7 Counters © National Instruments Corporation 7-27 NI 6232/6233 User Manual 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 abl e 7-3 lists how this terminal is used in various applications. Routing a Signal to C[...]

  • Page 101

    Chapter 7 Counters NI 6232/6233 User Manual 7-28 ni.com Routing Counter n Source to an Output T erminal Y ou can ro ute Counter n Source out to any output PFI <6..9> or R TSI <0..7> terminal. All PFIs are set to high-impedance at startup. Counter n Gate Signal The Counter n Gate signal can perform many dif ferent operations depending on[...]

  • Page 102

    Chapter 7 Counters © National Instruments Corporation 7-29 NI 6232/6233 User Manual Routing a Signal to Counter n Aux Each counter has independent input selectors for the Counter n Aux sig nal. Any of the following signals can be routed to t he Counter n Aux input. •R T S I < 0 . . 7 > • Input PFI <0..5> • ai/ReferenceT rigger ?[...]

  • Page 103

    Chapter 7 Counters NI 6232/6233 User Manual 7-30 ni.com Counter n HW Arm Signal The Counter n HW Arm signal enab les a counter to begin an input or out put function. T o begin any counter input or output function, you must first enable, or arm, the counter . In some applications , such as b uff ered semi-period measurement, the counter begins count[...]

  • Page 104

    Chapter 7 Counters © National Instruments Corporation 7-31 NI 6232/6233 User Manual Routing Counter n Internal Output to an Output Te r m i n a l Y ou can ro ute Counter n Internal Outp ut to any ou tput PFI <6..9> or R TSI <0 ..7> terminal. All output PFIs are set to hi gh-impedance at startup. Frequency Output Signal The Frequency Ou[...]

  • Page 105

    Chapter 7 Counters NI 6232/6233 User Manual 7-32 ni.com Y ou can use these defaults or select other sources and destin ations for the counter/timer si gnals in NI-DA Qmx. Ref er to Connectin g Counter Signals in the NI-D AQmx Help or the LabVIEW 8.x Help fo r more inform ation on how to connect your signals for common counter measurements and gener[...]

  • Page 106

    Chapter 7 Counters © National Instruments Corporation 7-33 NI 6232/6233 User Manual Pause T r igger Y ou can use pause tri ggers in edge counting and continuou s pulse generation applications. For edge counting acquisitions, the counter stop s counting edges whil e the external trigger signal is low and resumes when the signal goes high or vice ve[...]

  • Page 107

    Chapter 7 Counters NI 6232/6233 User Manual 7-34 ni.com The filter setting for each input can be conf igured independently . On power up, the filters are disabled. Figure 7- 29 shows an example of a lo w-to-high transition on an input that has its filter set to 125 ns (N = 5). Figure 7-29. Filter Example Enabling filters introduces jitter on the in[...]

  • Page 108

    Chapter 7 Counters © National Instruments Corporation 7-35 NI 6232/6233 User Manual prescaling on each counter (prescaling can be disabled). Each prescaler consists of a small, simple counter th at counts to eight (or two) and rolls ov er . This counter can run faster than the lar ger counters, which simply count the rollovers of this smaller coun[...]

  • Page 109

    Chapter 7 Counters NI 6232/6233 User Manual 7-36 ni.com Figure 7-31. Duplicate Count Pr evention Example On the first rising edge of the G ate, 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 pre vious rising edge of Gate. The counter synchronizes or samples th[...]

  • Page 110

    Chapter 7 Counters © National Instruments Corporation 7-37 NI 6232/6233 User Manual Figure 7-32. Duplicate Count Example Example Application That Pr events Duplicate Count W ith duplicate count prevention enabled, the counter synchronizes both th e Source and Gate signals to the 80 MHz T imeb ase. By synchronizing to the timebase, the counter dete[...]

  • Page 111

    Chapter 7 Counters NI 6232/6233 User Manual 7-38 ni.com Normally , the counter value and Counter n Internal Output signals change synchronously to the Source signal. W ith duplicate count prev ention, the counter value and Counter n Internal Output signals change synchronously to the 80 MHz T i mebase. Note that duplicat e count prev ention should [...]

  • Page 112

    Chapter 7 Counters © National Instruments Corporation 7-39 NI 6232/6233 User Manual In D A Qmx, the device uses 80 MHz sour ce mode if the user performs the following: • Performs a position measurement • Selects duplicate count prev ention Otherwise, the mode depends on the signal that drives Counter n Source. T able 7-6 describes the conditi [...]

  • Page 113

    Chapter 7 Counters NI 6232/6233 User Manual 7-40 ni.com Other Internal Source Mode In other internal source mode, the de vice synchronizes signals on the falling edge of the source, and counts on the following rising edge of the source, as shown in Figure 7-35. Figure 7-35. Other Internal Sour ce Mode External Source Mode In external source mode, t[...]

  • Page 114

    © National Instruments Corporatio n 8-1 NI 6232/6233 User Manual 8 PFI NI 6232/6233 devices ha ve 10 Programmable Function Interface (PFI) signals—six input si gnals and four outpu t signals. Each PFI <0..5>/P0.<0..5> can be configured as a timing input signal for AI or counter/timer functions or a st atic digital input. Each PFI inp[...]

  • Page 115

    Chapter 8 PFI NI 6232/6233 User Manual 8-2 ni.com Figure 8-2. NI 6232/6233 PFI Output Circuitry When a terminal is used as a timing input or output signal, it is called PFI x (where x is an integer from 0 to 9). When a terminal is used as a static digital input or outp ut, it is called P 0. x or P1. x . The voltage input and output le vels and the [...]

  • Page 116

    Chapter 8 PFI © National Instruments Corporatio n 8-3 NI 6232/6233 User Manual Exporting T iming Output Signals Using PFI T erminals Y ou can ro ute any of the follo wing timing signals to any PFI <6..9> terminal. • AI Hold Co mplete Ev ent • Counter n Source • Counter n Gate • Counter n Internal Output •F r e q u e n c y O u t p u[...]

  • Page 117

    Chapter 8 PFI NI 6232/6233 User Manual 8-4 ni.com Figure 8-3. PFI Inpu t Signa ls Connections PFI Filters Y ou can enable a programmable debouncing filter on each PFI, R TSI, or PXI_ST AR signal. When th e filters are enabled, your de vice samples the input on each rising edge of a filter clock. M Series de vices use an o nboard oscillator to gener[...]

  • Page 118

    Chapter 8 PFI © National Instruments Corporatio n 8-5 NI 6232/6233 User Manual The filter setting for each input can be conf igured independently . On power up, the filters are dis abled. Figure 8- 4 sho ws an example of a lo w-to-high transition on an input that has its filter set to 125 ns (N = 5). Figure 8-4. Filter Example Enabling filters int[...]

  • Page 119

    Chapter 8 PFI NI 6232/6233 User Manual 8-6 ni.com Consult the device specifi cations for details. Howe ver, you should avoid these fault conditions b y follo wing these guidelines. •D o not connect any digital output line to any external signal source, ground signal, or power supply . • Understand the current requirement s of the load connected[...]

  • Page 120

    Chapter 8 PFI © National Instruments Corporatio n 8-7 NI 6232/6233 User Manual Figure 8-5. NI 623 2 Digital I/O Connections (DO Source) P1.<0..3> P1.VCC P1.0 P1.1 P1.GND P0.0 P0.GND P1.GND P0.GND Digital Isolators[...]

  • Page 121

    Chapter 8 PFI NI 6232/6233 User Manual 8-8 ni.com Figure 8-6. NI 6233 Digital I/O Co nnections (DO Sink) Caution Exceeding the maximum input voltage or maximum working v oltage ratings, which are listed in the NI 6232/6233 Specifications , can damage the D A Q device and the computer . NI is not liable for an y damage resulting from such signal con[...]

  • Page 122

    © National Instruments Corporatio n 9-1 NI 6232/6233 User Manual 9 Isolation and Digital Isolators NI 6232/6233 devices are isolated data acquisition devices. As sho wn in Figure 9-1, the analog input, analog output, counter s, and PFI/static DIO circuitry are referenced to an isolated gr ound . The bus interface circuitry , R TSI, digital routing[...]

  • Page 123

    Chapter 9 Isolation and Digital Isolators NI 6232/6233 User Manual 9-2 ni.com The non-isolated ground is connected to the chassis groun d of the PC or chassis where the device is installed. The isolated ground is not connected to the chassis ground of the PC or chassis. The isolated ground can be at a higher or lower v oltage relative to the non-is[...]

  • Page 124

    © National Instruments Corporation 10-1 NI 6232/6233 User Manual 10 Digital Routing and Clock Generation The digital routing circuitr y has the following three main functions. • Manages the flow of data be tween the b us interface and the acquisition/generat ion sub-systems (analog inpu t, analog output, digital I/O, and the counters). The digit[...]

  • Page 125

    Chapter 10 Digital Ro uting and Clock Generation NI 6232/623 3 User Manu al 10- 2 ni.com 80 MHz Timebase The 80 MHz T imebase can be used as the Source input to the 32-bit general-purpose counter/timers. The 80 MHz T ime base can be generated from either of the following. • Onboard oscillat or • External signal (by using the external reference [...]

  • Page 126

    Chapter 10 Digital Routing and Clock Generati on © National Instruments Corporation 10-3 NI 6232/6233 User Manual 10 MHz Reference Clock The 10 MHz reference clock can be used to synchronize other devices to your M Series de vice. The 10 MHz refere nce clock can be routed to the R TSI <0..7> terminals. Other devices connected to the R TSI bu[...]

  • Page 127

    Chapter 10 Digital Ro uting and Clock Generation NI 6232/623 3 User Manu al 10- 4 ni.com • Share trigger signals between devices Many National Instruments D A Q, motion, vision, and CAN devices support R TSI. In a PCI system, the R TSI bus consists of the R TSI b us interface and a ribbon cable. The bus can route timing and trigg er signals betwe[...]

  • Page 128

    Chapter 10 Digital Routing and Clock Generati on © National Instruments Corporation 10-5 NI 6232/6233 User Manual Using R TSI as Outputs R TSI <0..7> are bidirectional ter minals. As an output, you can d riv e any of the following signals to any R TSI term inal. • ai/StartTrigger • ai/ReferenceT rigger • ai/Con vertClock* • ai/Sample[...]

  • Page 129

    Chapter 10 Digital Ro uting and Clock Generation NI 6232/623 3 User Manu al 10- 6 ni.com Using R TSI T erminals as T iming Input Signals Y ou can use R TSI terminals to route external timing signals to many different M S eries functions. Each R TSI terminal can be routed to any of the following signals. • AI Con vert Clock • AI Sample Clock •[...]

  • Page 130

    Chapter 10 Digital Routing and Clock Generati on © National Instruments Corporation 10-7 NI 6232/6233 User Manual The filter setting for each input can be conf igured independently . On power up, the filters are disabl ed. Figure 10 -3 shows an e xample of a low-to-high transition on an input that has its filter set to 125 ns (N = 5). Figure 10-3.[...]

  • Page 131

    Chapter 10 Digital Ro uting and Clock Generation NI 6232/623 3 User Manu al 10- 8 ni.com PXI Clock and T rigger Signals Note PXI clock and trigger signals are only av ailable on PX I devices. Other de vices use RT S I . PXI_CLK10 PXI_CLK10 is a common low-sk e w 10 MHz clock reference clock for synchronization of multiple modu les in a PXI measurem[...]

  • Page 132

    Chapter 10 Digital Routing and Clock Generati on © National Instruments Corporation 10-9 NI 6232/6233 User Manual An M Series device is not a Star T r igger controller . An M Series device may be used in the first peripheral slot of a PXI system, but the system will not be able to use th e Star Trigger feature. PXI_ST AR Filters Y ou can enable a [...]

  • Page 133

    Chapter 10 Digital Ro uting and Clock Generation NI 6232/6233 User Manual 10-10 ni.com Figure 10-4. Filter Example Enabling filters introduces jitter on the input signal. For the 125 ns and 6.425 µs filter settings, the jitter is up to 25 ns. On the 2.55 ms settin g, the jitter is up to 10.025 µs. When a PFI input i s routed directly to R TSI, or[...]

  • Page 134

    © National Instruments Corporation 11-1 NI 6232/6233 User Manual 11 Bus Interface The bus interf ace circuitry of NI 6232/6 233 devices ef ficiently mov es data between host memory and the meas urement and acquisition circuits. NI 6232/6233 devices are a vailable for the following platforms. •P C I •P X I NI 6232/6233 devices are jumperless fo[...]

  • Page 135

    Chapter 11 Bus Interface NI 6232/623 3 User Manu al 11- 2 ni.com Each DMA controller supports packing and unpacking of data through the FIFOs to connect different size de vi ces and optimize PCI bus utilization and automatically handles unalig ned memory buf fers. PXI Considerations Note PXI clock and trigger signals are only av ailable on PX I dev[...]

  • Page 136

    Chapter 11 Bus Interface © National Instruments Corporation 11-3 NI 6232/6233 User Manual Using PXI with CompactPCI Using PXI-compatib le products with st andard CompactPCI products is an important feature provided by PXI Har dware Specif ication Revision 2.1 . If you use a PXI-comp atible plug-in mod ule in a standard CompactPCI chassis, you cann[...]

  • Page 137

    Chapter 11 Bus Interface NI 6232/623 3 User Manu al 11- 4 ni.com Interrupt Request (IRQ) IRQ transfers rely on the CPU to service data transfer requests. The device notifies the CPU when it is ready to tr ansfer data. The data transfer speed is tightly coupled to the rat e at which the CPU can service the inter rupt requests. If you are using inter[...]

  • Page 138

    © National Instruments Corporation 12-1 NI 6232/6233 User Manual 12 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 you want the trigger to cause. NI 6232/6233 devices support internal so[...]

  • Page 139

    Chapter 12 T riggering NI 6232/623 3 User Manu al 12- 2 ni.com • Analog output generat ion • Counter be havior[...]

  • Page 140

    © National Instruments Corporation A-1 NI 6232/6233 User Manual A Device-Specific Information This appendix contains device pinout s, specif ications, cable and accessory choices, and other information for the NI 6232 and NI 6233 MS e r i e s isolated devices. T o o btain documentation for devices not listed h ere, refer to ni.com/manuals . NI 623[...]

  • Page 141

    Appendix A Device-Speci fic Information NI 6232/6233 User Manual A- 2 ni.com Figure A-1. NI 6232 Pin out Table A-1. NI 6232 Device Default NI-D AQmx Counter/T imer Pins Counter/Timer Signal Default Pin N umber (Name) Por t CTR 0 SRC 13 (PFI 0) P0.0 CTR 0 GA TE 32 (PFI 1) P0.1 CTR 0 A UX 33 (PFI 2) P0.2 CTR 0 OUT 17 (PFI 6) P1.0 CTR 0 A 13 (PFI 0) P[...]

  • Page 142

    Appendix A Device-Specific Information © National Instruments Corporation A-3 NI 6232/6233 User Manual Note For more information abou t default NI-D A Qmx counter inputs, refer to Connecting Counter Signals in the NI-DA Qmx Help or the LabVIEW 8.x Help . NI 6232 Specifications Refer to the NI 6232/6233 Specifications , av ailable on the NI-D A Q D[...]

  • Page 143

    Appendix A Device-Speci fic Information NI 6232/6233 User Manual A- 4 ni.com vision, and motion devices. Since PXI devices use PXI backplane signals for timing an d synchronization, no cables are required. Cables In most applications, you can use the following cables: • SH37F-37M- x —37-pi n female-to-male shield ed I/O cable, UL Listed derated[...]

  • Page 144

    Appendix A Device-Specific Information © National Instruments Corporation A-5 NI 6232/6233 User Manual Figure A-2. NI 6233 Pinout Table A-2. NI 6233 Device Default NI-D AQmx Counter/T imer Pins Counter/Timer Signal Default Pin N umber (Name) Por t CTR 0 SRC 13 (PFI 0) P0.0 CTR 0 GA TE 32 (PFI 1) P0.1 CTR 0 A UX 33 (PFI 2) P0.2 CTR 0 OUT 17 (PFI 6)[...]

  • Page 145

    Appendix A Device-Speci fic Information NI 6232/6233 User Manual A- 6 ni.com Note For more information abou t default NI-D A Qmx counter inputs, refer to Connecting Counter Signals in the NI-DA Qmx Help or the LabVIEW 8.x Help . NI 6233 Specifications Refer to the NI 6233 Specifications , av ailable on the NI-D A Q De vice Document Br o wser or ni.[...]

  • Page 146

    Appendix A Device-Specific Information © National Instruments Corporation A-7 NI 6232/6233 User Manual vision, and motion devices. Since PXI devices use PXI backplane signals for timing an d synchronization, no cables are required. Cables In most applications, you can use the following cables: • SH37F-37M- x —37-pi n female-to-male shield ed I[...]

  • Page 147

    © National Instruments Corporation B-1 NI 6232/6233 User Manual B T roubleshooting This section contains some common questions about M Series de vices. If your questions are not answered here, refer to the National Instrum ents KnowledgeBase at ni.com/kb . It contains thousands of documents that answer frequently asked questions about NI products.[...]

  • Page 148

    Appendix B T roubleshooting NI 6232/6233 User Manual B- 2 ni.com reference the signal to the same ground le vel as the de vice reference. There are various methods of achie ving this reference while maintai ning a high common-mode rejectio n ratio (CMRR). These methods are outlined in th e Connecting Analo g Voltage Input Signals section of Chapter[...]

  • Page 149

    Appendix B T roubleshooting © National Instruments Corporation B-3 NI 6232/6233 User Manual Analog Output I am seeing glitches on the outp ut signal. Ho w can I minimize it? When you use a D AC to gene rate a wa veform, you may o bserve glitches on the output signal. These glitches are normal; when a DA C switches from one voltage to another , it [...]

  • Page 150

    © National Instruments Corporation C-1 NI 6232/6233 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 151

    Appendix C T echnical Support and Professional Services NI 6232/6233 User Manual C- 2 ni.com • Calibration Certificate —If your product supports calibration, you can obtain the 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 corpora[...]

  • Page 152

    © National Instruments Corporation G-1 NI 6232/6233 User Manual Glossar y Numbers/Symbols % Percent. + Positiv e of, or plus. – Negati ve 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-to-Digital[...]

  • Page 153

    Glossary NI 6232/6233 User Manual G-2 ni.com AI 1. Analog input. 2. Analog input channel signal. AI GND Analog input groun d signal. AI SENSE Analog input sense signal. analog A signal whose amplitu de can hav e a conti nuous range of v alues. analog input signal An input signal that varies smoothly ov er a continuous range of values, rather than i[...]

  • Page 154

    Glossary © National Instruments Corporation G-3 NI 6232/6233 User Manual ASIC Application-specific integrated circuit—A proprietary semiconductor component designed and manufactur ed to perform a set of specific functions for a specif ic customer . asynchronous 1. Hardware—A property of an ev ent that occurs at an arbitrary time, without synch[...]

  • Page 155

    Glossary NI 6232/6233 User Manual G-4 ni.com cascading Process of extending the counting ra nge of a counter chip by 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. F[...]

  • Page 156

    Glossary © National Instruments Corporation G-5 NI 6232/62 33 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 AC Digital-to-Ana log Con verter—An elect ronic device, often an inte grated circuit, that con verts a digital number into a[...]

  • Page 157

    Glossary NI 6232/6233 User Manual G-6 ni.com 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 receives a soft ware signal to ac quire a single data point. [...]

  • Page 158

    Glossary © National Instruments Corporation G-7 NI 6232/6233 User Manual digital signal A representation of information by a set of discrete v alues according to a prescribed law . These values are represented by numbers. digital trigger A TTL lev el signal having two discrete le vels—a high and a low le vel. DIO Digital input/ou tput. DMA Direc[...]

  • Page 159

    Glossary NI 6232/6233 User Manual G-8 ni.com F FIFO First-In-F irst-Out memory buffer—A data b uffering 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 buf fer digital data from an A/D con verter , or to buf f er the data before or after bus transm[...]

  • Page 160

    Glossary © National Instruments Corporation G-9 NI 6232/62 33 User Manual function 1. A built-in e xecution element, co mparable to an operator , function, or statement in a con v entional language. 2. A set of software i nstructions executed b y a single line of code that may hav e input and/or output parameters and returns a value when ex ecuted[...]

  • Page 161

    Glossary NI 6232/6233 User Manual G-10 ni.com in. Inch or inches. instrument driv er A set of high-le vel software functions that controls a specif ic GPIB, VXI, or RS232 programmable instrument or a specific plug-in D A Q device. Instrument d riv ers are av ailab le in several forms, ranging from a function callable language to a virtual instrum e[...]

  • Page 162

    Glossary © National Instruments Corporation G-11 NI 6232/6233 User Manual K kHz K ilohertz—A unit o f frequency; 1 kHz = 10 3 = 1,000 Hz. kS 1,000 samples. L LabVIEW A graphical programming language. LED Light-Emitting Di ode—A semicondu ctor light source. lowpass filter A filter that passes signals below a cutof f frequency while blocking sig[...]

  • Page 163

    Glossary NI 6232/6233 User Manual G-12 ni.com MITE MXI Interface T o Everything—A custom ASIC designed b y National Instruments that implements the PCI bu s interf ace. The MITE supports bus mastering for high-speed dat a transfers ov er the PCI bus. module A board assembly and its associated mechanical pa rts, front panel, op tional shields, and[...]

  • Page 164

    Glossary © National Instruments Corporation G-13 NI 6232/6233 User Manual NI-PGIA See instrumentation am plifier . non-referenced signal sources Signal sources with voltage signals t hat are not connected to an absolute reference or system ground. Also called floatin g signal sources. Some common example of non-referenced signal sources are batter[...]

  • Page 165

    Glossary NI 6232/6233 User Manual G-14 ni.com power source An in strument that provides one or more sources of A C or DC power . Also known as po wer supply . ppm Parts per million. pretriggering The technique used on a D A Q device to keep a continuous b uf fer filled with data, so that when the trigger conditi ons are met, the sample includes the[...]

  • Page 166

    Glossary © National Instruments Corporation G-15 NI 6232/6233 User Manual R range The maximum and minimum parameters between whi ch a sensor , instrument, or device operates with a specified set of ch aracteristics. This may be a voltage range or a frequency range. real time 1. Displays as it comes in; no delays. 2. A prop erty of an ev ent or sys[...]

  • Page 167

    Glossary NI 6232/6233 User Manual G-16 ni.com scan rate Reciprocal of the scan interval. SCC Signal Conditioning Carriers—A comp act, modular form factor for signal conditioning modul es. SCXI Si gnal Condition ing eXtensions for Instru mentation—Th e National Instruments pr oduct line for condit ioning low-le vel signals with in an external ch[...]

  • Page 168

    Glossary © National Instruments Corporatio n G-17 NI 6232/6233 User Manual software applications The programs that run on your computer and perform a specific user- oriented function, such as acco unting, program de velopment, measurement, or data acquisition. In contrast, o perating system fun ctions basically perform the generic "housek eep[...]

  • Page 169

    Glossary NI 6232/6233 User Manual G-18 ni.com t out Output delay time. transducer A de vice that responds to a physical stimulu s (heat, light, sound, pressure, motion, flow , and so on), and produces a corresponding electrical signal. See also sensor . trigger 1. Any e vent that causes or starts some form of data capture. 2. An external stimulus t[...]

  • Page 170

    Glossary © National Instruments Corporation G-19 NI 6232/6233 User Manual V m Measured voltage. V OH V olts, output high. 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 the instantaneous ampl itude of a signal as a function of time. 2. Multipl e voltage readings taken[...]

  • Page 171

    © National Instruments Corporatio n I-1 NI 6232/6233 User Manual Index Symbols .NET languages documentatio n, xviii Numerics 10 MHz reference clock, 10-3 100 kHz Timebase, 10-2 20 MHz T im ebase, 10-2 80 MHz source mode, 7-39 80 MHz T im ebase, 10-2 A A/D con verter, 4-2 accessories, 2-4, A-3, A-6 choosing for your device, 1-2 acquisition circular[...]

  • Page 172

    Index NI 6232/6233 User Manual I-2 ni.com getting started with applications in software, 5-10 glitches on the output si gnal, 5-2 signals, 5-5 timing signals, 5-5 trigger signals, 5-4 triggering, 5-4 troubleshooting, B-3 ANSI C documentation, xviii A O FIFO, 5-1 A O Pause T rigger signal, 5-7 A O Sample Clock signal , 5-8 A O Sample Clock Timebase [...]

  • Page 173

    Index © National Instruments Corporatio n I-3 NI 6232/6233 User Manual for ground-ref erenced signal sources, 4-14 for non-referenced signal sources, 4-15 single-ended considerations, 4-16 single-ended for floating signal sources, 4-17 single-ended for grounded signal sources, 4-17 single-ended, NRSE configuration, 4-16 single-ended, RSE configura[...]

  • Page 174

    Index NI 6232/6233 User Manual I-4 ni.com data transfer methods, 11-3 changing, 11-4 DMA, 11-3 IRQ, 11-4 programmed I/O, 11-4 Declaration of Conformity (NI resources), C-1 default counter terminals, 7-31 device cabling, 2-4 information, A-1 multiple synchronization, 10-3 specifications, 1-2 diagnostic tools (NI resources), C-1 differential analog i[...]

  • Page 175

    Index © National Instruments Corporatio n I-5 NI 6232/6233 User Manual F features, counter, 7-33 field wiring considerations, 4-18 fil t e r s counter, 7-33 PFI, 8-4 PXI_ST A R, 10-9 RT S I , 1 0 - 6 floating signal sources, 4-13 FREQ OUT signal, 7-31 frequency division, 7-25 generation, 7-24 generator, 7-24 measurement, 7-10 Frequency Output sign[...]

  • Page 176

    Index NI 6232/6233 User Manual I-6 ni.com isolation barrier, 4-2, 5-2 isolators, 9-1 K Kno wledgeBase, C-1 L LabVIEW documentation, xvii LabW indows/CVI documentation, xviii lo w impedance sources, 4-6 M M Series information, A-1 specifications, xix Measurement Studio documentation, xviii measurements buf fered period , 7-8 buf fered pu lse-width, [...]

  • Page 177

    Index © National Instruments Corporatio n I-7 NI 6232/6233 User Manual non-buf fered hardware-timed acquisitions, 4-11 generations, 5-3 non-cumulative buf fered edge counting, 7-5 non-referenced signal so urces, dif ferential connections, 4-15 NRSE conf iguration, 4-16 O order of channels for scanning, 4-7 other internal source mode, 7-40 other so[...]

  • Page 178

    Index NI 6232/6233 User Manual I-8 ni.com retriggerable single pu lse generation, 7-22 routing clock, 10-1 digital, 10-1 RSE configuration, 4-16 RT S I , 1 0 - 3 connector pinout, 3-3, 10-4 fil t e r s, 1 0 - 6 using as outputs, 10-5 using terminals as timing i nput signals, 10-6 S sample clock edge counting, 7-4 scanning speed, 4-9 semi-period mea[...]

  • Page 179

    Index © National Instruments Corporatio n I-9 NI 6232/6233 User Manual connections, NRSE co nfiguration, 4-16 connections, RSE configuration, 4-16 software configuring AI ground-reference settings, 4-5 NI resources, C-1 programming devices, 2-5 timed acquisitions, 4-9 software-timed acquisitions, 4-9 generations, 5-2 specifications, A-3, A-6 devic[...]

  • Page 180

    Index NI 6232/6233 User Manual I- 10 ni.com V vol t a ge connecting analog in put signals, 4-11 connecting analog voltage, 5-4 W wa veform generation signals, 5-5 W eb resources, C-1 wiring, field, 4-18 X X1 encoding, 7-16 X2 encoding, 7-17 X4 encoding, 7-17[...]