Page 2
DAQ M Series M Series User Manual NI 622x, NI 625x, and NI 628x Multifunction I/O Modules and Devices M Series User Manual July 2016 371022L-01...
Page 4
National Instruments Corporation. National Instruments respects the intellectual property of others, and we ask our users to do the same. NI software is protected by copyright and other intellectual property laws. Where NI software may be used to reproduce software or other materials belonging to others, you may use NI software only to reproduce materials that you may reproduce in accordance with the terms of any applicable license or other legal restriction.
Page 5
™ The ExpressCard word mark and logos are owned by PCMCIA and any use of such marks by National Instruments is under license. The mark LabWindows is used under a license from Microsoft Corporation. Windows is a registered trademark of Microsoft Corporation in the United States and other countries.
Page 9
Contents Chapter 5 Analog Output AO Offset and AO Reference Selection ................5-2 Minimizing Glitches on the Output Signal ...............5-3 Analog Output Data Generation Methods ................ 5-3 Software-Timed Generations ..................5-3 Hardware-Timed Generations................... 5-4 Analog Output Triggering ....................5-5 Connecting Analog Output Signals .................. 5-5 Analog Output Timing Signals ..................
Page 11
Contents Counter Timing Signals ....................7-24 Counter n Source Signal ...................7-24 Routing a Signal to Counter n Source .............. 7-25 Routing Counter n Source to an Output Terminal ..........7-25 Counter n Gate Signal....................7-25 Routing a Signal to Counter n Gate ..............7-26 Routing Counter n Gate to an Output Terminal ..........
Page 13
Contents Appendix A Module/Device-Specific Information NI 6220 ..........................A-2 NI 6221 (68-Pin) ....................... A-4 NI PCI-6221 (37-Pin) ....................... A-11 NI 6224 ..........................A-13 NI 6225 ..........................A-15 NI 6229 ..........................A-21 NI 6250 ..........................A-27 NI 6251 ..........................A-29 NI 6254 ..........................A-37 NI 6255 ..........................
Getting Started The M Series User Manual contains information about using the National Instruments M Series multifunction I/O data acquisition (DAQ) devices with NI-DAQmx 15.5 and later. M Series devices feature up to 80 analog input (AI) channels, up to four analog output (AO) channels, up to 48 lines of digital input/output (DIO), and two counters.
Chapter 1 Getting Started Safety Guidelines for Hazardous Voltages If hazardous voltages are connected to the device/module, take the following precautions. A hazardous voltage is a voltage greater than 42.4 V or 60 VDC to earth ground. Caution Ensure that hazardous voltage wiring is performed only by qualified personnel adhering to local electrical standards.
At the end of the product life cycle, all products must be sent to EU Customers a WEEE recycling center. For more information about WEEE recycling centers, National Instruments WEEE initiatives, and compliance with WEEE Directive 2002/96/EC on Waste and Electronic Equipment, visit ni.com/environment/...
Chapter 1 Getting Started To avoid ESD damage in handling the device, take the following precautions: • Ground yourself with a grounding strap or by touching a grounded object. • Touch the antistatic package to a metal part of your computer chassis before removing the device from the package.
Chapter 1 Getting Started Replace the computer cover, and plug in and power on the computer. Self-calibrate the PCI Express DAQ device in MAX by following the instructions in the Device Self-Calibration section. Note Connecting or disconnecting the disk drive power connector can affect the analog performance of your device.
Chapter 1 Getting Started USB Device Panel/Wall Mounting (USB-622 /625 /628 Devices) The Externally Powered USB M Series Panel Mounting Kit (part number 780214-01, not included in your USB-62xx kit) is an accessory you can use to mount the USB-62xx family of products to a panel or wall. USB Device LEDs LED Patterns Connector...
Page 24
Chapter 1 Getting Started Figure 1-8. USB-62 xx Screw Terminal Fuse Locations T 2A 250V (5 × 20 mm) Fuse Littelfuse 0453002 Fuse on USB-628 x Devices Replace the lid and screws. (USB-622 /625 BNC Devices) To replace a broken fuse in the USB-62xx BNC, complete the following steps.
Chapter 1 Getting Started (USB-622 /625 /628 Mass Termination Devices) To replace a broken fuse in the USB-62xx Mass Termination, complete the following steps. Power down and unplug the device. Remove the USB cable and signal cable(s) from the device. Loosen the four Phillips screws that attach the lid to the enclosure and remove the lid.
Chapter 2 DAQ System Overview DAQ-STC2 and DAQ-6202 The DAQ-STC2 and DAQ-6202 implement a high-performance digital engine for M Series data acquisition hardware. Some key features of this engine include the following: • Flexible AI and AO sample and convert timing •...
Chapter 2 DAQ System Overview 68-Pin BNC Accessories You can use your 68-pin cable to connect your DAQ device to the following BNC accessories: BNC-2110—Provides BNC connectivity to all analog signals, some digital signals, and • spring terminals for other digital signals BNC-2111—Provides BNC connectivity to 16 single-ended analog input signals, •...
Chapter 2 DAQ System Overview For more information on the connectors used for DAQ devices, refer to the NI DAQ Device Custom Cables, Replacement Connectors, and Screws document by going to ni.com/info and entering the Info Code rdspmb USB Device Accessories, USB Cable, and Power Supply USB Screw Terminal and USB Mass Termination devices feature connectivity directly on the device and do not require an accessory for interfacing to signals.
R37F-37M—37-pin female-to-male ribbon I/O cable • 37-Pin Screw Terminal Accessories National Instruments offers several styles of screw terminal connector blocks. Use your 37-pin cable to connect a PCI-6221 (37-pin) device to one of the following connector blocks: CB-37F-HVD—37-pin DIN rail screw terminal block •...
Chapter 2 DAQ System Overview Signal Conditioning Many sensors and transducers require signal conditioning before a measurement system can effectively and accurately acquire the signal. The front-end signal conditioning system can include functions such as signal amplification, attenuation, filtering, electrical isolation, simultaneous sampling, and multiplexing.
Terminal, or USB-622x/625x BNC devices. Programming Devices in Software National Instruments measurement devices are packaged with NI-DAQmx driver software, an extensive library of functions and VIs you can call from your application software, such as LabVIEW or LabWindows™/CVI™, to program all the features of your NI measurement devices.
Page 39
Chapter 2 DAQ System Overview M Series devices use the NI-DAQmx driver. NI-DAQmx includes a collection of programming examples to help you get started developing an application. You can modify example code and save it in an application. You can use examples to develop a new application or add example code to an existing application.
Page 41
Chapter 3 Connector and LED Information Table 3-1. I/O Connector Signals Signal Name Reference Direction Description Analog Input Ground—These terminals are the AI GND — — reference point for single-ended AI measurements in RSE mode and the bias current return point for DIFF measurements.
Page 43
Chapter 3 Connector and LED Information Table 3-1. I/O Connector Signals (Continued) Signal Name Reference Direction Description Programmable Function Interface or Port 2 PFI <8..15>/ D GND Input or Digital I/O Channels—Each of these terminals P2.<0..7> Output can be individually configured as a PFI terminal or a digital I/O terminal.
Page 45
Chapter 3 Connector and LED Information Figure 3-1. USER 1 and USER 2 BNC Connections USER 1 BNC USER 2 BNC D GND D GND USER 1 Internal Connection USER 2 D GND +5 V D GND P0.0 P0.1 Screw P0.2 Terminal P0.3...
Chapter 4 Analog Input A/D Converter—The analog-to-digital converter (ADC) digitizes the AI signal by • converting the analog voltage into a digital number. AI FIFO—M Series devices can perform both single and multiple A/D conversions of a • fixed or infinite number of samples. A large first-in-first-out (FIFO) buffer holds data during AI acquisitions to ensure that no data is lost.
Chapter 4 Analog Input frequency of the lowpass filter is also called the small signal bandwidth. The specifications document for your DAQ device lists the small signal bandwidth. On some devices, the filter cutoff is fixed. On other devices, this filter is programmable and can be enabled for a lower frequency.
Chapter 4 Analog Input AI ground-reference setting is sometimes referred to as AI terminal configuration. Configuring AI Ground-Reference Settings in Software You can program channels on an M Series device to acquire with different ground references. To enable multimode scanning in LabVIEW, use the NI-DAQmx Create Virtual Channel VI of the NI-DAQmx API.
Page 53
The capacitance of the cable also can increase the settling time. National Instruments recommends using individually shielded, twisted-pair wires that are Connecting Analog Input 2 m or less to connect AI signals to the device. Refer to the Signals section for more information.
Page 54
Chapter 4 Analog Input Consider again the example above where a 4 V signal is connected to channel 0 and a 1 mV signal is connected to channel 1. Suppose the input range for channel 0 is -10 V to 10 V and the input range of channel 1 is -200 mV to 200 mV. You can connect channel 2 to AI GND (or you can use the internal ground;...
Chapter 4 Analog Input If data cannot be transferred across the bus fast enough, the FIFO becomes full. New acquisitions overwrite data in the FIFO before it can be transferred to host memory. The device generates an error in this case. With continuous operations, if the user program does not read data out of the PC buffer fast enough to keep up with the data transfer, the buffer could reach an overflow condition, causing an error to be generated.
Chapter 4 Analog Input Connecting Floating Signal Sources What Are Floating Signal Sources? A floating signal source is not connected to the building ground system, but has an isolated ground-reference point. Some examples of floating signal sources are outputs of transformers, thermocouples, battery-powered devices, optical isolators, and isolation amplifiers.
Page 60
Chapter 4 Analog Input Figure 4-4. Differential Connections for Floating Signal Sources without Bias Resistors M Series Device Floating Signal Source – AI– Impedance AI SENSE <100 Ω AI GND However, for larger source impedances, this connection leaves the DIFF signal path significantly off balance.
Chapter 4 Analog Input Figure 4-7. Differential Connections for AC Coupled Floating Sources with Balanced Bias Resistors M Series Device AC Coupling AC Coupled Floating Signal Source – AI– AI SENSE AI GND Using Non-Referenced Single-Ended (NRSE) Connections for Floating Signal Sources It is important to connect the negative lead of a floating signals source to AI GND (either directly or through a resistor).
Chapter 4 Analog Input When to Use Differential Connections with Ground-Referenced Signal Sources Use DIFF input connections for any channel that meets any of the following conditions: • The input signal is low level (less than 1 V). • The leads connecting the signal to the device are greater than 3 m (10 ft). •...
Chapter 4 Analog Input Using Non-Referenced Single-Ended (NRSE) Connections for Ground-Referenced Signal Sources Figure 4-11 shows how to connect ground-reference signal sources in NRSE mode. Figure 4-11. Single-Ended Connections for Ground-Referenced Signal Sources (NRSE Configuration) I/O Connector AI <0..15> or AI <16.. n > Ground- Referenced Instrumentation...
Page 68
Chapter 4 Analog Input M Series devices use AI Sample Clock (ai/SampleClock) and AI Convert Clock (ai/ConvertClock) to perform interval sampling. As Figure 4-13 shows, AI Sample Clock (ai/SampleClock) controls the sample period, which is determined by the following equation: 1/Sample Period = Sample Rate Figure 4-13.
Chapter 4 Analog Input Using an Internal Source One of the following internal signals can drive AI Sample Clock: Counter n Internal Output • • AI Sample Clock Timebase (divided down) • A pulse initiated by host software A programmable internal counter divides down the sample clock timebase. Several other internal signals can be routed to AI Sample Clock through RTSI.
Chapter 4 Analog Input NI-DAQmx chooses the fastest conversion rate possible based on the speed of the A/D converter and adds 10 μs of padding between each channel to allow for adequate settling time. This scheme enables the channels to approximate simultaneous sampling and still allow for adequate settling time.
Page 74
Chapter 4 Analog Input Figure 4-19. AI Convert Clock Too Fast For AI Sample Clock; AI Convert Clock Pulses Are Gated Off AI Sample Clock AI Convert Clock 1 2 3 1 2 3 1 2 3 Channel Measured Sample #1 Sample #2 Sample #3 Figure 4-20.
Chapter 4 Analog Input The source also can be one of several other internal signals on your DAQ device. Refer to Device Routing in MAX in the NI-DAQmx Help or the LabVIEW Help for more information. You also can specify whether the measurement acquisition begins on the rising edge or falling edge of AI Start Trigger.
Chapter 4 Analog Input Using a Digital Source To use AI Pause Trigger, specify a source and a polarity. The source can be any of the following signals: • PFI <0..15> • RTSI <0..7> • PXI_STAR The source also can be one of several other internal signals on your DAQ device. Refer to Device Routing in MAX in the NI-DAQmx Help or the LabVIEW Help for more information.
Chapter 5 Analog Output AO Offset and AO Reference Selection AO offset and AO reference selection allow you to set the AO range. The AO range describes the set of voltages the device can generate. The digital codes of the DAC are spread evenly across the AO range.
Chapter 5 Analog Output Hardware-Timed Generations With a hardware-timed generation, a digital hardware signal controls the rate of the generation. This signal can be generated internally on your device or provided externally. Hardware-timed generations have several advantages over software-timed acquisitions: •...
Chapter 5 Analog Output Analog Output Timing Signals Figure 5-3 summarizes all of the timing options provided by the analog output timing engine. Figure 5-3. Analog Output Timing Options PFI, RTSI PFI, RTSI PXI_STAR AO Sample Clock PXI_STAR Analog Comparison Event Analog Comparison Ctr n Internal Output Event...
Chapter 5 Analog Output Using a Digital Source To use AO Pause Trigger, specify a source and a polarity. The source can be one of the following signals: • PFI <0..15> • RTSI <0..7> • PXI_STAR The source also can be one of several other internal signals on your DAQ device. Refer to Device Routing in MAX in the NI-DAQmx Help or the LabVIEW Help for more information.
Chapter 5 Analog Output You might use AO Sample Clock Timebase if you want to use an external sample clock signal, but need to divide the signal down. If you want to use an external sample clock signal, but do not need to divide the signal, then you should use AO Sample Clock rather than AO Sample Clock Timebase.
Chapter 6 Digital I/O The voltage input and output levels and the current drive levels of the DIO lines are listed in the specifications of your device. Static DIO Each of the M Series DIO lines can be used as a static DI or DO line. You can use static DIO lines to monitor or control digital signals.
Chapter 6 Digital I/O Using an External Source You can route any of the following signals as DI Sample Clock: • PFI <0..15> • RTSI <0..7> • PXI_STAR • Analog Comparison Event (an analog trigger) You can sample data on the rising or falling edge of DI Sample Clock. Routing DI Sample Clock to an Output Terminal You can route DI Sample Clock out to any PFI terminal.
Chapter 6 Digital I/O • If you configure a PFI or DIO line as an input, do not drive the line with voltages outside of its normal operating range. The PFI or DIO lines have a smaller operating range than the AI signals.
Chapter 6 Digital I/O DI Change Detection Applications The DIO change detection circuitry can interrupt a user program when one of several DIO signals changes state. You also can use the output of the DIO change detection circuitry to trigger a DI or counter acquisition on the logical OR of several digital signals.
Chapter 7 Counters Frequency Measurement • Position Measurement • Two-Signal Edge-Separation Measurement • Counting Edges In edge counting applications, the counter counts edges on its Source after the counter is armed. You can configure the counter to count rising or falling edges on its Source input. You also can Controlling the Direction of control the direction of counting (up or down) as described in the Counting...
Chapter 7 Counters You can calculate the pulse width by multiplying the period of the Source signal by the number of edges returned by the counter. A pulse-width measurement will be accurate even if the counter is armed while a pulse train is in progress.
Chapter 7 Counters Figure 7-7 shows an example of a single period measurement. Figure 7-7. Single Period Measurement GATE SOURCE Counter Value HW Save Register Buffered Period Measurement Buffered period measurement is similar to single period measurement, but buffered period measurement measures multiple periods.
Chapter 7 Counters Note that if you are using an external signal as the Source, at least one Source pulse should occur between each active edge of the Gate signal. This condition ensures that correct values are returned by the counter. If this condition is not met, consider using duplicate count prevention, Duplicate Count Prevention described in the section.
Chapter 7 Counters Figure 7-12 illustrates this method. Another option is to measure the width of a known period instead of a known pulse. Figure 7-12. High Frequency with Two Counters Width of Pulse (T) Pulse Pulse Gate … Source Pulse-Width Width of Measurement...
Page 109
Chapter 7 Counters Table 7-1. Frequency Measurement Methods One Counter Two Counters High Variable — Averaged Frequency Large Range Known Known timebase Known timebase ------------------------------- timebase gating period --- - ------------ - --- - gating period Maximum × -------------- - ×...
Chapter 7 Counters bandwidth; if such bandwidth is not available due to other measurements taking place, this method may fail to transfer all the required samples to perform the measurement. • Using two counters for high frequency measurements is accurate for high frequency signals.
Chapter 7 Counters Channel Z Behavior Some quadrature encoders have a third channel, channel Z, which is also referred to as the index channel. A high level on channel Z causes the counter to be reloaded with a specified value in a specified phase of the quadrature cycle.
Chapter 7 Counters Refer to the following sections for more information about the M Series edge-separation measurement options: Single Two-Signal Edge-Separation Measurement • Buffered Two-Signal Edge-Separation Measurement • Single Two-Signal Edge-Separation Measurement With single two-signal edge-separation measurement, the counter counts the number of rising (or falling) edges on the Source input occurring between an active edge of the Gate signal and an active edge of the Aux signal.
Chapter 7 Counters Single Pulse Generation with Start Trigger The counter can output a single pulse in response to one pulse on a hardware Start Trigger signal. The pulse appears on the Counter n Internal Output signal of the counter. You can route the Start Trigger signal to the Gate input of the counter.
Chapter 7 Counters Finite Pulse Train Generation This function generates a train of pulses of predetermined duration. This counter operation requires both counters. The first counter (for this example, Counter 0) generates a pulse of desired width. The second counter, Counter 1, generates the pulse train, which is gated by the pulse of the first counter.
Chapter 7 Counters The waveform thus produced at the counter’s output can be used to provide timing for undersampling applications where a digitizing system can sample repetitive waveforms that are higher in frequency than the Nyquist frequency of the system. Figure 7-29 shows an example of pulse generation for ETS;...
Chapter 7 Counters Routing a Signal to Counter n Gate Each counter has independent input selectors for the Counter n Gate signal. Any of the following signals can be routed to the Counter n Gate input: • RTSI <0..7> • PFI <0..15>...
Chapter 7 Counters • AI Reference Trigger (ai/ReferenceTrigger) • AI Start Trigger (ai/StartTrigger) • PXI_STAR • Analog Comparison Event Counter 1 Internal Output can be routed to Counter 0 HW Arm. Counter 0 Internal Output can be routed to Counter 1 HW Arm. Some of these options may not be available in some driver software.
Chapter 7 Counters For counter output operations, you can use it in addition to the start and pause triggers. For counter input operations, you can use the arm start trigger to have start trigger-like behavior. The arm start trigger can be used for synchronizing multiple counter input and output tasks.
Chapter 7 Counters Prescaling Prescaling allows the counter to count a signal that is faster than the maximum timebase of the counter. M Series devices offer 8X and 2X prescaling on each counter (prescaling can be disabled). Each prescaler consists of a small, simple counter that counts to eight (or two) and rolls over.
Chapter 7 Counters Example Application That Prevents Duplicate Count With duplicate count prevention enabled, the counter synchronizes both the Source and Gate signals to the 80 MHz Timebase. By synchronizing to the timebase, the counter detects edges on the Gate even if the Source does not pulse. This enables the correct current count to be stored in the buffer even if no Source edges occur between Gate signals, as shown in Figure 7-34.
Chapter 7 Counters 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 rising edge of the source, as shown in Figure 7-35. Figure 7-35. 80 MHz Source Mode Source Synchronize Count...
Chapter 8 The voltage input and output levels and the current drive levels of the PFI signals are listed in the specifications of your device. Using PFI Terminals as Timing Input Signals Use PFI terminals to route external timing signals to many different M Series functions. Each PFI terminal can be routed to any of the following signals: •...
Chapter 8 PFI Filters You can enable a programmable debouncing filter on each PFI, RTSI, or PXI_STAR signal. When the filters are enabled, your device samples the input on each rising edge of a filter clock. M Series devices use an onboard oscillator to generate the filter clock with a 40 MHz frequency. NI-DAQmx only supports filters on counter inputs.
Chapter 9 Digital Routing and Clock Generation 80 MHz Timebase The 80 MHz Timebase can be used as the Source input to the 32-bit general-purpose counter/timers. The 80 MHz Timebase is generated from the following sources: • Onboard oscillator • External signal (by using the external reference clock) 20 MHz Timebase The 20 MHz Timebase normally generates many of the AI and AO timing signals.
Use a common clock (or timebase) to drive the timing engine on multiple devices • Share trigger signals between devices Many National Instruments DAQ, Motion, Vision, and CAN devices support RTSI. RTSI is not supported on USB devices. Note In a PCI/PCI Express system, the RTSI bus consists of the RTSI bus interface and a ribbon cable.
Chapter 9 Digital Routing and Clock Generation Using RTSI Terminals as Timing Input Signals You can use RTSI terminals to route external timing signals to many different M Series functions. Each RTSI terminal can be routed to any of the following signals: •...
Chapter 9 Digital Routing and Clock Generation PXI Clock and Trigger Signals PXI clock and trigger signals are only available on PXI/PXI Express devices. PXI_CLK10 PXI_CLK10 is a common low-skew 10 MHz reference clock for synchronization of multiple modules in a PXI measurement or control system. The PXI backplane is responsible for generating PXI_CLK10 independently to each peripheral slot in a PXI chassis.
Chapter 10 Bus Interface – Counter 1 – Digital waveform generation (digital output) – Digital waveform acquisition (digital input) Each DMA controller channel contains a FIFO and independent processes for filling and emptying the FIFO. This allows the buses involved in the transfer to operate independently for maximum performance.
Chapter 10 Bus Interface Hybrid slot-compatible defines where the device can be installed. PXI M Series devices can be installed in the following chassis and slots: PXI chassis—PXI M Series devices can be installed in any peripheral slot of a PXI chassis. •...
Chapter 11 Triggering Triggering with an Analog Source Some M Series devices can generate a trigger on an analog signal. To find your device triggering options, refer to the specifications document for your device. Figure 11-2 shows the analog trigger circuit. Figure 11-2.
Page 155
Chapter 11 Triggering In above-level analog triggering mode, shown in Figure 11-4, the trigger is generated when the signal value is greater than Level. Figure 11-4. Above-Level Analog Triggering Mode Level Analog Comparison Event Analog Edge Triggering with Hysteresis—Hysteresis adds a programmable voltage •...
Chapter 11 Triggering Analog Trigger Accuracy The analog trigger circuitry compares the voltage of the trigger source to the output of programmable trigger DACs. When you configure the level (or the high and low limits in window trigger mode), the device adjusts the output of the trigger DACs. Refer to the specifications document for your device to find the accuracy or resolution of these DACs, which also shows the accuracy or resolution of analog triggers.
Appendix A Module/Device-Specific Information NI 6220 PCI/PXI-6220 Pinout Figure A-1 shows the pinout of the PCI/PXI-6220. Figure A-1. PCI/PXI-6220 Pinout 68 34 AI 0 (AI 0+) AI 8 (AI 0-) 67 33 AI GND AI 1 (AI 1+) 66 32 AI 9 (AI 1-) AI GND 65 31...
Page 161
Appendix A Module/Device-Specific Information NI 6221 (68-Pin) The following sections contain information about the PCI/PXI-6221, USB-6221 Screw Terminal, and USB-6221 BNC. PCI/PXI-6221 PCI/PXI-6221 Pinout Figure A-2 shows the pinout of the PCI/PXI-6221. A-4 | ni.com...
Page 219
Appendix A Module/Device-Specific Information Table A-30. Default NI-DAQmx Counter/Timer Pins (Continued) Counter/Timer Signal Default Connector 0 Pin Number (Name) CTR 0 OUT 2 (PFI 12) CTR 0 A 37 (PFI 8) CTR 0 Z 3 (PFI 9) CTR 0 B 45 (PFI 10) CTR 1 SRC 42 (PFI 3)
Page 220
USB-6289 Screw Terminal, and USB-6289 Mass Termination. PCI/PXI-6289 PCI/PXI-6289 Pinout Figure A-31 shows the pinout of the PCI/PXI-6289. The I/O signals appear on two 68-pin connectors. Figure A-31. PCI/PXI-6289 Pinout AI 0 (AI 0+) 68 34 AI 8 (AI 0–) P0.30...
Page 221
For more information about default NI-DAQmx counter inputs, refer to Connecting Counter Signals in the NI-DAQmx Help or the LabVIEW Help. PCI/PXI-6289 Important Links The following list contains links specific to your DAQ device: Specifications—Refer to the NI 6289 Specifications for more detailed information about •...
Page 227
Appendix B Timing Diagrams Figure B-1. M Series Analog Input Timing Engine POUT Selected Reference Trigger Reference Trigger Terminal Terminal POUT Start Trigger Terminal Terminal Selected Start Trigger POUT RTSI Selected Pause Trigger Terminal Pause Trigger SI Start (and Other Counters, Terminal and Such of Timer Core) Sample Clock Timebase...
Page 241
Appendix B Timing Diagrams Table B-8. Sample Clock Timing Time Description Line Min (ns) Max (ns) Delay to Selected Sample Clock RTSI STAR Selected Sample Clock Setup time — — (to Sync Convert Clock Timebase) Selected Sample Clock Hold time —...
Page 243
Appendix B Timing Diagrams Table B-10. Pause Trigger Timing Time Description Line Min (ns) Max (ns) _i to Selected Gate RTSI STAR Selected Pause Trigger Setup Time — — (to Sync Convert Clock Timebase) Hold (Sync Convert Clock Timebase) — —...
Page 245
Appendix B Timing Diagrams Analog Output Timing Diagrams The analog output timing can be broken into the following three sections: Input Timing—The timing for external signals to enter the M Series device and be available • on the internal signal buses. Internal Analog Output Timing—The timing specifications of the analog output unit itself, •...
Page 247
Appendix B Timing Diagrams Internal Analog Output Timing The analog output timer has two internal clocks that are referenced—Sample Clock Timebase and Sync Sample Clock Timebase. How they are generated depends on how the analog output timer is configured. If the analog output timing engine is configured to operate with an external Sample Clock, analog output internal clock timing can be derived from Table B-13.
Page 253
Appendix B Timing Diagrams Digital I/O Timing Diagrams This section describes the timing delays and requirements of digital waveform acquisitions and digital waveform generations. Digital Waveform Acquisition Timing To describe digital waveform acquisition timing delays and requirements, refer to the circuitry shown in Figure B-37.
Page 255
Appendix B Timing Diagrams Digital Waveform Generation Timing To describe digital waveform generation timing delays and requirements, we model the circuitry as shown in Figure B-39. In the figure, P0, PFI, RTSI, and PXI_STAR represent signals at connector pins of the M Series device. The other named signals represent internal signals. Figure B-39.
Page 261
Appendix B Timing Diagrams Table B-30. Counter n Source Timing (Continued) Synchronization Time Description Mode Min (ns) Max (ns) Counter n Source Pulse 80 MHz Source — Width Other Internal 12.5 — Source External Source 16.0 — The times in this table are measured at the pin of the M Series device. For example, t specifies the minimum period of a signal driving a PFI, RTSI, or PXI_STAR pin when that signal is internally routed to Counter n Source.
Page 263
Appendix B Timing Diagrams Example of the General Case Calculate the setup and hold time requirements when the Gate and Source come from PFI lines and the Gate is used in level mode. Note This example shows how we determine the setup and hold times for the PFI to PFI example above (first case) using level gating.
Page 265
Appendix B Timing Diagrams Quadrature and Two Pulse Encoder Timing Counter n A, Counter n B, and Counter n Z, described in the Counter n A, Counter n B, and Counter n Z Signals section of Chapter 7, Counters, are used in position measurements using quadrature encoder or two-pulse encoder counting modes.
Page 267
Appendix B Timing Diagrams Table B-37 shows delays for generating different clocks using an External Reference Clock and the PLL. Figure B-53. Generating Different Clocks Using an External Reference Clock and the PLL RTSI <0..7> STAR_TRIG PXI_CLK10 (Reference Clock) 80 MHz Timebase (PLL) 20 MHz Timebase (PLL) Table B-37.
Page 268
Troubleshooting This section contains common questions about M Series devices. If your questions are not answered here, refer to the National Instruments KnowledgeBase at ni.com/kb Analog Input I am seeing crosstalk, or ghost voltages, when sampling multiple channels. What does this...
Page 269
Appendix C Troubleshooting How can I use the AI Sample Clock and AI Convert Clock signals on an M Series device to sample the AI channel(s)? M Series devices use AI Sample Clock (ai/SampleClock) and AI Convert Clock (ai/ConvertClock) to perform interval sampling. As Figure C-1 shows, AI Sample Clock controls the sample period, which is determined by the following equation: 1/sample period = sample rate Figure C-1.
Page 272
Appendix D Upgrading from E Series to M Series Table D-1. M Series and E Series Device Pinout Comparison M Series E Series Signal Signal Differences FREQ OUT PFI 14/P2.6 E Series devices drive each of these terminals with one particular internal timing signal.
Page 273
On E Series devices, this is one of the D GND terminals. On M Series devices, this is the PFI 15/P2.7 terminal. In NI-DAQmx, National Instruments has revised terminal names so they are easier to understand and more consistent among National Instruments hardware and software products. This column shows the NI-DAQmx terminal names (Traditional NI-DAQ (Legacy) terminal names are shown in parentheses).
Page 274
Appendix D Upgrading from E Series to M Series More Information about Upgrading to M Series The following documents will help you overcome typical hurdles in upgrading from E Series to M Series devices: Major Differences Between E Series and M Series DAQ Devices KnowledgeBase lists the •...
Page 276
The NI-DAQmx Base C Reference Help contains C reference and general information about measurement concepts. Note All NI-DAQmx Base documentation for Linux is installed at /usr/local/natinst/nidaqmxbase/documentation Note All NI-DAQmx Base documentation for Mac OS X is installed at /Applications/National Instruments/NI-DAQmx Base/ documentation E-2 | ni.com...
Page 278
Select Start»All Programs»National Instruments»NI-DAQmx» NI-DAQmx Help. The NI-DAQmx C Reference Help describes the NI-DAQmx Library functions, which you can use with National Instruments data acquisition devices to develop instrumentation, acquisition, and control applications. Select Start»All Programs»National Instruments»NI-DAQmx» Text-Based Code Support»NI-DAQmx C Reference Help.
Page 281
Appendix F NI Services Training and Certification—The NI training and certification program is the most • effective way to increase application development proficiency and productivity. Visit for more information. ni.com/training – The Skills Guide assists you in identifying the proficiency requirements of your current application and gives you options for obtaining those skills consistent with your time and budget constraints and personal learning preferences.
Page 283
Index trigger actions, 11-3 getting started with applications in trigger types, 11-3 software, 5-10 triggering, 11-2 glitches on the output signal, 5-3 analog edge triggering offset, 5-2 with hysteresis, 11-4 reference selection, 5-2 analog input, 4-1 signals, 5-6 channels, 11-2 AO Pause Trigger, 5-7 charge injection, C-1 AO Sample Clock, 5-8...
Page 293
Index PXI-6220, A-2 RSE connections PXI-6221, A-4 using with floating signal sources, 4-17 PXI-6224, A-13 when to use with floating signal PXI-6225, A-15 sources, 4-13 PXI-6229, A-21 when to use with ground-referenced PXI-6250, A-27 signal sources, 4-19 PXI-6251, A-29 RTSI, 9-4 PXI-6254, A-37 connector pinout, 3-7, 9-4 PXI-6255, A-39...
Need help?
Do you have a question about the PXI-6289 and is the answer not in the manual?
Questions and answers