Summary of Contents for National Instruments cDAQ-9185
Page 1
Artisan Technology Group is your source for quality new and certified-used/pre-owned equipment SERVICE CENTER REPAIRS WE BUY USED EQUIPMENT • FAST SHIPPING AND DELIVERY Experienced engineers and technicians on staff Sell your excess, underutilized, and idle used equipment at our full-service, in-house repair center We also offer credit for buy-backs and trade-ins •...
Page 2
-9185/9189 User Manual 4-Slot and 8-Slot, Extended Temperature, Ethernet CompactDAQ Chassis cDAQ-9185/9189 User Manual May 2017 376610A-01 Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com...
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.
Wiring External Power to the cDAQ Chassis ..............1-9 Connecting to a Real-Time Controller ................1-11 Troubleshooting Chassis Connectivity................1-14 Reserving the Chassis in MAX ..................1-15 Mounting the cDAQ-9185/9189..................1-15 Mounting Requirements ................... 1-17 Dimensions ....................... 1-18 Mounting the cDAQ Chassis Directly on a Flat Surface.......... 1-21 Mounting the cDAQ Chassis on a Panel ..............
Page 7
Contents Chapter 2 Networking Internal Ethernet Switch ....................2-1 IEEE 802.1AS-2011 Precision Time Protocol ............2-1 IEEE 802.1Q-2014 Rapid Spanning Tree Protocol (RSTP)........2-2 Chassis MAC Addresses...................2-2 Topology Options ......................2-3 Line Topology......................2-3 Ring Topology ......................2-4 Star Topology ......................2-4 Other Topologies ......................
Page 9
Contents Using the Watchdog Timer................5-14 Getting Started with DO Applications in Software .......... 5-14 Digital Input/Output Configuration for NI 9401 ............5-14 PFI............................. 5-14 PFI Filters ......................... 5-14 Chapter 6 Counters Counter Timing Engine ....................6-2 Counter Triggering ......................6-3 Counter Input Applications....................
Page 11
Contents Synchronization Modes .................... 6-39 80 MHz Source Mode..................6-40 External or Internal Source Less than 20 MHz..........6-40 Chapter 7 Digital Routing, Clock Generation, and Synchronization Digital Routing ......................... 7-1 Clock Routing ........................7-2 80 MHz Timebase..................... 7-2 20 MHz and 100 kHz Timebases................7-2 13.1072 MHz, 12.8 MHz, and 10 MHz Timebases ..........
Page 12
This chapter provides a cDAQ chassis overview and lists information about mounting the chassis and installing C Series modules. The National Instruments four-slot CompactDAQ cDAQ-9185 and eight-slot CompactDAQ cDAQ-9189 Ethernet chassis are designed for use with C Series modules. The cDAQ chassis are capable of measuring a broad range of analog and digital I/O signals and sensors.
SYNC Logo Chassis Grounding Screw Safety Guidelines Do not operate the NI cDAQ-9185/9189 in a manner not specified in this Caution user manual. 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.
Furthermore, any modifications to the product not expressly approved by National Instruments could void your authority to operate it under your local regulatory rules.
NI recommends the use of system health monitoring and a user watchdog to ensure potential problems are detected and resolved as soon as possible. The cDAQ-9185/9189 has hardware and software features your application can use to monitor system health and respond to events such as hardware faults, software failure, system crash, or any loss of communication.
Page 17
The NI-DAQmx 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/drivers installation from Start»All Programs»National Instruments»NI-DAQmx. Other NI documentation is available from ni.com/manuals (Optional) Mount the cDAQ chassis to a panel, wall, or DIN rail, or attach the desktop...
Page 18
Note the power connector with an external power supply rated for hazardous locations. The power supply included in the cDAQ-9185/9189 kit is intended only for desktop use. For all other applications use the included 2-position power connector plug and a power supply rated for your application power requirements. Visit to find ni.com...
Page 19
Chapter 1 Getting Started with the cDAQ Chassis • If the chassis is on your local subnet, the chassis automatically appears in the list of available devices. Right-click the cDAQ chassis and select Add Device. If the chassis is not on your local subnet, right-click Network Devices and select Find •...
Page 21
Chapter 1 Getting Started with the cDAQ Chassis power to all of the modules. The green POWER LED on the front panel identifies when the power input is in use. Complete the following steps to connect a power source to the cDAQ chassis. Make sure the power source is turned off.
User Manual Connecting to a Real-Time Controller You can use the cDAQ-9185/9189 chassis as expansion I/O from certain NI Linux Real-Time controllers. Discover and configure the NI Linux Real-Time controller in NI MAX, then discover and configure the cDAQ-9185/9189 chassis.
Page 23
Getting Started with the cDAQ Chassis Table 1-2. cDAQ Chassis NI-DAQmx Software Support cDAQ Chassis Earliest NI-DAQmx Version Support cDAQ-9185 NI-DAQmx 17.1 cDAQ-9189 NI-DAQmx 17.1 Set up your real-time controller hardware and install software to it as instructed in the getting started or quick start document for the real-time controller.
Chapter 1 Getting Started with the cDAQ Chassis 12. Self-test your chassis in MAX by expanding the real-time controller»Devices and Interfaces»Network Devices, right-clicking NI cDAQ-<model number>, and selecting Self-Test. Self-test performs a brief test to determine successful chassis installation. When the self-test finishes, a message indicates successful verification or if an error occurred.
Page 27
Chapter 1 Getting Started with the cDAQ Chassis Figure 1-11. cDAQ Chassis Reference Mounting Configuration (cDAQ-9189 Shown) I N S T I O - 9 1 a c tD Horizontal mounting orientation. Mounting substrate options: • Mount the cDAQ chassis directly to a metallic surface that is at least 1.6 mm (0.062 in.) thick and extends a minimum of 101.6 mm (4 in.) beyond all edges of the device.
(1.50 in.) (2.50 in.) (2.50 in.) Measure the ambient temperature here. Dimensions The following figures show the front and side dimensions of the cDAQ-9185 and cDAQ-9189. For detailed dimensional drawings and 3D models, visit and search for ni.com/dimensions cDAQ-9185 cDAQ-9189 1-18 | ni.com...
Page 30
User Manual Figure 1-15. cDAQ-9185 Dimensions 30.6 mm (1.20 in.) 47.2 mm (1.86 in.) POWER POWER STATUS STATUS NI cDAQ-9185 ACTIVE ACTIVE NI CompactDAQ 47.0 mm (1.85 in.) 88.1 mm (3.47 in.) PFI 0 PFI 0 DO NOT SEPARATE...
Page 31
Chapter 1 Getting Started with the cDAQ Chassis Figure 1-16. cDAQ-9189 Dimensions 141.7 mm (5.58 in.) 47.2 mm 30.8 mm (1.86 in.) (1.21 in.) POWER POWER STATUS STATUS NI cDAQ-9189 ACTIVE ACTIVE 47.0 mm NI CompactDAQ (1.85 in.) 88.1 mm (3.47 in.) PFI 0 PFI 0...
1000 Mounting the cDAQ Chassis on a Panel You can use the NI 9904 panel mounting kit to mount the cDAQ-9185 on a panel. You can use the NI 9905 panel mounting kit to mount the cDAQ-9189 on a panel.
Page 34
Fasten the panel mounting plate to the surface using the screwdriver and screws that are appropriate for the surface. The maximum screw size is M5 or number 10. The following figures show the panel mounting dimensions for the cDAQ-9185 and cDAQ-9189.
You can use the NI DIN rail mounting kit to mount the cDAQ chassis on a standard 35-mm DIN rail. What to use: • cDAQ chassis • Screwdriver, Phillips #2 • NI 9912 DIN rail mounting kit, 779019-01 (cDAQ-9185) – DIN rail clip – M4x25 screws (x2) • NI 9915 DIN rail mounting kit, 779018-01 (cDAQ-9189) –...
Chapter 1 Getting Started with the cDAQ Chassis Mounting the Chassis on a Rack NI offers the following rack-mount kits that you can use to mount the cDAQ chassis and other DIN rail-mountable equipment on a standard 482.6 mm (19 in.) rack. •...
Chapter 1 Getting Started with the cDAQ Chassis Use a #2 Phillips screwdriver to tighten the captive screw on the end bracket. Repeat steps 2 and 3 to attach the other end bracket to the other end of the chassis. The following figures show the desktop mounting kit dimensions.
A DAQ task is not running on the chassis Ethernet Ports The cDAQ-9185/9189 chassis has two tri-speed RJ-45 Ethernet ports—Ethernet Port 1 and Ethernet Port 2—as shown in Figure 1-1 or 1-2. You can use a shielded straight-through Category 5 Ethernet or an Ethernet crossover cable with either of the Ethernet ports to network your chassis to a computer host, NI Linux Real-Time controller, cDAQ chassis, or any network connection on the same subnet.
Note the power connector with an external power supply rated for hazardous locations. The power supply included in the cDAQ-9185/9189 kit is intended only for desktop use. For all other applications use the included 2-position power connector plug and a power supply rated for your application power requirements. Visit to find ni.com...
Time triggers and timestamps can be specified in Host Time or I/O Device Time, depending on the needs of your application. I/O Device Time—The time the cDAQ-9185/9189 uses internally. This time is determined • by the network configuration and is shared by all 802.1AS network-synchronized devices on your subnet.
Table 1-7 contains information about cables and accessories available for the cDAQ chassis. For a complete list of cDAQ chassis accessories and ordering information, refer to the pricing section of the NI cDAQ-9185/9189 product page at ni.com Table 1-7. Cables and Accessories...
PFI 0 C Series Module National Instruments C Series modules provide built-in signal conditioning and connectivity, such as 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 system 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 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, triggering, PFI signals for multi-device synchronization, flexible counter/timers with hardware gating, digital waveform acquisition and generation, and static DIO.
Internal Ethernet Switch The cDAQ-9185/9189 chassis feature a full hardware-accelerated internal Ethernet switch for greater performance, wiring flexibility, and compatibility over standard Ethernet ports. The Ethernet switch exposes two Ethernet ports to the user. Either port can be used to connect the chassis to the network.
IEEE 802.1Q-2014 Rapid Spanning Tree Protocol (RSTP) It is possible to create loops in a network using the cDAQ-9185/9189. To prevent these loops from disrupting the network, the cDAQ chassis implements the IEEE 802.1Q-2014 Rapid Spanning Tree Protocol (RSTP). Using this protocol, each cDAQ chassis is able to find the shortest path for incoming packets to reach the rest of the network.
Host—Can be a PC or a real-time controller with the NI Linux Real-Time operating • system, such as the IC-317x, cRIO-9035 Sync, cRIO-9039 Sync, or cDAQ-9132/9133/9134/9135/9136/9137 for LabVIEW Real-Time Node—cDAQ-9185 or cDAQ-9189 chassis • For more information about designing Ethernet measurement systems, visit ni.com/info...
Chapter 2 Networking Ring Topology In a ring topology, the host communicates with all nodes through the most effective path. You must use an external switch in a ring topology. You must configure the network properly with a recommended external switch before creating redundant links in the network. Refer to the External Switch Requirements section for information about what to look for in an external switch.
Networking External Switch Requirements To take advantage of the network synchronization and network redundancy features of the cDAQ-9185/9189, ensure that your network infrastructure meets certain requirements: IEEE 802.1AS-2011 time-based synchronization support—Automatically synchronizes • timebases and enables the use of time-based triggers, timestamping, and multi-device tasks between chassis across the network.
Chapter 3 Analog Input AI Reference Trigger Signal* • AI Pause Trigger Signal* • PFI Filters Digital Signals with an * support digital filtering. Refer to the section of Chapter 5, Input/Output and PFI, for more information. AI Convert Clock Signal Behavior For Analog Input Modules Refer to the section for AI Convert Clock signals and the cDAQ chassis.
Chapter 3 Analog Input When one or more delta-sigma modules are in an analog input task, the delta-sigma modules also provide the signal used as the AI Sample Clock. This signal is used to cause A/D conversion for other modules in the system, just as the AI Sample Clock does when a delta-sigma module is not being used.
Chapter 3 Analog Input AI Reference Trigger Signal Use Reference Trigger to stop a measurement acquisition. To use a reference trigger, specify a buffer of finite size and a number of pretrigger samples (samples that occur before the reference trigger). The number of posttrigger samples (samples that occur after the reference trigger) desired is the buffer size minus the number of pretrigger samples.
Chapter 3 Analog Input Analog Input Sync Pulse You can use time as a trigger for sync pulses on delta-sigma C Series modules. To use a sync pulse with a time source, specify a specific time in NI-DAQmx. Refer to the Time Triggering topic in the NI-DAQmx Help for more information on accessing time-based features in the NI-DAQmx API.
Chapter 4 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 4 Analog Output AO Sample Clock Signal The AO sample clock (ao/SampleClock) signals when all the analog output channels in the task update. AO Sample Clock can be generated from external or internal sources as shown in Figure 4-1. Figure 4-1.
Chapter 4 Analog Output AO Pause Trigger Signal Use the AO Pause Trigger signal (ao/PauseTrigger) to mask off samples in a DAQ sequence. When AO Pause Trigger is active, no samples occur, but AO Pause Trigger does not stop a sample that is in progress.
Chapter 4 Analog Output Using the Watchdog Timer Watchdog Timer You can use the watchdog timer for analog output operations. Refer to the Getting Started with the cDAQ Chassis, for more information. section of Chapter 1, Getting Started with AO Applications in Software You can use the cDAQ chassis in the following analog output applications: •...
Chapter 5 Digital Input/Output and PFI Static DIO Each of the DIO lines can be used as a static DI or DO line. You can use static DIO lines to monitor or control digital signals on some C Series modules. Each DIO line can be individually configured as a digital input (DI) or digital output (DO), if the C Series module being used allows such configuration.
Page 74
Chapter 5 Digital Input/Output and PFI Several other internal signals can be routed to DI Sample Clock. Refer to the Device Routing in MAX topic in the NI-DAQmx Help or the LabVIEW Help for more information. Using an External Source You can route the following signals as DI Sample Clock: •...
Page 76
Chapter 5 Digital Input/Output and PFI Using a Digital Source To use DI Reference Trigger with a digital source, specify a source and a rising or falling edge. Either PFI or one of several internal signals on the cDAQ chassis can provide the source. Refer to the Device Routing in MAX topic in the NI-DAQmx Help or the LabVIEW Help for more information.
Chapter 5 Digital Input/Output and PFI Change Detection Event The Change Detection Event is the signal generated when a change on the rising or falling edge lines is detected by the change detection task. Routing Change Detection Event to an Output Terminal You can route ChangeDetectionEvent to any output PFI terminal.
Chapter 5 Digital Input/Output and PFI – With onboard regeneration, the entire buffer is downloaded to the FIFO and regenerated from there. After the data is downloaded, new data cannot be written to the FIFO. To use onboard regeneration, the entire buffer must fit within the FIFO size. The advantage of using onboard regeneration is that it does not require communication with the main host memory once the operation is started, which prevents problems that may occur due to excessive bus traffic or operating system latency.
Page 82
Chapter 5 Digital Input/Output and PFI Using a Digital Source To use DO Start Trigger, specify a source and a rising or falling edge. The source can be one of the following signals: • A pulse initiated by host software •...
Chapter 5 Digital Input/Output and PFI Using the Watchdog Timer Watchdog Timer You can use the watchdog timer for digital output operations. Refer to the Getting Started with the cDAQ Chassis, for more information. section of Chapter 1, Getting Started with DO Applications in Software You can use the cDAQ chassis in the following digital output applications: •...
Chapter 6 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 6 Counters Period Measurement • Position 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 6 Counters Pulse-Width Measurement In pulse-width measurements, the counter measures the width of a pulse on its Gate input signal. You can configure the counter to measure the width of high pulses or low pulses on the Gate signal. You can route an internal or external periodic clock signal (with a known period) to the Source input of the counter.
Chapter 6 Counters Pulse Measurement In pulse measurements, the counter measures the high and low time of a pulse on its Gate input signal after the counter is armed. A pulse is defined in terms of its high and low time, high and low ticks or frequency and duty cycle.
Chapter 6 Counters Semi-Period Measurement In semi-period measurements, the counter measures a semi-period on its Gate input signal after the counter is armed. A semi-period is the time between any two consecutive edges on the Gate input. You can route an internal or external periodic clock signal (with a known period) to the Source input of the counter.
Chapter 6 Counters You can configure the counter to measure one period of the gate signal. The frequency of fx is the inverse of the period. Figure 6-12 illustrates this method. Figure 6-12. Low Frequency with One Counter Interval Measured Gate …...
Chapter 6 Counters You can route the signal to measure to the Source input of Counter 0, as shown in Figure 6-14. Assume this signal to measure has frequency fx. NI-DAQmx automatically configures Counter 0 to generate a single pulse that is the width of N periods of the source input signal. Figure 6-14.
Page 101
Chapter 6 Counters Divide down (N) is the integer to divide down measured frequency, only used in large range two counters is the sample clock rate, only used in sample clocked frequency measurements Here is how these variables apply to each method, summarized in Table 6-2. One counter—With one counter measurements, a known timebase is used for the source •...
Page 103
Chapter 6 Counters Again, the measurement time for the one counter measurement is lowest but the accuracy is lower. Note that the accuracy and measurement time of the sample clocked and two counter large range are almost the same. The advantage of the sample clocked method is that even when the frequency to measure changes, the measurement time does not and error percentage varies little.
Chapter 6 Counters Measurements Using Quadrature Encoders The counters can perform measurements of quadrature encoders that use X1, X2, or X4 encoding. A quadrature encoder can have up to three channels—channels A, B, and Z. X1 Encoding—When channel A leads channel B in a quadrature cycle, the counter •...
Chapter 6 Counters since the counter armed event; that is, the sample clock does not reset the counter. You can route the counter sample clock to the Gate input of the counter. You can configure the counter to sample on the rising or falling edge of the sample clock. Figure 6-22 shows an example of a buffered X1 position measurement.
Chapter 6 Counters falling) edges on the Source input occurring between an active edge of the Gate signal and an active edge of the Aux signal. The counter then stores the count in the FIFO on a sample clock edge. On the next active edge of the Gate signal, the counter begins another measurement. The STC3 transfers the sampled values to host memory using a high-speed data stream.
Chapter 6 Counters Pulse Train Generation Refer to the following sections for more information about the cDAQ chassis pulse train generation options: Finite Pulse Train Generation • Retriggerable Pulse or Pulse Train Generation • Continuous Pulse Train Generation • Buffered Pulse Train Generation •...
Chapter 6 Counters You specify the high and low pulse widths of the output signal. The pulse widths are also measured in terms of a number of active edges of the Source input. You also can specify the active edge of the Source input (rising or falling). The counter can begin the pulse train generation as soon as the counter is armed, or in response to a hardware Start Trigger.
Page 115
Chapter 6 Counters Table 6-7 and Figure 6-33 detail a finite sample clocked generation of three samples where the pulse specifications from the create channel are two ticks idle, two ticks active, and three ticks initial delay. Table 6-7. Finite Buffered Sample Clocked Pulse Train Generation Sample Idle Ticks Active Ticks...
Chapter 6 Counters Frequency Output can be routed out to any PFI terminal. All PFI terminals are set to high-impedance at startup. The FREQ OUT signal also can be routed to many internal timing signals. In software, program the frequency generator as you would program one of the counters for pulse train generation.
Chapter 6 Counters Counter n A, Counter n B, and Counter n Z Signals Counter n B can control the direction of counting in edge counting applications. Use the A, B, and Z inputs to each counter when measuring quadrature encoders or measuring two pulse encoders.
Chapter 6 Counters Counter n Internal Output and Counter n TC Signals The Counter n Internal Output signal changes in response to Counter n TC. The two software-selectable output options are pulse output on TC and toggle output on TC. The output polarity is software-selectable for both options.
Chapter 6 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 6-38.
The cDAQ-9185/9189 chassis use the IEEE 802.1AS protocol over the network to synchronize. These cDAQ chassis can not synchronize over the network with devices that use protocols or IEEE 1588 profiles other than IEEE 802.1AS.
NI-DAQmx 17.1 or later. NI cDAQ Chassis Documentation The cDAQ-9185/9189 Quick Start packaged with your cDAQ chassis, describes how to install your NI-DAQmx for Windows software, how to install the cDAQ chassis and C Series module, and how to confirm that your device is operating properly.
Page 130
NI-DAQmx. Select Start»All Programs»National Instruments»NI-DAQmx»NI-DAQmx 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. Select Start»All Programs»National Instruments»Start» All Programs»National Instruments»NI-DAQmx»NI-DAQmx Help. LabVIEW Refer to for more information about LabVIEW.
Page 131
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 132
Appendix A Where to Go from Here .NET Languages without NI Application Software With the Microsoft .NET Framework, you can use NI-DAQmx to create applications using Visual C# and Visual Basic .NET without Measurement Studio. Refer to the NI-DAQmx Readme for specific versions supported. Training Courses If you need more help getting started developing an application with NI products, NI offers training courses.
Page 134
Appendix B 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 140
Artisan Technology Group is your source for quality new and certified-used/pre-owned equipment SERVICE CENTER REPAIRS WE BUY USED EQUIPMENT • FAST SHIPPING AND DELIVERY Experienced engineers and technicians on staff Sell your excess, underutilized, and idle used equipment at our full-service, in-house repair center We also offer credit for buy-backs and trade-ins •...
Need help?
Do you have a question about the cDAQ-9185 and is the answer not in the manual?
Questions and answers