National Instruments NI 6239 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

Ir a la página of

Buen manual de instrucciones

Las leyes obligan al vendedor a entregarle al comprador, junto con el producto, el manual de instrucciones National Instruments NI 6239. La falta del manual o facilitar información incorrecta al consumidor constituyen una base de reclamación por no estar de acuerdo el producto con el contrato. Según la ley, está permitido adjuntar un manual de otra forma que no sea en papel, lo cual últimamente es bastante común y los fabricantes nos facilitan un manual gráfico, su versión electrónica National Instruments NI 6239 o vídeos de instrucciones para usuarios. La condición es que tenga una forma legible y entendible.

¿Qué es un manual de instrucciones?

El nombre proviene de la palabra latina “instructio”, es decir, ordenar. Por lo tanto, en un manual National Instruments NI 6239 se puede encontrar la descripción de las etapas de actuación. El propósito de un manual es enseñar, facilitar el encendido o el uso de un dispositivo o la realización de acciones concretas. Un manual de instrucciones también es una fuente de información acerca de un objeto o un servicio, es una pista.

Desafortunadamente pocos usuarios destinan su tiempo a leer manuales National Instruments NI 6239, sin embargo, un buen manual nos permite, no solo conocer una cantidad de funcionalidades adicionales del dispositivo comprado, sino también evitar la mayoría de fallos.

Entonces, ¿qué debe contener el manual de instrucciones perfecto?

Sobre todo, un manual de instrucciones National Instruments NI 6239 debe contener:
- información acerca de las especificaciones técnicas del dispositivo National Instruments NI 6239
- nombre de fabricante y año de fabricación del dispositivo National Instruments NI 6239
- condiciones de uso, configuración y mantenimiento del dispositivo National Instruments NI 6239
- marcas de seguridad y certificados que confirmen su concordancia con determinadas normativas

¿Por qué no leemos los manuales de instrucciones?

Normalmente es por la falta de tiempo y seguridad acerca de las funcionalidades determinadas de los dispositivos comprados. Desafortunadamente la conexión y el encendido de National Instruments NI 6239 no es suficiente. El manual de instrucciones siempre contiene una serie de indicaciones acerca de determinadas funcionalidades, normas de seguridad, consejos de mantenimiento (incluso qué productos usar), fallos eventuales de National Instruments NI 6239 y maneras de solucionar los problemas que puedan ocurrir durante su uso. Al final, en un manual se pueden encontrar los detalles de servicio técnico National Instruments en caso de que las soluciones propuestas no hayan funcionado. Actualmente gozan de éxito manuales de instrucciones en forma de animaciones interesantes o vídeo manuales que llegan al usuario mucho mejor que en forma de un folleto. Este tipo de manual ayuda a que el usuario vea el vídeo entero sin saltarse las especificaciones y las descripciones técnicas complicadas de National Instruments NI 6239, como se suele hacer teniendo una versión en papel.

¿Por qué vale la pena leer los manuales de instrucciones?

Sobre todo es en ellos donde encontraremos las respuestas acerca de la construcción, las posibilidades del dispositivo National Instruments NI 6239, el uso de determinados accesorios y una serie de informaciones que permiten aprovechar completamente sus funciones y comodidades.

Tras una compra exitosa de un equipo o un dispositivo, vale la pena dedicar un momento para familiarizarse con cada parte del manual National Instruments NI 6239. Actualmente se preparan y traducen con dedicación, para que no solo sean comprensibles para los usuarios, sino que también cumplan su función básica de información y ayuda.

Índice de manuales de instrucciones

  • Página 1

    DAQ M Series NI 6238/6239 User Manual Isolated Current Input/Current Output Devices NI 6238/6239 User Manual July 2006 371913A-01[...]

  • Página 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[...]

  • Página 3

    Important Information Warranty The NI 6238/6239 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[...]

  • Página 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.[...]

  • Página 5

    © Nationa l Instrum ents Cor poratio n v NI 6238/ 6239 Use r Manu al Contents About This M anual Conventions . ....................... ................. ...................... ................. ............................. ...... x iii Related Documentation............. ................ ....................... ................. ..................[...]

  • Página 6

    Contents NI 6238/6 239 User M anual vi ni.com Chapter 4 Analog Inpu t Analog Input Circuitry ..... ............................ ....................... ................. ......................... 4-1 Analog Input Range ................ ...................... ................. ............................. ................... 4-2 Connecting An alog [...]

  • Página 7

    Contents © Nationa l Instrum ents Cor poratio n vii NI 6238/ 6239 Use r Manu al AI Pause Trigger Signal ........ ................. ...................... ................. .................. 4-24 Using a Digital Source .................. ............................. ...................... . 4-24 Routing AI Pause Trig ger Signal to an Output T erm[...]

  • Página 8

    Contents NI 6238/6 239 User M anual viii ni.com Chapter 7 Counters Counter Input Ap plicati ons .......... ................ ....................... ................. ......................... 7-3 Counting Edges .............. ................ ............................. ...................... .............. 7-3 Single Point (On-Demand) Edge Count[...]

  • Página 9

    Contents © Nationa l Instrum ents Cor poratio n ix NI 6238/6239 Us er Ma nual Counter Timing Sig nals ............................ ....................... ................. ............................ . 7-26 Counter n Source Signal ........ ...................... ................. ............................. ...... 7-26 Routing a Signal to Co u[...]

  • Página 10

    Contents NI 6238/6 239 User M anual x ni.com Chapter 8 PFI Using PFI Terminals as T iming Input Signals ......... ................. ...................... .............. 8-2 Exporting Timing Outp ut Signals Using PFI Terminals ...................... ....................... .. 8- 3 Using PFI Terminals as Static Digital In puts and Outputs........ ..[...]

  • Página 11

    Contents © Nationa l Instrum ents Cor poratio n xi NI 6238/6239 Us er Ma nual Chapter 11 Bus Interface DMA Controllers ........................... ....................... ................. ...................... ................. . 11-1 PXI Considerations ................... ................ ............................. ...................... ...[...]

  • Página 12

    © National Instruments Corporation xiii NI 6238/6239 User Manual About This Manual The NI 6238/6239 User Manual co ntains informatio n about u sing the NI 6238 and NI 6239 M Series data acquisiti on (D A Q) devices with NI-D A Qm x 8.1 and later . Natio nal Instruments 6238/6 239 devices feature up to eight differential analog input (AI) ch annels[...]

  • Página 13

    About This Manual NI 6238/6239 User Manual xiv ni.com italic Italic text denotes variables, emphasis , a cross-reference, or an introduction to a key concept. Italic te xt also deno tes text that is a placeholder for a word or v alue that you must supply . monospace T ext in this font denotes text or ch aracters that you should enter from the keybo[...]

  • Página 14

    About This Manual © National Instruments Corporation xv NI 6238/6239 User Manual The C Function Reference Help describes functions and attributes. 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/lo[...]

  • Página 15

    About This Manual NI 6238/6239 User Manual xvi ni.com tools. Refer to the following locations on the Contents tab of the LabVIEW Help for info rmation ab out NI-DA Qm x: • 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 Assis[...]

  • Página 16

    About This Manual © National Instruments Corporation xvii NI 6238/6239 User Manual .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 inte grated into the V isual[...]

  • Página 17

    © National Instruments Corporatio n 1-1 NI 6238/6239 User Manual 1 Getting Started M Series NI 6238/6 239 devices feature ei ght dif ferential analog input (AI) channels, two analog output (A O) channels, two counters, six lines of digital input (DI), and four lines of digital ou tput (DO). If you hav e not already installed your device, refer to [...]

  • Página 18

    Chapter 1 Getting Started NI 6238/6239 User Manual 1-2 ni.com Device Specifications Refer to the NI 6238/6239 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 NI 6238/6239 devices. Device Accessories and Cables NI of fers a variety of accessories and cables to use with your[...]

  • Página 19

    © National Instruments Corporatio n 2-1 NI 6238/6239 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 vice, programming softw are , and PC. The following sections cov er t he components of a typi cal D A [...]

  • Página 20

    Chapter 2 DAQ System Over view NI 6238/6239 User Manual 2-2 ni.com Figure 2-2. General NI 6238/62 39 Block Diagram DAQ-STC2 The D A Q-STC 2 implements a high-performan ce digital engine for NI 6 238/6239 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[...]

  • Página 21

    Chapter 2 DAQ System Overview © National Instruments Corporatio n 2-3 NI 6238/6239 User Manual Calibration Circuitr y The M Series analog inputs and output s can self calibrate to correct gain and offset errors . Y ou can calibrate the de vice to minimize AI and A O errors caused by time and temperatur e drift at run time. No external circuitry is[...]

  • Página 22

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

  • Página 23

    Chapter 2 DAQ System Overview © National Instruments Corporatio n 2-5 NI 6238/6239 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[...]

  • Página 24

    © National Instruments Corporatio n 3-1 NI 6238/6239 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 [...]

  • Página 25

    Chapter 3 Connector Information NI 6238/6239 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[...]

  • Página 26

    Chapter 3 Connector Information © National Instruments Corporatio n 3-3 NI 6238/6239 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 . CAL+ — — External Calibrat ion Positive Reference —CAL+ supplies the positi ve refere[...]

  • Página 27

    © National Instruments Corporatio n 4-1 NI 6238/6239 User Manual 4 Analog Input Figure 4-1 shows the analog input circuitry of NI 6238 and NI 6239 devices. Figure 4-1. NI 6238/6239 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[...]

  • Página 28

    Chapter 4 Analog Inpu t NI 6238/6239 User Manual 4-2 ni.com for all input ranges. The NI-PGIA can am plify or attenuate an AI signal to ensure that you use the maximum resolu tion of the ADC. M Series de vices use the NI-PGIA to deliver high accurac y ev en when sampling multiple channels with small input ranges at fast rates. M Series device s can[...]

  • Página 29

    Chapter 4 Analog Input © National Instruments Corporatio n 4-3 NI 6238/6239 User Manual M Series de vices use a calibration me thod that requires som e codes (typically about 5% o f the codes) to lie outside of the speci fied range. This calibration method im prov es absolute accuracy , bu t it increases the nominal resolution of input rang es by [...]

  • Página 30

    Chapter 4 Analog Inpu t NI 6238/6239 User Manual 4-4 ni.com Figure 4-2. Analog Current Input Connection Method 1 Method 2 Method 2, shown in Figure 4-3, ties the AI – input to AI GND. When measuring current up to 20 mA, this type of con nection ensures that the voltage le vel on both the positive and negati ve side are within the common-mode in p[...]

  • Página 31

    Chapter 4 Analog Input © National Instruments Corporatio n 4-5 NI 6238/6239 User Manual Note that AI GND must always be connected to some voltage le vel. AI GND is the reference that NI 6238/6239 devices measure against. The NI 6238 and NI 6239 are isolated devices with isolation ratings up to 60 VDC/30 Vrms. This allows for cu rrent measurement a[...]

  • Página 32

    Chapter 4 Analog Inpu t NI 6238/6239 User Manual 4-6 ni.com Figure 4-5. NI 623 8/6239 PGIA Analog input gr oun d-r efer ence sett ing refers to the reference that the PGIA measures against. Differential is the only ground-reference setting for NI 6238/6239 analog input sign als, which means that the PG IA always measures the voltages between AI + a[...]

  • Página 33

    Chapter 4 Analog Input © National Instruments Corporatio n 4-7 NI 6238/6239 User Manual Caution The maximum input voltages rating of AI signals with respect to AI GND (and for differential signals with respect to each other) and earth/chassis ground are listed in th e Maximum W orking V oltag e section of t he NI 6238/6239 S pecifications . Exceed[...]

  • Página 34

    Chapter 4 Analog Inpu t NI 6238/6239 User Manual 4-8 ni.com 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 high accuracy of your measurements. In multichannel [...]

  • Página 35

    Chapter 4 Analog Input © National Instruments Corporatio n 4-9 NI 6238/6239 User Manual For e xample, suppose all channels in a system use a –20 to 20 mA input range. The signals on channels 0, 2, and 4 vary between 18 and 19 mA. The signals on channels 1, 3, and 5 vary between –18 and 0 m A. Scanning channels in the order 0, 2, 4, 1, 3, 5 wil[...]

  • Página 36

    Chapter 4 Analog Inpu t NI 6238/6239 User Manual 4-10 ni.com Analog Input Data Acquisition Methods When performing analog input m easurements, you eit her can perform software-timed or hard ware-timed acquisitions. Hard ware-timed acquisitions can b e buf f ered or non-buf fered. Software-T imed Acquisitions W ith a software-timed acquisition, so f[...]

  • Página 37

    Chapter 4 Analog Input © National Instruments Corporation 4-11 NI 6238/6239 User Manual samples has been written out, the generation stops. If you use a reference trigger , you must use finite sample mode. Continuous acquisitio n refers to the acquisition of an unspeci fied number of samples. Instead of acquiring a set number of data sam ples and [...]

  • Página 38

    Chapter 4 Analog Inpu t NI 6238/6239 User Manual 4-12 ni.com mainly to AI signal rou ting to the device, although they also apply to signal routing in general. Minimize noise pickup and maximi ze measurement accurac y by using individually shielded, twisted-pair wire s to connect AI signals to the device. W ith this type of wire, the signals attach[...]

  • Página 39

    Chapter 4 Analog Input © National Instruments Corporation 4-13 NI 6238/6239 User Manual M Series de vices use ai/SampleClock and ai/Conv ertC lock to perform interval sampling. As Figure 4-8 sh ows, ai/SampleClock controls the sample period, which is determined by the following equation: 1/Sample Period = Samp le Rate Figure 4-8. Int erval Samplin[...]

  • Página 40

    Chapter 4 Analog Inpu t NI 6238/6239 User Manual 4-14 ni.com When this calculation resu lts in the sampling rate e xceeding 35 kH z, there is not enough time betw een samples to acquire both chann els and still add a 10 μ s delay per channel, so the Con ver t Clock rate b ecomes the sampling rate multiplied by the num ber of channels bein g acquir[...]

  • Página 41

    Chapter 4 Analog Input © National Instruments Corporation 4-15 NI 6238/6239 User Manual example, four . The value decrements with each pulse on ai/SampleClock, until the v alue reaches zero. The sample counter is then loaded with the number of posttriggered samples, in this example, three. Figure 4-10. Pretriggered Data Acquisition Example If an a[...]

  • Página 42

    Chapter 4 Analog Inpu t NI 6238/6239 User Manual 4-16 ni.com Y ou can specify an internal or extern al source for ai/SampleClock. Y o u also can specify whether the measurement sa mple begins on the rising edge or falling edge of ai/SampleClock. Using an Inte rnal Source One of the follo wing internal signals can dri ve ai/SampleClock. • Counter [...]

  • Página 43

    Chapter 4 Analog Input © National Instruments Corporation 4-17 NI 6238/6239 User Manual Other Timing Requirements Y our DA Q device only acquires data during an acquisition. The device ignores ai/SampleClock when a measurem ent acquisition is not in progress. During a measurement acquisitio n, you can cause your D A Q device to ignore ai/SampleClo[...]

  • Página 44

    Chapter 4 Analog Inpu t NI 6238/6239 User Manual 4-18 ni.com •R T S I < 0 . . 7 > • Input PFI <0..5> •P X I _ S T A R ai/SampleClockT imebase is not availabl e as an output on the I/O connector . ai/SampleClockT imebase is divided do wn to provide one of the possible sources for ai/SampleClock. Y ou can c onfigure the polarity sel[...]

  • Página 45

    Chapter 4 Analog Input © National Instruments Corporation 4-19 NI 6238/6239 User Manual finished. It then reloads itself in pr eparation for the next ai/SampleClock pulse. 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 [...]

  • Página 46

    Chapter 4 Analog Inpu t NI 6238/6239 User Manual 4-20 ni.com Figure 4-12. ai/Sa mpleClock and ai/ConvertClock Other Timing Requirements The sample and con version lev el timing of M Series device s 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[...]

  • Página 47

    Chapter 4 Analog Input © National Instruments Corporation 4-21 NI 6238/6239 User Manual Figure 4-13. S ingle External S ignal Driving ai/SampleClock and ai/ConvertCloc k Simultaneously AI Convert Clock T imebase Signal The AI Con vert Clock Timebase (ai/Con vertClockT imebase) signal is di vided down to provide on of the possible sources for ai/Co[...]

  • Página 48

    Chapter 4 Analog Inpu t NI 6238/6239 User Manual 4-22 ni.com AI Start T rigger Signal Use the AI Start T rigger (ai/StartTri gger) signal to be gin a measurement acquisition. A measurement acq uisition consists of one or more samples. If you do not use triggers, begin a meas urement with a so ftware command. After the acquisition begins, configure [...]

  • Página 49

    Chapter 4 Analog Input © National Instruments Corporation 4-23 NI 6238/6239 User Manual complete description of the use of ai/StartT rigger and ai/ReferenceTrigger in a pretriggered D A Q operation. AI Reference T rigger Signal Use a reference trigger (ai/ReferenceT ri gger) signal to stop a measurement acquisition. T o use a reference trigger , s[...]

  • Página 50

    Chapter 4 Analog Inpu t NI 6238/6239 User Manual 4-24 ni.com 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 also can be one of several internal signals on [...]

  • Página 51

    Chapter 4 Analog Input © National Instruments Corporation 4-25 NI 6238/6239 User Manual Routing AI Pause T rigger Signal to an Output Te r m i n a l Y ou can ro ute ai/PauseT rigger ou t to R TSI <0..7>. Note Pause triggers are only sensiti ve to th e le vel of the source, not the edge. Getting Started with AI Applications in Software Y ou c[...]

  • Página 52

    © National Instruments Corporatio n 5-1 NI 6238/6239 User Manual 5 Analog Output NI 6238/6239 devices ha ve two A O chann els controlled by a single clock and capable of wav efo rm generation. Figure 5-1 shows the analog current output circuitry of NI 6238 and NI 6239 de vices. Figure 5-1. NI 6238/6239 Analog Current Output Cir cuitry Analog Outpu[...]

  • Página 53

    Chapter 5 Analog Output NI 6238/6239 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[...]

  • Página 54

    Chapter 5 Analog Output © National Instruments Corporatio n 5-3 NI 6238/6239 User Manual Non-Buffered In non-buf f ered acquisitions, data i s written dir ectly to the DA Cs on the device. T ypically , hardware-timed, non -b uffered operations are used to write single samples with good latency and known time increments between them. Buffered In a [...]

  • Página 55

    Chapter 5 Analog Output NI 6238/6239 User Manual 5-4 ni.com the buf fer at a fast enough rate to k e ep up with the generation, the buff er will underflo w and cause an error . Analog Output T riggering Analog output supports two different triggering actions: • Start tr igger • Pause trigger A digital trigger can initiate these actions. NI 6238[...]

  • Página 56

    Chapter 5 Analog Ou tput © National Instruments Corporatio n 5-5 NI 6238/6239 User Manual Maximum W orking V oltag e section of t he NI 6238/6239 S pecifications . Exceeding the maximum input supply voltage or maximum working voltage of A O signals distorts the measurement results. Exceedi ng the maximum input supply voltage or maximum working vol[...]

  • Página 57

    Chapter 5 Analog Output NI 6238/6239 User Manual 5-6 ni.com Using a Digital Source T o use ao/StartT rigger , specify a sour ce and an edge. The source can be one of the following signals: • A pulse initi ated by host software • Input PFI <0..5> •R T S I < 0 . . 7 > • ai/ReferenceT rigger • ai/StartTrigger •P X I _ S T A R N[...]

  • Página 58

    Chapter 5 Analog Output © National Instruments Corporatio n 5-7 NI 6238/6239 User Manual onboard clock, the generation resumes as so on as the pause trig ger is deasserted, as shown in Figure 5-4. Figure 5-4. ao/PauseT rigger with the Onboard Clock Source If you are using any signal other than the onboard clock as th e source of your sample clock,[...]

  • Página 59

    Chapter 5 Analog Output NI 6238/6239 User Manual 5-8 ni.com Y ou also can specify whether the samples are paused when ao/PauseT rigger is at a logic high or low le vel. Routing AO Pause T rigge r Signal to an Output Te r m i n a l Y ou can ro ute ao/PauseT rigger ou t to R TSI <0..7>. AO Sample Clock Signal Use the A O Sample C lock (ao/Sampl[...]

  • Página 60

    Chapter 5 Analog Output © National Instruments Corporatio n 5-9 NI 6238/6239 User Manual Other Timing Requirements A counter on your device internally generates ao/SampleClock unless you select some external source. ao/StartT r igger starts the counter and either the software or hardware can stop it afte r a f inite generation completes. When usin[...]

  • Página 61

    Chapter 5 Analog Output NI 6238/6239 User Manual 5-10 ni.com ao/SampleClockT imebase is not av ailable as an output on the I/O connector . Y ou might use ao/SampleClockT imebase if you want to use an e xternal sample clock signal, but need to divide the signal do wn. If you want to use an external sample clock signal but do not need to di vide the [...]

  • Página 62

    © National Instruments Corporatio n 6-1 NI 6238/6239 User Manual 6 Digital Input and Output NI 6238/6239 devices hav e six static digita l input lines, P0.<0..5>. These lines also can be used as PFI inputs. In addition , the NI 6238/623 9 devices ha ve four static digi tal output lines, P1.<0..3>. These lines also can be used as PFI ou[...]

  • Página 63

    Chapter 6 Digital Input and Output NI 6238/6239 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 6238 and the NI 6239 device, respecti vely . Digital input and [...]

  • Página 64

    Chapter 6 Digital Input and Output © National Instruments Corporatio n 6-3 NI 6238/6239 User Manual Figure 6-2. NI 6239 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 6238/6239 Specifications , can damage the D A Q device and the computer . NI is not li[...]

  • Página 65

    Chapter 6 Digital Input and Output NI 6238/6239 User Manual 6-4 ni.com Getting Started with DIO Applications in Software Y ou can use NI 6238/ 6239 devices in the follo wing digital I/O applications: • Static digital inpu t • Static digital outp ut Note For more information about programming digital I/ O applications and triggers in software, r[...]

  • Página 66

    © National Instruments Corporatio n 7-1 NI 6238/6239 User Manual 7 Counters NI 6 238/6239 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 [...]

  • Página 67

    Chapter 7 Counters NI 6238/6239 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[...]

  • Página 68

    Chapter 7 Counters © National Instruments Corporatio n 7-3 NI 6238/6239 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 [...]

  • Página 69

    Chapter 7 Counters NI 6238/6239 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[...]

  • Página 70

    Chapter 7 Counters © National Instruments Corporatio n 7-5 NI 6238/6239 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 .[...]

  • Página 71

    Chapter 7 Counters NI 6238/6239 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[...]

  • Página 72

    Chapter 7 Counters © National Instruments Corporatio n 7-7 NI 6238/6239 User Manual 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 gi ster . A DMA controller transfers the stored values to host memory .[...]

  • Página 73

    Chapter 7 Counters NI 6238/6239 User Manual 7-8 ni.com Single Period Measurement W ith sing le period measurement, the counter counts the num ber of rising (or falling) edges on the Source inp ut occurring between two activ e edges of the Gate input. On the second activ e edge of the Gate inp ut, the counter stores the count in a hardware sav e reg[...]

  • Página 74

    Chapter 7 Counters © National Instruments Corporatio n 7-9 NI 6238/6239 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[...]

  • Página 75

    Chapter 7 Counters NI 6238/6239 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[...]

  • Página 76

    Chapter 7 Counters © National Instruments Corporation 7-11 NI 6238/6239 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[...]

  • Página 77

    Chapter 7 Counters NI 6238/6239 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[...]

  • Página 78

    Chapter 7 Counters © National Instruments Corporation 7-13 NI 6238/6239 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[...]

  • Página 79

    Chapter 7 Counters NI 6238/6239 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 slower kno wn timebase. Configur[...]

  • Página 80

    Chapter 7 Counters © National Instruments Corporation 7-15 NI 6238/6239 User Manual 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 c ycle becomes more significant; T able 7-1 illustrates thi s point. • Method 1b[...]

  • Página 81

    Chapter 7 Counters NI 6238/6239 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[...]

  • Página 82

    Chapter 7 Counters © National Instruments Corporation 7-17 NI 6238/6239 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[...]

  • Página 83

    Chapter 7 Counters NI 6238/6239 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[...]

  • Página 84

    Chapter 7 Counters © National Instruments Corporation 7-19 NI 6238/6239 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—[...]

  • Página 85

    Chapter 7 Counters NI 6238/6239 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)[...]

  • Página 86

    Chapter 7 Counters © National Instruments Corporation 7-21 NI 6238/6239 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[...]

  • Página 87

    Chapter 7 Counters NI 6238/6239 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[...]

  • Página 88

    Chapter 7 Counters © National Instruments Corporation 7-23 NI 6238/6239 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[...]

  • Página 89

    Chapter 7 Counters NI 6238/6239 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[...]

  • Página 90

    Chapter 7 Counters © National Instruments Corporation 7-25 NI 6238/6239 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[...]

  • Página 91

    Chapter 7 Counters NI 6238/6239 User Manual 7-26 ni.com frequency of the system. Figure 7-28 sho ws an example of pulse generation for ETS; the delay from the trigger to the pulse increases after each subsequent Gate activ e edge. Figure 7-28. Pulse Generation for ETS For information on connecting co unter signals, refer to the Default Counter Term[...]

  • Página 92

    Chapter 7 Counters © National Instruments Corporation 7-27 NI 6238/6239 User Manual performing. T abl e 7-3 lists how this terminal is used in various applications. Routing a Signal to Counter n Source Each counter has independent input selectors fo r the Counter n Source signal. Any of the following signals can be routed to the Cou nter n Source [...]

  • Página 93

    Chapter 7 Counters NI 6238/6239 User Manual 7-28 ni.com 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 selectors for the Counter n G[...]

  • Página 94

    Chapter 7 Counters © National Instruments Corporation 7-29 NI 6238/6239 User Manual • ai/StartTrigger •P X I _ S T A R In addition, Count er 1 Internal Output , Counter 1 Gate, Coun ter 1 Source, or Counter 0 Gate can be routed to Counter 0 Aux. Counter 0 Internal Output, Counter 0 Gate, Counter 0 Source, or Co unter 1 Gate can be routed to Co[...]

  • Página 95

    Chapter 7 Counters NI 6238/6239 User Manual 7-30 ni.com waiting for the Gate signal wh en it is armed. Coun ter output operation s can use the arm signal in addition to a start trigger . Software can arm a counter or configure counters to be armed on a hardware signal. Software calls this ha rdware signal the Arm Start T rigger . Internally , softw[...]

  • Página 96

    Chapter 7 Counters © National Instruments Corporation 7-31 NI 6238/6239 User Manual Routing Frequency Output to a T erminal Y ou can route Frequenc y Output to an y output PF I <6..9> ter minal. All PFIs are set to high-impedance at startup. Default Counter T erminals By default, NI-D A Qmx routes the counter/tim er inputs and outputs to the[...]

  • Página 97

    Chapter 7 Counters NI 6238/6239 User Manual 7-32 ni.com Counter T riggering Counters support three different trigge ring actions—arm st art, start, and pause. Arm Start T rigger T o begin any counter input or output function, you must first enable, or arm, the counter . Software can arm a counter or configure counters to be armed on a hardware si[...]

  • Página 98

    Chapter 7 Counters © National Instruments Corporation 7-33 NI 6238/6239 User Manual Other Counter Features Cascading Counters Y ou can int ernally route the Count er n Internal Output and Counter n TC signal of each counter to the Gate inputs of the other counter . By cascading two counters together , you can eff ecti vely create a 64-bit counter [...]

  • Página 99

    Chapter 7 Counters NI 6238/6239 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[...]

  • Página 100

    Chapter 7 Counters © National Instruments Corporation 7-35 NI 6238/6239 User Manual Figure 7-30. Pres caling Prescaling is intended to be used for frequency measurement where the measurement is made on a continu ous, repetitiv e signal. The prescaling counter cannot be read; therefore, you cannot determ ine how man y edges hav e occurred since the[...]

  • Página 101

    Chapter 7 Counters NI 6238/6239 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[...]

  • Página 102

    Chapter 7 Counters © National Instruments Corporation 7-37 NI 6238/6239 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[...]

  • Página 103

    Chapter 7 Counters NI 6238/6239 User Manual 7-38 ni.com 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 o nly be used if the frequency of the Source signal is 20 MH z or less. When T o Use Duplic ate Count Prevention Y ou shou ld use duplicate count pre[...]

  • Página 104

    Chapter 7 Counters © National Instruments Corporation 7-39 NI 6238/6239 User Manual Otherwise, the mode depends on the signal that drives Counter n Source. T able 7-6 describes the conditi ons for each mode. 80 MHz Source Mode In 80 MHz source mode, the device synchronizes signals on the rising edge of the source, and counts on the following risin[...]

  • Página 105

    Chapter 7 Counters NI 6238/6239 User Manual 7-40 ni.com Figure 7-35. Other Internal Sour ce Mode External Source Mode In external source mode, the de vice generates a delayed Source signal by delaying the Source signal by se veral nanoseconds. The device synchronizes signals on the rising edge of the delayed Source signal, and counts on the followi[...]

  • Página 106

    © National Instruments Corporatio n 8-1 NI 6238/6239 User Manual 8 PFI NI 6238/6239 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[...]

  • Página 107

    Chapter 8 PFI NI 6238/6239 User Manual 8-2 ni.com Figure 8-2. NI 6238/6239 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 [...]

  • Página 108

    Chapter 8 PFI © National Instruments Corporatio n 8-3 NI 6238/6239 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 Complet e Even t • Counter n Source • Counter n Gate • Counter n Internal Output •F r e q u e n c y O u t p u[...]

  • Página 109

    Chapter 8 PFI NI 6238/6239 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 onboard oscillator to genera[...]

  • Página 110

    Chapter 8 PFI © National Instruments Corporatio n 8-5 NI 6238/6239 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[...]

  • Página 111

    Chapter 8 PFI NI 6238/6239 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 no t connect any digital output line to any e xternal signal source, ground signal, or power supply . • Understand the current requirement s of the load connect[...]

  • Página 112

    Chapter 8 PFI © National Instruments Corporatio n 8-7 NI 6238/6239 User Manual Figure 8-5. NI 623 8 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[...]

  • Página 113

    Chapter 8 PFI NI 6238/6239 User Manual 8-8 ni.com Figure 8-6. NI 6239 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 6238/6239 Specifications , can damage the D A Q device and the computer . NI is not liable for an y damage resulting from such signal con[...]

  • Página 114

    © National Instruments Corporatio n 9-1 NI 6238/6239 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[...]

  • Página 115

    Chapter 9 Isolation and Digital Isolators NI 6238/6239 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. Each 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-i[...]

  • Página 116

    Chapter 9 Iso lation and Digital Isolators © National Instruments Corporatio n 9-3 NI 6238/6239 User Manual • Impro ved safety —Isolation creates an insulation barrier so you can make measurements at ele vated volt ages w hile protecting against large transient voltage spikes. Reducing Common-Mode Noise Isolated products require an isolated po[...]

  • Página 117

    © National Instruments Corporation 10-1 NI 6238/6239 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[...]

  • Página 118

    Chapter 10 Digital Ro uting and Clock Generation NI 6238/623 9 User Manu al 1 0-2 ni.com Caution R TSI signals are not isolated from the chassis. 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 o scilla[...]

  • Página 119

    Chapter 10 Digital Routing and Clock Generati on © National Instruments Corporation 10-3 NI 6238/6239 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[...]

  • Página 120

    Chapter 10 Digital Ro uting and Clock Generation NI 6238/623 9 User Manu al 1 0-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[...]

  • Página 121

    Chapter 10 Digital Routing and Clock Generati on © National Instruments Corporation 10-5 NI 6238/6239 User Manual Using R TSI as Outputs R TSI <0..7> are bidirection al terminals. As an output, yo u can driv e any of the following signals to any R TSI term inal. • ai/StartTrigger • ai/ReferenceT rigger • ai/Con vertClock* • ai/Sample[...]

  • Página 122

    Chapter 10 Digital Ro uting and Clock Generation NI 6238/623 9 User Manu al 1 0-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 •[...]

  • Página 123

    Chapter 10 Digital Routing and Clock Generati on © National Instruments Corporation 10-7 NI 6238/6239 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.[...]

  • Página 124

    Chapter 10 Digital Ro uting and Clock Generation NI 6238/623 9 User Manu al 1 0-8 ni.com 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 measurement or control system. The PXI backplane is responsible for generating PXI_CLK10 independentl y to each peripher al slot in a PXI c[...]

  • Página 125

    Chapter 10 Digital Routing and Clock Generati on © National Instruments Corporation 10-9 NI 6238/6239 User Manual input on each rising edge of a filter clock. M Series de vices use an onboard oscillator to generate the filt er clock with a 40 MHz frequency . Note NI-D A Qmx only supports filters on counter inputs. The following is an e xample of l[...]

  • Página 126

    Chapter 10 Digital Ro uting and Clock Generation NI 6238/6239 User Manual 10-10 ni.com When a PFI input i s routed directly to R TSI, or a R TSI in put is routed directly to PFI, the M Series device does not use the f iltered version of the input signal. Refer to the Kno wledgeBase document, Digital F ilteri ng with M Series and CompactDA Q , for m[...]

  • Página 127

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

  • Página 128

    Chapter 11 Bus Interface NI 6238/623 9 User Manu al 1 1-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[...]

  • Página 129

    Chapter 11 Bus Interface © National Instruments Corporation 11-3 NI 6238/6239 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[...]

  • Página 130

    Chapter 11 Bus Interface NI 6238/623 9 User Manu al 1 1-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[...]

  • Página 131

    © National Instruments Corporation 12-1 NI 6238/6239 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 6238/6239 devices support internal so[...]

  • Página 132

    Chapter 12 T riggering NI 6238/623 9 User Manu al 1 2-2 ni.com Y ou also can program yo ur D A Q device to perform an action in response to a trigger from a digital source. Th e action can af fect the following. • Analog input acqu isition • Analog output generation • Counter beha vior[...]

  • Página 133

    © National Instruments Corporation A-1 NI 6238/6239 User Manual A Device-Specific Information This appendix contains device pinout s, specif ications, cable and accessory choices, and other information for the NI 6238 and NI 6239 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[...]

  • Página 134

    Appendix A Device-Speci fic Information NI 6238/6239 User Manual A- 2 ni.com Figure A-1. NI 6238 Pin out Table A-1. NI 6238 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[...]

  • Página 135

    Appendix A Device-Specific Information © National Instruments Corporation A-3 NI 6238/6239 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 6238 Specifications Refer to the NI 6238/6239 Specifications , av ailable on the NI-D A Q D[...]

  • Página 136

    Appendix A Device-Speci fic Information NI 6238/6239 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[...]

  • Página 137

    Appendix A Device-Specific Information © National Instruments Corporation A-5 NI 6238/6239 User Manual Figure A-2. NI 6239 Pinout Table A-2. NI 6239 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)[...]

  • Página 138

    Appendix A Device-Speci fic Information NI 6238/6239 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 6239 Specifications Refer to the NI 6239 Specifications , av ailable on the NI-D A Q De vice Document Br o wser or ni.[...]

  • Página 139

    Appendix A Device-Specific Information © National Instruments Corporation A-7 NI 6238/6239 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[...]

  • Página 140

    © National Instruments Corporation B-1 NI 6238/6239 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.[...]

  • Página 141

    Appendix B T roubleshooting NI 6238/6239 User Manual B- 2 ni.com In an isolated device, lea ving the AI GND terminal unconnected will cause the signal to drift and e ventually rail. How can I use t he AI Sample Clock and AI Con vert Clock signals on an M Series device to samp le the AI channel(s)? M Series de vices use ai/SampleClock and ai/Conv er[...]

  • Página 142

    Appendix B T roubleshooting © National Instruments Corporation B-3 NI 6238/6239 User Manual Counters When multiple sampl e clocks on my bu ffered counter measur ement occur bef ore consecutive edges on my source, I see weird behavior . Why? Duplicate count pr evention ensures that the counter returns correct data for counter measurement in so me a[...]

  • Página 143

    © National Instruments Corporation C-1 NI 6238/6239 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[...]

  • Página 144

    Appendix C T echnical Support and Professional Services NI 6238/6239 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[...]

  • Página 145

    © National Instruments Corporation G-1 NI 6238/6239 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[...]

  • Página 146

    Glossary NI 6238/6239 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[...]

  • Página 147

    Glossary © National Instruments Corporation G-3 NI 6238/6239 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. Hardw are—A property of an ev ent that occurs at an arbitrary time, without syn[...]

  • Página 148

    Glossary NI 6238/6239 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 signal. For digital signals, you group channels to form ports. P[...]

  • Página 149

    Glossary © National Instruments Corporation G-5 NI 6238/62 39 User Manual counter 1. Software. A memory location used to store a count of certain occurrences. 2. Hardware. A circuit that counts e vents . When it refers to an instrument, it refers to a frequency counter . counter/timer A circuit that counts external pulses or clock pulses (timing).[...]

  • Página 150

    Glossary NI 6238/6239 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. [...]

  • Página 151

    Glossary © National Instruments Corporation G-7 NI 6238/6239 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[...]

  • Página 152

    Glossary NI 6238/6239 User Manual G-8 ni.com F FIFO First- In-First-Ou t memory buf fer —A data buf f ering 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 tr[...]

  • Página 153

    Glossary © National Instruments Corporation G-9 NI 6238/62 39 User Manual ft Feet. 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 software instructions executed by a single line of code that may hav e input and/or output parameters and returns a value when ex[...]

  • Página 154

    Glossary NI 6238/6239 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-le vel software functions that controls a specif ic GPIB, VXI, or RS232 programmable instrument or a specific plug-in D A Q device.[...]

  • Página 155

    Glossary © National Instruments Corporation G-11 NI 6238/6239 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[...]

  • Página 156

    Glossary NI 6238/6239 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, optional shields, and [...]

  • Página 157

    Glossary © National Instruments Corporation G-13 NI 6238/6239 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[...]

  • Página 158

    Glossary NI 6238/6239 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[...]

  • Página 159

    Glossary © National Instruments Corporation G-15 NI 6238/6239 User Manual real time 1. Displays as it comes in; no delays. 2. A property of an event or system in which data is processed and acted upon as it is acquired instead of being accumulated and processed at a later time. 3. Pertaining to the performance of a computation durin g the actual t[...]

  • Página 160

    Glossary NI 6238/6239 User Manual G-16 ni.com SCXI Signal Conditioning eX tensions for Instrumen tation—The N ational Instruments pr oduct line for condit ioning low-le vel signals with in an external chassis near sensors so that on ly high-le vel signals are sent to D A Q devices in the noisy PC en vironment. sensor A device that responds to a p[...]

  • Página 161

    Glossary © National Instruments Corporatio n G-17 NI 6238/6239 User Manual source impeda nce A parameter of sig nal sources that reflects current-driving ability of voltage sources (lo wer is better) and the v olt age-driving ability of current sources (higher is better). synchronous 1. Hardware—A property of an ev ent that is synchronized to a [...]

  • Página 162

    Glossary NI 6238/6239 User Manual G-18 ni.com trigger 1. Any e vent that causes or starts some form of data capture. 2. An external stimulus that initiates one or more instrum ent functions. T ri gger stimuli include a front panel button, an external input voltage pulse, or a bus trigger command. The trigger may also be deriv ed from attributes of [...]

  • Página 163

    Glossary © National Instruments Corporation G-19 NI 6238/6239 User Manual V s Signal source voltage. virtual channel See channel . W wa veform 1. The plot of the instantan eous amplitude of a si gnal as a function of time. 2. Multiple voltage readings taken at a specific sampling rate.[...]

  • Página 164

    © National Instruments Corporatio n I-1 NI 6238/6239 User Manual Index Symbols .NET languages documentatio n, xvii Numerics 10 MHz reference clock, 10-3 100 kHz Timebase, 10-2 20 MHz Timebase, 10-2 80 MHz source mode, 7-39 80 MHz Timebase, 10-2 A A/D converter, 4-2 accessories, 2-4, A-3, A-6 choosing for your devi ce, 1-2 acquisitions circular-buf[...]

  • Página 165

    Index NI 6238/6239 User Manual I-2 ni.co m triggering, 5-4 troubleshooting, B-2 ANSI C documentation, xvii AO FIFO, 5-1 AO Pause Trigger signal, 5-6 AO Sample Clock signal, 5-8 AO Sample Clock Timebase signal, 5-9 AO Start Trigger signal, 5-5 ao/PauseTrigger, 5-6 ao/SampleClock, 5-8 ao/SampleClockTimebase, 5-9 ao/StartTrigger, 5-5 applications coun[...]

  • Página 166

    Index © National Instruments Corporatio n I-3 NI 6238/6239 User Manual conventions used in the manual, xiii Counter n A signal, 7-29 Counter n Aux signal, 7-28 Counter n B signal, 7-29 Counter n Gate signal, 7-28 Counter n HW Arm signal, 7- 29 Counter n Internal Ou tput signal, 7-30 Counter n Source signal, 7-26 Counter n TC signal, 7-30 Counter n[...]

  • Página 167

    Index NI 6238/6239 User Manual I-4 ni.co m digital input and output, 6-1 isolation, 9-3 isolators, 9-1 routing, 10-1 signals, connecting, 6-2, 8-6 source, triggering, 12-1 digital I/O circuitry, 6-1 connecting signals, 6 -2, 8-6 getting started with applications in software, 6-4 I/O protection, 6-1, 8-5 programmable power-up states, 6-1, 8-6 trigge[...]

  • Página 168

    Index © National Instruments Corporatio n I-5 NI 6238/6239 User Manual non-buffered hardware-timed, 5-3 pulse for ETS, 7-25 pulse train, 7-23 retriggerable singl e pulse, 7-22 simple pulse, 7-21 single pulse, 7-21 single pulse with start trigge r, 7-21 software-timed, 5-2 getting started, 1-1 AI applications in software, 4-25 AO applications in so[...]

  • Página 169

    Index NI 6238/6239 User Manual I-6 ni.co m using quadrature encoders, 7-16 using two pulse enco ders, 7-18 measuring high frequency with two counters, 7-12 large range of frequencies using two counters, 7- 13 low frequency with one counter, 7-10 averaged, 7-11 methods, data transfer, 11-3 minimizing output signal gli tches (troubleshootin g), B-2 m[...]

  • Página 170

    Index © National Instruments Corporatio n I-7 NI 6238/6239 User Manual pulse-width measurement, 7-6 buffered, 7-6 single, 7-6 PXI and PXI Express, 11-2 clock, 11-2 clock and trigger signals, 1 0-7 considerations, 11-2 trigger signals, 11-2 triggers, 10-8 using with Co mpactPCI, 11-3 PXI Express chassis compatibility, 11-2 PXI_CLK10, 10-8 PXI_STAR [...]

  • Página 171

    Index NI 6238/6239 User Manual I-8 ni.co m Counter n Z, 7-29 counter timing, 7-26 counters, 7- 26 exporting timing out put using PFI terminals, 8-3 FREQ OUT, 7-30 Frequency Output, 7-30 minimizing output glitch es, B-2 simple pulse generation, 7 -21 single period measurement, 7-8 pulse generation, 7-21 retriggerable, 7-22 with start trigger, 7-2 1 [...]

  • Página 172

    Index © National Instruments Corporatio n I-9 NI 6238/6239 User Manual U using PFI termin als as static digital I/Os, 8-3 as timing input, 8-2 to export timing output signals, 8-3 using RTSI as outputs, 10-5 terminals as timing input signal s, 10-6 using short high-quality cabling, 4-8 V V-I Converter, 5-1 W waveform generation signals, 5-5 Web re[...]