Summary of Contents for National Instruments NI cDAQTM-9138
Page 1
NI cDAQ -9138/9139 User Manual NI CompactDAQ cDAQ-9138/9139 Eight-Slot Stand-Alone Chassis with Integrated Controller NI cDAQ-9138/9139 User Manual June 2014 371042C-01...
Page 2
11500 North Mopac Expressway Austin, Texas 78759-3504 USA Tel: 512 683 0100 For further support information, refer to the NI Services appendix. To comment on National Instruments documentation, refer to the National Instruments Web site at ni.com/info enter the Info Code feedback...
Page 3
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 4
™ 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 6
Contents Chapter 2 Analog Input Analog Input Triggering Signals ..................2-1 Analog Input Timing Signals.................... 2-1 AI Sample Clock Signal ...................2-2 Routing the Sample Clock to an Output Terminal ........... 2-2 AI Sample Clock Timebase Signal ................2-2 AI Convert Clock Signal Behavior For Analog Input Modules ....... 2-2 Scanned Modules....................
Page 8
Contents Semi-Period Measurement..................5-8 Single Semi-Period Measurement ..............5-9 Implicit Buffered Semi-Period Measurement...........5-9 Pulse versus Semi-Period Measurements ............5-10 Frequency Measurement...................5-10 Low Frequency with One Counter..............5-11 High Frequency with Two Counters..............5-12 Large Range of Frequencies with Two Counters ..........5-13 Sample Clocked Buffered Frequency Measurement ........
Chassis The National Instruments CompactDAQ cDAQ-9138 stand-alone chassis with integrated controller features the 1.06 GHz Celeron processor. The National Instruments CompactDAQ cDAQ-9139 stand-alone chassis with integrated controller features the 1.33 GHz Intel Core i7 processor. The NI cDAQ-9138 and NI cDAQ-9139 are available as a Windows Embedded Standard 7 (WES7) or a LabVIEW Real-Time system.
Product misuse can result in a hazard. You can compromise the safety protection built into the product if the product is damaged in any way. If the product is damaged, return it to National Instruments for repair. Because some C Series I/O modules may have more stringent certification...
Furthermore, any modifications to the product not expressly approved by National Instruments could void your authority to operate it under your local regulatory rules.
Return Material Authorization (RMA) process or contact an Cd/Hg/Pb authorized National Instruments service representative. For more information about compliance with the EU Battery Directive 2006/66/EC about Batteries and Accumulators and Waste Batteries and Accumulators, visit ni.com/...
Page 15
The NI-DAQmx driver software preloaded onto your cDAQ chassis is available for download . The documentation for NI-DAQmx is available from Start»All ni.com/support Programs»National Instruments»NI-DAQ. Other NI documentation is available from ni.com/manuals Refer to Figure 1-1 while completing the following assembly steps.
Page 17
Chapter 1 Getting Started with the cDAQ Chassis Wire your external power source as outlined in the Wiring Power to the cDAQ Chassis section. The cDAQ chassis requires an external power supply that meets the specifications listed in the specifications document for your cDAQ chassis. 10.
The NI-DAQmx driver software is included on the disk shipped with your kit and is available for download at . The documentation for NI-DAQmx is available after ni.com/support installation from Start»All Programs»National Instruments»NI-DAQ. Other NI documentation is available from ni.com/manuals Power on the host computer and connect it to an Ethernet network.
Page 19
Chapter 1 Getting Started with the cDAQ Chassis If you use shielded cabling to connect to a C Series I/O module with a plastic Note connector, you must attach the cable shield to the chassis grounding terminal using 1.31 mm (16 AWG) or larger wire.
Chapter 1 Getting Started with the cDAQ Chassis 23. Run a Test Panel in MAX by expanding NI-cDAQ<model number>-<serial number>» Devices and Interfaces»NI cDAQ-<model number>, right-clicking your C Series module, and selecting Test Panels to open a test panel for the selected module. If the test panel displays an error message, refer to ni.com/support New users can view and use the Voltage - Continuous Input VI, available in the...
Page 23
Chapter 1 Getting Started with the cDAQ Chassis Figure 1-8. Power Screw Terminal Connector Plug Connector Screws Terminal Screw Do not tighten or loosen the terminal screws on the power connector while Caution the power is on. Connect the positive lead of the primary power source to the V1 terminal of the power connector plug and tighten the terminal screw to 0.5 N ·...
Page 25
Chapter 1 Getting Started with the cDAQ Chassis Figure 1-10. NI cDAQ-9138/9139 Temperature, Cooling, and Cabling Dimensions Cooling Outline 50.8 mm (2.00 in.) 88.1 mm (3.47 in.) Cooling Outline 50.8 mm (2.00 in.) Cabling Clearance 50.8 mm (2.00 in.) 50.8 mm 29.2 mm (2.00 in.) (1.15 in.)
Page 27
Chapter 1 Getting Started with the cDAQ Chassis Figure 1-12 shows the dimensions of a chassis after the desktop mounting kit is installed. Figure 1-12. Dimensions of the cDAQ Chassis with Desktop Mounting Kit Installed 28.2 mm 28.1 mm (1.11 in.) (1.11 in.) NI cDAQ-9139 NI CompactDAQ...
Fasten the mounting plate to the chassis using a number 2 Phillips screwdriver and six M4 × 10 screws. National Instruments provides these screws with the panel mount kit. Tighten the screws to a maximum torque of 1.3 N · m (11.5 lb · in.).
Fasten the DIN rail clip to the chassis using a number 2 Phillips screwdriver and three M4 × 10 screws. National Instruments provides these screws with the DIN rail mount kit. Tighten the screws to a maximum torque of 1.3 N · m (11.5 lb · in.). Make sure the DIN rail kit is installed as shown in Figure 1-16, with the larger lip of the DIN clip positioned 1-20 | ni.com...
Chapter 1 Getting Started with the cDAQ Chassis NI cDAQ Chassis Features The cDAQ chassis features many ports, DIP switches, LEDs, a RESET button, and a power button. Refer to Figure 1-1 for the locations of these features on the cDAQ chassis. Video (VGA) Port The cDAQ chassis video (VGA) port, shown in Figure 1-1, outputs graphics using VESA standard VGA analog signaling.
Chapter 1 Getting Started with the cDAQ Chassis Figure 1-18. Ethernet Port Pin Locations: Fast Ethernet Signals (Gigabit Ethernet Signals) 1 TX+ (TX_A+) 2 TX– (TX_A–) 3 RX+ (RX_B+) 4 No Connect (TX_C+) 5 No Connect (TX_C–) 6 RX– (RX_B–) 7 No Connect (RX_D+) 8 No Connect (RX_D–) Both Ethernet ports perform automatic crossover configuration so you do not...
Chapter 1 Getting Started with the cDAQ Chassis Table 1-6. Ethernet Cable Wiring Connections (Continued) Connector 2 Connector 1 Straight Through Crossover green green orange white/brown white/brown white/brown brown brown brown Connector 1 Connector 2 Pin 1 Pin 8 Pin 1 Pin 8 RS-232 Serial Port The cDAQ chassis has an RS-232 serial port, shown in Figure 1-1, to which you can connect...
Chapter 1 Getting Started with the cDAQ Chassis Power on the MXI-Express device. Power on the cDAQ chassis. The MXI-Express port has one LINK LED. Refer to Table 1-8 for information about the MXI-Express LINK LED behavior. Do not connect MXI-Express devices to the cDAQ chassis while the chassis Note is powered on.
Page 39
Chapter 1 Getting Started with the cDAQ Chassis Table 1-7. DIP Switches (Continued) Switch Description CONSOLE The position of the (NI cDAQ-9138/9139 for LabVIEW Real-Time) CONSOLE OUT switch determines whether console input and output are redirected to the RS-232 serial port. If the switch is in the ON position, console input and output are redirected to the RS-232 serial port.
Chapter 1 Getting Started with the cDAQ Chassis LEDs The cDAQ chassis features four LEDs—POWER, DRIVE, STATUS, and USER1—on its front panel, two LEDs—ACT/LINK and 10/100/1000—near each Ethernet connector, and one LINK LED near the MXI-Express port. Refer to Figure 1-1 for the locations of the LEDs. Table 1-8 lists the LEDs and status indications.
Page 42
Modify the VI as necessary to solve the memory usage issue. Continuously Software error—The chassis has detected an flashing unrecoverable error. Contact National Instruments. Continuously Software error—The device may be configured for flashing or DHCP but unable to get an IP address because of a solid problem with the DHCP server.
Check front-panel I/O, CXM, and C Series module connections for shorts. Remove any shorts and power cycle the controller. If the problem persists, contact National Instruments. Solid Hardware error—The cDAQ chassis internal temperature has exceeded a critical threshold.
Page 45
Chapter 1 Getting Started with the cDAQ Chassis Table 1-9. Cables and Accessories (Continued) Accessory Part Number CAT-5E Ethernet cable, shielded (2, 5, and 10 m lengths) 151733-02, 151733-05, 151733-10 Industrial USB extension with retention cable (0.5 and 2 m 152166-xx lengths) DIN rail-mountable screw terminal adapter...
MXI Express C Series I/O Module National Instruments C Series I/O modules provide built-in signal conditioning and screw terminal, spring terminal, BNC, D-SUB, or RJ-50 connectors. A wide variety of I/O types are available, allowing you to customize the cDAQ chassis to meet your application needs.
Chapter 1 Getting Started with the cDAQ Chassis cDAQ Module Interface The cDAQ module interface manages data transfers between the STC3 and the C Series I/O modules. The interface also handles autodetection, signal routing, and synchronization. STC3 The STC3 features independent high-speed data streams; flexible AI, AO, and DIO sample timing;...
Chapter 2 Analog Input • AI Reference Trigger Signal* • AI Pause Trigger Signal* Signals with an * support digital filtering. Refer to the PFI Filters section of Chapter 4, Digital Input/Output and PFI, for more information. Refer to the AI Convert Clock Signal Behavior For Analog Input Modules section for AI Convert Clock signals and the cDAQ chassis.
Chapter 2 Analog Input filtering used in sigma-delta A/D converters, these modules usually exhibit a fixed input delay relative to non-sigma-delta modules in the system. This input delay is specified in the C Series I/O module documentation. Slow Sample Rate Modules Some C Series analog input modules are specifically designed for measuring signals that vary slowly, such as temperature.
Chapter 2 Analog Input When the reference trigger occurs, the cDAQ chassis continues to write samples to the buffer until the buffer contains the number of posttrigger samples desired. Figure 2-3 shows the final buffer. Figure 2-3. Reference Trigger Final Buffer Reference Trigger Pretrigger Samples Posttrigger Samples...
Chapter 3 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 the chassis or provided externally. Hardware-timed generations have several advantages over software-timed acquisitions: •...
Chapter 3 Analog Output Routing AO Sample Clock to an Output Terminal You can route AO Sample Clock to any output PFI terminal. AO Sample Clock is active high by default. AO Sample Clock Timebase Signal The AO Sample Clock Timebase (ao/SampleClockTimebase) signal is divided down to provide a source for AO Sample Clock.
Chapter 3 Analog Output When you use an analog trigger source, the samples are paused when the Analog Comparison Event signal is at a high or low level, depending on the trigger properties. The analog trigger circuit must be configured by a simultaneously running analog input task. Depending on the C Series I/O module capabilities, you may need Note two modules to utilize analog triggering.
Chapter 4 Digital Input/Output and PFI individually configured as a digital input (DI) or digital output (DO), if the C Series I/O module being used allows such configuration. All samples of static DI lines and updates of static DO lines are software-timed. Digital Input You can acquire digital waveforms using either parallel or serial digital modules.
Page 65
Chapter 4 Digital Input/Output and PFI Routing DI Sample Clock to an Output Terminal You can route DI Sample Clock to any output PFI terminal. The PFI circuitry inverts the polarity of DI Sample Clock before driving the PFI terminal. DI Start Trigger Signal Use the DI Start Trigger (di/StartTrigger) signal to begin a measurement acquisition.
Chapter 4 Digital Input/Output and PFI Routing DI Reference Trigger Signal to an Output Terminal You can route DI Reference Trigger to any output PFI terminal. Reference Trigger is active high by default. DI Pause Trigger Signal You can use the DI Pause Trigger (di/PauseTrigger) signal to pause and resume a measurement acquisition.
Chapter 4 Digital Input/Output and PFI Digital Output To generate digital output, insert a digital output C Series I/O module in any slot on the cDAQ chassis. The generation specifications, such as the number of channels, channel configuration, update rate, and output range, are determined by the type of C Series I/O module used. For more information, refer to the documentation included with your C Series I/O module(s).
Chapter 4 Digital Input/Output and PFI Digital Output Timing Signals The cDAQ chassis features the following DO timing signals: • DO Sample Clock Signal* • DO Sample Clock Timebase Signal • DO Start Trigger Signal* • DO Pause Trigger Signal* Signals with an * support digital filtering.
Chapter 4 Digital Input/Output and PFI If you are using any signal other than the onboard clock as the source of the sample clock, the generation resumes as soon as the pause trigger is deasserted and another edge of the sample clock is received, as shown in Figure 4-6.
Page 75
Chapter 4 Digital Input/Output and PFI Table 4-1. Selectable PFI Filter Settings (Continued) Min Pulse Filter Width Max Pulse Width Setting Filter Clock Jitter Pass to Not Pass Custom User-configurable 1 Filter - (1 Filter Clock user user Clock period) period Pulse widths are nominal values;...
Chapter 5 Counters Counter Timing Engine Unlike analog input, analog output, digital input, and digital output, the cDAQ chassis counters do not have the ability to divide down a timebase to produce an internal counter sample clock. For sample clocked operations, an external signal must be provided to supply a clock source. The source can be any of the following signals: •...
Chapter 5 Counters You also can use a pause trigger to pause (or gate) the counter. When the pause trigger is active, the counter ignores edges on its Source input. When the pause trigger is inactive, the counter counts edges normally. You can route the pause trigger to the Gate input of the counter.
Chapter 5 Counters Implicit Buffered Pulse-Width Measurement An implicit buffered pulse-width measurement is similar to single pulse-width measurement, but buffered pulse-width measurement takes measurements over multiple pulses. The counter counts the number of edges on the Source input while the Gate input remains active. On each trailing edge of the Gate signal, the counter stores the count in the counter FIFO.
Chapter 5 Counters Figure 5-9 shows an example of an implicit buffered pulse measurement. Figure 5-9. Implicit Buffered Pulse Measurement Counter Armed Gate Source Buffer Sample Clocked Buffered Pulse Measurement A sample clocked buffered pulse measurement is similar to single pulse measurement, but a buffered pulse measurement takes measurements over multiple pulses correlated to a sample clock.
Chapter 5 Counters Pulse versus Semi-Period Measurements In hardware, pulse measurement and semi-period are the same measurement. Both measure the high and low times of a pulse. The functional difference between the two measurements is how the data is returned. In a semi-period measurement, each high or low time is considered one point of data and returned in units of seconds or ticks.
Chapter 5 Counters High Frequency with Two Counters For high frequency measurements with two counters, you measure one pulse of a known width using your signal and derive the frequency of your signal from the result. Counter 0 is always paired with Counter 1. Counter 2 is always paired with Note Counter 3.
Chapter 5 Counters Sample Clocked Buffered Frequency Measurement Sample clocked buffered point frequency measurements can either be a single frequency measurement or an average between sample clocks. Use CI.Freq.EnableAveraging to set the behavior. For buffered frequency, the default is True. A sample clocked buffered frequency measurement with CI.Freq.EnableAveraging set to True uses the embedded counter and a sample clock to perform a frequency measurement.
Chapter 5 Counters Table 5-2. Frequency Measurement Methods Two Counter High Variable Sample Clocked One Counter Frequency Large Range Known timebase Known Known timebase timebase ------------------------------- gating period Measurement gating period time --- - --- - --- - Max. × ------------------------------ - ×...
Chapter 5 Counters must be at least twice the sample clock rate to ensure that a full period of the frequency to be measured occurs between sample clocks. • Low frequency measurements with one counter is a good method for many applications. However, the accuracy of the measurement decreases as the frequency increases.
Chapter 5 Counters Figure 5-18. X2 Encoding Ch A Ch B Counter Value 5 • X4 Encoding—Similarly, the counter increments or decrements on each edge of channels A and B for X4 encoding. Whether the counter increments or decrements depends on which channel leads the other.
Chapter 5 Counters Figure 5-22. Buffered Position Measurement Counter Armed Sample Clock (Sample on Rising Edge) Ch A Ch B Count Buffer Two-Signal Edge-Separation Measurement Two-signal edge-separation measurement is similar to pulse-width measurement, except that there are two measurement signals—Aux and Gate. An active edge on the Aux input starts the counting and an active edge on the Gate input stops the counting.
Chapter 5 Counters Figure 5-25. Sample Clocked Buffered Two-Signal Separation Measurement Sample Clock GATE SOURCE Counter Value Buffer If an active edge on the Gate and an active edge on the Aux does not occur Note between sample clocks, an overrun error occurs. For information about connecting counter signals, refer to the Default Counter/Timer Routing section.
Chapter 5 Counters • Continuous Buffered Implicit Pulse Train Generation • Finite Buffered Sample Clocked Pulse Train Generation • Continuous Buffered Sample Clocked Pulse Train Generation Finite Pulse Train Generation This function generates a train of pulses with programmable frequency and duty cycle for a predetermined number of pulses.
Chapter 5 Counters Figure 5-31 shows a continuous pulse train generation (using the rising edge of Source). Figure 5-31. Continuous Pulse Train Generation SOURCE Counter Armed Continuous pulse train generation is sometimes called frequency division. If the high and low pulse widths of the output signal are M and N periods, then the frequency of the Counter n Internal Output signal is equal to the frequency of the Source input divided by M + N.
Chapter 5 Counters For information about connecting counter signals, refer to the Default Counter/Timer Routing section. Frequency Division The counters can generate a signal with a frequency that is a fraction of an input signal. This function is equivalent to continuous pulse train generation. Refer to the Continuous Pulse Train Generation section for detailed information.
Chapter 5 Counters Table 5-8. Counter Applications and Counter n Source (Continued) Application Purpose of Source Terminal Buffered Edge Counting Input Terminal Two-Edge Separation Counter Timebase Routing a Signal to Counter n Source Each counter has independent input selectors for the Counter n Source signal. Any of the following signals can be routed to the Counter n Source input: •...
Chapter 5 Counters Routing Counter n Z Signal to an Output Terminal You can route Counter n Z out to any PFI terminal. Counter n Up_Down Signal Counter n Up_Down is another name for the Counter n B signal. Counter n HW Arm Signal The Counter n HW Arm signal enables a counter to begin an input or output function.
Chapter 5 Counters Routing Frequency Output to a Terminal You can route Frequency Output to any PFI terminal. Default Counter/Timer Routing Counter/timer signals are available to parallel digital I/O C Series modules. To determine the signal routing options for modules installed in your system, refer to the Device Routes tab in MAX.
Chapter 5 Counters 80 MHz Source Mode In 80 MHz source mode, the chassis synchronizes signals on the rising edge of the source, and counts on the third rising edge of the source. Edges are pipelined so no counts are lost, as shown in Figure 5-38.
Chapter 6 Digital Routing and Clock Generation 80 MHz Timebase You can use the 80 MHz Timebase as the Source input to the 32-bit general-purpose counter/timers. 20 MHz Timebase The 20 MHz Timebase normally generates many of the AI and AO timing signals. It can function as the Source input to the 32-bit general-purpose counter/timers.
Page 119
Appendix A Controller Operating System and Configuration • Warning: Recovering from CPU Overtemp—This warning indicates that the thermal protection features of the cDAQ chassis shut down the system because of a high CPU temperature. • Warning: Recovering from Ambient Overtemp—This warning indicates that the thermal protection features of the cDAQ chassis shut down the system because of a high ambient temperature.
Page 121
Appendix A Controller Operating System and Configuration Main Setup Menu The most commonly accessed and modified BIOS settings are in the Main setup menu. The Main setup menu reports the following configuration information: • BIOS Version and Build Date—These values indicate the version of the controller BIOS and the date on which the BIOS was built.
Page 123
Appendix A Controller Operating System and Configuration Video Configuration Submenu Use this submenu to apply alternate settings to the video configuration. Normally, you do not need to modify these settings, as the factory default settings provide the most compatible and optimal configuration possible.
Page 125
Appendix A Controller Operating System and Configuration • COM 2 (RS-485/422)—This setting enables or disables the onboard RS-485/422 serial port. The default value is Enabled. • Device Settings—This item displays the current base address and interrupt request level (IRQ) information for the onboard RS-485/422 serial port. Serial Port Console Redirection Submenu Use this submenu to access configuration information related to console redirection.
Page 127
Appendix A Controller Operating System and Configuration Boot Setup Menu Use this menu to configure settings related to the boot process and boot device priority. • Boot Settings Configuration—Use this setting to access the Boot Settings Configuration submenu. Refer to the Boot Settings Configuration Submenu section for more information.
Page 129
Appendix A Controller Operating System and Configuration Security Menu Use this menu to enable BIOS security options. • Setup Administrator Password—This setting specifies a password that must be entered to access the BIOS Setup Utility. If only the Administrator’s password is set, then this only limits access to the BIOS setup utility and is only asked for when entering the BIOS setup utility.
Page 132
NI-DAQmx The NI-DAQmx Readme lists which devices, ADEs, and NI application software are supported by this version of NI-DAQ. Select Start»All Programs»National Instruments»NI-DAQmx» NI-DAQ Readme. The NI-DAQmx Help contains API overviews, general information about measurement concepts, key NI-DAQmx concepts, and common applications that are applicable to all programming environments.
Page 133
VIs, set up RT targets, and build, debug, and deploy real-time applications. Open the Getting Started with the LabVIEW Real-Time Module document by selecting Start»All Programs»National Instruments»LabVIEW»LabVIEW Manuals or by navigating to the directory and opening labview\manuals RT_Getting_Started.pdf...
Page 134
NI Services National Instruments provides global services and support as part of our commitment to your success. Take advantage of product services in addition to training and certification programs that meet your needs during each phase of the application life cycle; from planning and development through deployment and ongoing maintenance.
Page 135
Appendix C You also can visit the Worldwide Offices section of ni.com/niglobal to access the branch office • 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 –...
Page 139
Index pulse-width, 5-5 semi-period, 5-8 hard drive BBS priorities submenu, A-11 single pulse-width, 5-5 hardware-timed generations single semi-period, 5-9 analog output, 3-2 single two-signal edge-separation, 5-22 digital output, 4-8 two-signal edge-separation, 5-22 using quadrature encoders, 5-19 using two pulse encoders, 5-21 implicit buffered measuring pulse-width measurement, 5-6...
Need help?
Do you have a question about the NI cDAQTM-9138 and is the answer not in the manual?
Questions and answers