User Manual User Manual The cDAQ-9187 User Manual provides detailed descriptions of the product functionality and the step by step processes for use. Looking for Something Else? For information not found in the User Manual for your product, such as specifications and API reference, browse Related Information .
Overview Overview The eight-slot cDAQ-9187 Ethernet chassis is 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. For module specifications, refer to ni.com/docs...
Page 8
The accuracy of this translation depends on the relationship between these times and can reduce the relative accuracy of time triggers and timestamps across multiple devices. For maximum accuracy, use an NI Linux Real-Time controller as the host in a supported topology. However, NI-DAQmx guarantees that two tasks configured to start at the same host time always start at the same I/O Device Time in all scenarios, preserving precise synchronization between chassis in this common use case.
Overview • Synchronization across a Network Related reference: • cDAQ-9187 Front Panel Related information: • Timing and Triggering Watchdog Timer The watchdog timer is a software-configurable feature used to set critical outputs to expiration states in the event of a software failure, a system crash, or any other loss of communication between the application and the cDAQ chassis.
Page 10
After the watchdog timer task starts, DAQmx tasks can be started and stopped and other operations can be performed. Firmware Firmware can be updated through the Hardware Configuration Utility, NI MAX, or the web interface to the chassis. For cDAQ firmware information and updates, visit ni.com/ info and enter the Info Code cdaqfw.
Driver Support cDAQ-9187 cDAQ-9187 Driver Support Driver Support Determine the earliest driver version supported for your product. To optimize product performance, update to the most recent driver version. Table 1. Earliest Driver Version Support Driver Name Earliest Version Support...
Components of a cDAQ-9187 cDAQ-9187 System System cDAQ-9187 is designed for use in a system that might require hardware, drivers, and software to optimize cDAQ-9187 for your application. Use the minimum required cDAQ-9187 system components as a starting point for building your system.
Page 13
C Series modules. Note For optimal performance, use the most current version of NI-DAQmx with the cDAQ-9187. You can find the NI-DAQmx driver requirements in the NI-DAQmx Release Notes . NI Applications NI-DCPower offers driver support for the following applications: •...
Part Numbers for Recommended Cables and Part Numbers for Recommended Cables and Accessories Accessories Use part numbers to purchase the cables and the accessories for optimizing the performance of cDAQ-9187. Table 3. Part Numbers for Recommended Power Connector Accessories Accessory Description Part number...
Page 15
Part Numbers for Recommended Cables and Accessories Table 5. Part Numbers for Recommended Ethernet Cables Accessory Description Part number 8-Pin Ethernet Male to 8-Pin 8M-8M Ethernet Cable Ethernet Male, CAT-5E Ethernet 151733-02 Cable (2 m) 8-Pin Ethernet Male to 8-Pin 8M-8M Ethernet Cable Ethernet Male, CAT-5E Ethernet 151733-05...
Page 16
Carrying handle for C Series Carrying Handle 786744-01 CompactDAQ and Compact RIO Note Refer to CompactDAQ System Accessory Compatibility Guide on ni.com for more information about supported cables and accessories for your instrument. Related information: • CompactDAQ System Accessory Compatibility Guide ni.com...
Theory of Operation Theory of Operation The cDAQ-9187 eight-slot Ethernet chassis is 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. The cDAQ-9187 is a CompactDAQ Ethernet chassis designed for distributed sensor measurement systems.
Page 18
For more information about which C Series modules are compatible with the cDAQ chassis, go to ni.com/r/cdaqenet. cDAQ Module Interface cDAQ Module Interface The cDAQ module interface manages data transfers between the NI ASIC and the C Series modules. The interface also handles autodetection, signal routing, and synchronization. NI ASIC NI ASIC The NI ASIC used in the cDAQ-9187 features independent high-speed data streams;...
Page 19
Theory of Operation • AI, AO, and DIO Sample Timing—The cDAQ-9187 ASIC contains advanced AI, AO, and DIO timing engines. A wide range of timing and synchronization signals are available through digital I/O modules. Refer to the related topic links below for more information about the configuration of these signals.
Page 20
Theory of Operation • Digital Input Triggering Signals • Digital Output Triggering Signals • Using Counters ni.com...
Use these examples to learn about the product or accelerate your own application development. Most NI products install examples that you can access directly or from within NI software. The example experience can differ slightly across products and versions.
Page 22
Examples installed in LabVIEW and LabWindows/CVI are available from the Windows Start menu or from the NI Example Finder . The NI Example Finder is a utility that organizes examples into categories. The NI Example Finder allows you to browse and to search installed examples.
Front Panel cDAQ-9187 cDAQ-9187 Front Panel Front Panel Refer to the front panel diagram to understand the connectors, LEDs, and other features of the cDAQ-9187. Figure 3. cDAQ-9187 Front Panel POWER STATUS ACTIVE cDAQ-9187 CompactDAQ ni.com/91xx-setup DO NOT SEPARATE...
Page 25
Yellow Normal operation Chassis firmware booting, updating, or resetting to Yellow factory default Firmware image corrupted. Contact NI for support on Yellow 3 blinks corrupted firmware. cDAQ-9187 Ethernet LEDs The Ethernet port on the chassis front panel has two LEDs—10/100/1000 and LINK/ ACT.
Ethernet Port Ethernet Port The cDAQ-9187 chassis has a tri-speed RJ-45 Ethernet port. You can use a shielded straight-through Category 5 Ethernet or an Ethernet crossover cable with the Ethernet port to network your chassis to a computer host, NI Linux Real-Time controller, cDAQ chassis, FieldDAQ device, or any network connection on the same subnet.
Front Panel Table 15. Ethernet Cable Wiring Connections Connector 2—Straight- Connector 1 Connector 2—Crossover Through White/Orange White/Orange White/Green Orange Orange Green White/Green White/Green White/Orange Blue Blue Blue White/Blue White/Blue White/Blue Green Green Orange White/Brown White/Brown White/Brown Brown Brown Brown...
When operating the cDAQ-9187 in hazardous locations, you must use the power connector with an external power supply rated for hazardous locations. The power supply included in the cDAQ-9187 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.
Page 29
Front Panel Test and Measurement Devices document by going to ni.com/info and entering the Info Code emcground. Note If you use shielded cabling to connect to a C Series module with a plastic connector, you must attach the cable shield to the chassis grounding terminal using 1.31 mm...
Safety Guidelines Caution Do not operate the cDAQ-9187 in a manner not specified in this 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.
3 m (10 ft). A DC MAINS supply is a local DC electricity supply network in the infrastructure of a site or building. Special Conditions for Marine Applications Some models are approved for marine (shipboard) applications. To verify marine approval certification for a model, visit ni.com/certifications, search by model number, ni.com...
Page 33
Electromagnetic Compatibility Guidelines and click the appropriate link. Note In order to meet the EMC requirements for marine applications, install the product in a shielded enclosure with shielded and/or filtered power and input/output ports. In addition, take precautions when designing, selecting, and installing measurement probes and cables to ensure that the desired EMC performance is attained.
Remove the chassis from the package and inspect it for loose components or any other signs of damage. Notify NI if the device appears damaged in any way. Do not install a damaged chassis.
Page 35
8. External Power Supply (if using the power connector instead of the included power supply) Note Check the NI-DAQmx driver and application software release notes for specific version compatibility with your host computer. Note You can either use a shielded straight-through Category 5 Ethernet cable or an Ethernet crossover cable to connect the cDAQ chassis directly to your computer.
Installing the cDAQ Chassis Install the cDAQ-9187 chassis, connect external power, and verify the installation. Refer to the cDAQ-9187 front panel diagram while completing the following assembly steps. 1. Install the application software (if applicable), as described in the installation instructions that accompany your software.
Page 37
Setting up the cDAQ-9187 Note If you use shielded cabling to connect to a C Series module with a plastic connector, you must attach the cable shield to the chassis grounding terminal using 1.31 mm (16 AWG) or larger wire. Use shorter wire for better EMC performance.
Page 38
The POWER and STATUS LEDs light. The POWER LED lights as long as power is being supplied to the cDAQ chassis. The STATUS LED turns off after firmware boots. Refer to the cDAQ-9187 LED Indicators section for information about the LEDs on the cDAQ chassis.
Wiring External Power to the cDAQ Chassis To achieve the optimum power output from the system and accommodate the power demand for applications, connect the cDAQ-9187 to an external power source. Notice To ensure the specified EMC performance, do not connect the power input to a DC mains supply or to any supply requiring a connecting cable longer than 3 m (10 ft).
Specifications Verifying the Installation Verifying the Installation Before using the cDAQ-9187, verify that it is installed correctly through Hardware Configuration Utility or Measurement & Automation Utility (MAX). Verifying the Installation in Hardware Configuration Utility Verifying the Installation in Hardware Configuration Utility NI recommends using Hardware Configuration Utility to perform and to validate initial hardware configuration.
Setting up the cDAQ-9187 If the cDAQ-9187 is not shown in the system pane, click the + (Add Hardware) button, select the chassis from the Discovered devices, and click Add. 2. Record the name that Hardware Configuration Utility assigns to the cDAQ-9187 or provide a custom name.
Page 42
Setting up the cDAQ-9187 2. In the Find Network NI-DAQmx Devices dialog box that opens, do one of the following: ◦ Check the box that corresponds to your chassis in the Hostname column. ◦ If you know the chassis IP address, such as 192.168.0.2, enter it into the Add Device Manually field of the Find Network NI-DAQmx Devices window, and click the + button.
Page 43
6. Run a Test Panel in MAX by expanding 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. Click Start to verify measurement functionality.
Page 44
Troubleshooting Chassis Connectivity in MAX If your cDAQ chassis is not discovered or becomes disconnected from the network, try the following suggestions. If the cDAQ-9187 is not listed under Device and Interfaces » Network Device, complete the following steps. 1. Power off the system.
Page 45
Setting up the cDAQ-9187 cDAQ-9187 Connected to a Network or a Remote System is Not Discovered in MAX • Verify your network has a DHCP server. • Verify the host computer firewall is disabled. • Verify the proxy server is disabled.
Page 46
Setting up the cDAQ-9187 Figure 10. MAX Icons and States 1. Discovered, but Not Added to the Network 2. Recognized, Present, and Reserved on the Network 3. Recognized, but Disconnected from the Network, Unreserved, or Reserved by Another Host ni.com...
Connecting to a Real-Time Controller Connecting to a Real-Time Controller Connecting to a Real-Time Controller You can use the cDAQ-9187 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-9187 chassis.
Page 48
2. Install NI-DAQmx on the host machine if the driver was not installed in the previous step. a. Insert the software media. If the NI-DAQmx installer does not open automatically, select Start »...
Page 49
9 V DC to 30 V DC power source. 7. To add the chassis to the software configuration on the real-time target, open NI MAX on the host computer. In the MAX configuration tree, expand Remote Systems »...
Page 50
Interfaces » N etwork Devices 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. Click Close to exit the test panel. Related concepts: •...
Removing Modules from the cDAQ-9187 Removing Modules from the Removing Modules from the cDAQ-9187 cDAQ-9187 Complete the following steps to remove a C Series module from the cDAQ chassis. 1. Make sure that no I/O-side power is connected to the module. If the system is in a nonhazardous location, the chassis power can be on when you remove modules.
Mounting the cDAQ-9187 Mounting the Mounting the cDAQ-9187 cDAQ-9187 To ensure proper functionality during use at the maximum ambient temperature of 70 °C, you must mount the cDAQ chassis in the reference mounting configuration shown in the following image. Mounting the cDAQ chassis in the reference mounting configuration ensures that your system will operate correctly across the full operating temperature range and provide optimal C Series module accuracy.
1.6 mm (0.062 in.) thick and extends a minimum of 101.6 mm (4 in.) beyond all edges of the device. • Use the NI-9905 Panel Mounting Kit to mount the cDAQ chassis 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.
Mounting the cDAQ Chassis Directly on a Flat Surface Mounting the cDAQ Chassis Directly on a Flat Surface For environments with high shock and vibration, NI recommends mounting the cDAQ chassis directly on a flat, rigid surface using the mounting holes in the cDAQ chassis.
You can use a panel mounting kit to mount the cDAQ-chassis on a panel. Complete the following steps to mount the cDAQ chassis on a panel. This mounting technique requires a Phillips #2 screwdriver and a NI-9905 panel mounting kit. 1. Align the cDAQ chassis and the panel mount plate.
Mounting the cDAQ-9187 Figure 20. Mounting the Chassis on a Panel (cDAQ-9189 Shown) The following figure shows the panel mounting dimensions for the cDAQ-9187. Figure 21. cDAQ-9187 Panel Mounting Dimensions (cDAQ-9189 Shown) Related reference: • Part Numbers for Recommended Cables and Accessories...
Mounting the cDAQ Chassis on a DIN Rail Mounting the cDAQ Chassis on a DIN Rail You can use the NI DIN rail mounting kit to mount the cDAQ chassis on a standard 35-mm DIN rail. This mounting technique requires a Phillips #2 screwdriver and a panel mounting kit (NI 9915 DIN rail mounting kit, NI part number 779018-01).
Mounting the Chassis on a Rack 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: •...
Figure 25. Desktop Mounting Front Dimensions (cDAQ-9189 Shown) Figure 26. Desktop Mounting Side Dimensions cDAQ-9187 cDAQ-9187 Dimensions Dimensions The following figures show the front and side dimensions of the cDAQ-9187. For detailed dimensional drawings and 3D models, visit ni.com/dimensions and search for cDAQ-9187.
The Ethernet network interface transfers analog input, analog output, and digital I/O data between the NI ASIC and the network. It gathers the data into TCP/IP packets that can be sent across the network and interpreted by the host. The Ethernet network...
IEEE 1588-2008 Protocol IEEE 1588-2008 Protocol Note IEEE 1588 protocol is supported in NI-DAQmx 2024 Q4 and later. The internal network interface can be configured to act as a 1588 “boundary clock” implementing the IEEE 1588 delay request-response default PTP profile (sometimes referred to as “default profile”).
Topology Options Recommended networking topologies are described in this section. • Host—Can be a Windows computer or a real-time controller with the NI Linux Real- Time operating system, such as the IC-317 x , cRIO-9035/9039 Sync, cRIO-904 x /905 x , or cDAQ-9132/9133/9134/9135/9136/9137 for LabVIEW Real-Time •...
Networking External Switch Requirements External Switch Requirements To meet the minimum requirements for successful operation with cDAQ-9187 chassis, any switch directly connected to the chassis should be compliant with IEEE 802.1Q bridges and bridged networks To take advantage of the network synchronization and network redundancy features of the cDAQ-9187, ensure that your network infrastructure meets certain requirements: •...
Performing Analog Input Measurements Performing Analog Input Measurements Performing Analog Input Measurements To perform analog input measurements, install a supported analog input C Series module into any slot on the cDAQ chassis. The measurement specifications, such as number of channels, channel configuration, sample rate, and gain, are determined by the type of C Series module used.
AI Pause Trigger Signal • PFI Filters • AI Convert Clock Signal Behavior For Analog Input Modules AI AI Sample Clock Signal Sample Clock Signal A sample consists of one reading from each channel in the AI task. Sample Clock ni.com...
Performing Analog Input Measurements signals the start of a sample of all analog input channels in the task. Sample Clock can be generated from external or internal sources as shown in the following figure. Figure 29. AI Sample Clock Timing Options Routing the Sample Clock to an Output Terminal You can route Sample Clock to any output PFI terminal on an installed C Series module.
NI-DAQmx selects a conversion rate that spaces the AI Convert Clock pulses evenly throughout the sample. NI-DAQmx uses the same amount of padding for all the modules in the task. To explicitly specify the conversion rate, use the ActiveDevs and AI Convert Clock Rate properties using the DAQmx Timing property node or functions.
Performing Analog Input Measurements 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. When delta-sigma modules are in an AI task, the chassis automatically issues a synchronization pulse to each delta-sigma modules that resets their ADCs at the same time.
• Any PFI terminal on an installed C Series module • Counter n Internal Output The source also can be one of several other internal signals on your cDAQ chassis. Refer to the Device Routing in MAX topic in the NI-DAQmx User Manual for more information. ni.com...
Using a Time Source To use the Start Trigger signal with a time source, specify a specific time in NI-DAQmx. Refer to Timing and Triggering in the NI-DAQmx User Manual for more information on accessing time-based features in the NI-DAQmx API.
NI-DAQmx User Manual for more information. Using an Analog Source Some C Series modules can generate a trigger based on an analog signal. In NI-DAQmx, this is called the Analog Comparison Event. When you use an analog trigger source, the acquisition stops on the first rising or falling edge of the Analog Comparison Event signal, depending on the trigger properties.
Manual for more information. Using an Analog Source Some C Series modules can generate a trigger based on an analog signal. In NI-DAQmx, this is called the Analog Comparison Event. When you use an analog trigger source, the internal sample clock pauses when the Analog Comparison Event signal is low and resumes when the signal goes high (or vice versa).
Performing Analog Input Measurements and Triggering in the NI-DAQmx User Manual for more information on accessing time-based features in the NI-DAQmx API. Note To accurately synchronize delta-sigma devices in two or more separate tasks, you must specify the same sync pulse. Otherwise, a sync pulse is initiated by software implicitly, even if time start triggers are specified for the tasks.
With a software-timed generation, software controls the rate at which data is generated. Software sends a separate command to the hardware to initiate each DAC conversion. In NI-DAQmx, software-timed generations are referred to as on-demand timing. Software-timed generations are also referred to as immediate or static operations.
These modes are regeneration, onboard regeneration, and non- regeneration: ◦ In regeneration mode, you define a buffer in host memory. The data from the buffer is continually downloaded to the FIFO to be written out. New data can ni.com...
Generating Analog Output be written to the host buffer at any time without disrupting the output. There is no limitation on the number of waveform channels supported by regeneration mode. ◦ With onboard regeneration, the entire buffer is downloaded to the FIFO and regenerated from there.
AO Sample Clock Signal 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 the following figure. ni.com...
Page 82
Using a Time Source To use AO Start Trigger signal with a time source, specify a specific time in NI-DAQmx. Refer to Timing and Triggering in the NI-DAQmx User Manual for more information on accessing time-based features in the NI-DAQmx API.
Generating Analog Output Routing AO Start Trigger Signal to an Output Terminal You can route AO Start Trigger to any output PFI terminal on an installed C Series module. The output is an active high pulse. AO Pause Trigger Signal AO Pause Trigger Signal Use the AO Pause Trigger signal (ao/PauseTrigger) to mask off samples in a DAQ sequence.
Generating Analog Output logic high or low level. Refer to the Device Routing in MAX topic in the NI- DAQmx User Manual for more information. Using an Analog Source Some C Series modules can generate a trigger based on an analog signal. In NI-DAQmx, this is called the Analog Comparison Event, depending on the trigger properties.
• You can only do hardware timing in one direction at a time on a serial bidirectional module. To determine the capability of digital modules supported by the cDAQ controller, refer to the C Series Support in NI-DAQmx document by going to ni.com/r/rdcdaq. ni.com...
Using the Digital Input/Output Static DIO 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.
Figure 35. DI Sample Clock Timing Options Routing DI Sample Clock to an Output Terminal You can route DI Sample Clock to any output PFI terminal on an installed C Series module. ni.com...
• DI Change Detection Output Several other internal signals can be routed to DI Sample Clock. Refer to the Device Routing in MAX topic in the NI-DAQmx Help for more information. Using an External Source You can route the following signals as DI Sample Clock: •...
• Counter n Internal Output The source also can be one of several other internal signals on the cDAQ chassis. Refer to the Device Routing in MAX topic in the NI-DAQmx Help or the LabVIEW Help for more information. Using an Analog Source Some C Series modules can generate a trigger based on an analog signal.
Depending on the C Series module capabilities, you may need two modules to utilize analog triggering. Using a Time Source To use the Start Trigger signal with a time source, specify a specific time in NI-DAQmx. Refer to the Timestamps and Time Triggering topics in the NI-DAQmx Help for more information on accessing time-based features in the NI-DAQmx API.
NI-DAQmx User Manual for more information. Using an Analog Source Some C Series modules can generate a trigger based on an analog signal. In NI-DAQmx, this is called the Analog Comparison Event. When you use an analog trigger source, the acquisition stops on the first rising or falling edge of the Analog Comparison Event signal, depending on the trigger properties.
To use DI Pause Trigger, specify a source and a polarity. The source can be either from PFI on an installed C Series module or one of several other internal signals on your cDAQ chassis. Refer to Device Routing in MAX topic in the NI-DAQmx User Manual for more information.
• Finite acquisition • Continuous acquisition For more information about programming digital input applications and triggers in software, refer to the NI-DAQmx User Manual for more information. Change Detection Event 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.
Using the Digital Input/Output Change Detection Acquisition You can configure lines on parallel digital modules to detect rising or falling edges. When one or more of these lines sees the edge specified for that line, the cDAQ chassis samples all the lines in the task. The rising and falling edge lines do not necessarily have to be in the task.
With a software-timed generation, software controls the rate at which data is generated. Software sends a separate command to the hardware to initiate each digital generation. In NI-DAQmx, software-timed generations are referred to as on-demand timing. Software-timed generations are also referred to as immediate or static operations.
Using the Digital Input/Output One property of buffered I/O operations is sample mode. The sample mode can be either finite or continuous: • Finite—Finite sample mode generation refers to the generation of a specific, predetermined number of data samples. After the specified number of samples is written out, the generation stops.
DO Sample Clock Signal DO Sample Clock Signal The DO Sample Clock (do/SampleClock) signals when all the digital output channels in the task update. DO Sample Clock can be generated from external or internal sources as shown in the following figure. ni.com...
If you are using an internal sample clock, you can specify a delay from the start trigger to the first sample. For more information, refer to the NI-DAQmx Help . Using a Digital Source To use DO Start Trigger, specify a source and a rising or falling edge.
DO Start Trigger. Using an Analog Source Some C Series modules can generate a trigger based on an analog signal. In NI-DAQmx, this is called the Analog Comparison Event, depending on the trigger properties. When you use an analog trigger source, the waveform generation begins on the first rising or falling edge of the Analog Comparison Event signal, depending on the trigger properties.
Page 101
You also can specify whether the samples are paused when DO Pause Trigger is at a logic h igh or low level. Refer to Device Routing in MAX in the NI-DAQmx User Manual for more information. Using an Analog Source Some C Series modules can generate a trigger based on an analog signal.
Digital Input/Output Configuration for NI-9401 NI-9401 When you change the configuration of lines on a NI-9401 digital module between input and output, NI-DAQmx temporarily reserves all of the lines on the module for communication to send the module a line configuration command. For this reason, you must reserve the task in advance through the DAQmx Control Task before any task has started.
Using PFI Using PFI Using PFI You can configure channels of a parallel digital module as Programmable Function Interface (PFI) terminals. Up to two digital modules can be used to access PFI terminals in a single chassis. You can configure each module PFI individually as the following: •...
Page 104
On power up, the filters are disabled. The following figure shows an example of a low- to-high transition on an input that has a custom filter set to N = 5. Figure 41. PFI Filter Example ni.com...
Using Counters Using Counters Using Counters The cDAQ chassis has four general-purpose 32-bit counter/timers and one frequency generator. The general-purpose counter/timers can be used for many measurement and pulse generation applications. The following figure shows the cDAQ chassis Counter 0 and the frequency generator.
The following table shows the different options for the different measurements. Table 19. Counter Timing Measurements Sample Clocked Timing Measurement Implicit Timing Support Support Buffered Edge Count Buffered Pulse Width Buffered Pulse Buffered Semi-Period Buffered Frequency ni.com...
Using Counters Sample Clocked Timing Measurement Implicit Timing Support Support Buffered Period Buffered Position Buffered Two-Signal Edge Separation Counter Triggering Counter Triggering Counters support three different triggering actions: • Arm Start Trigger—To begin any counter input or output function, you must first enable, or arm, the counter.
You also can control the direction of counting (up or down), as described in the Controlling the Direction of Counting section. The counter values can be read on demand or with a sample clock. Refer to the following sections for more information about edge counting options. Single Point (On-Demand) Edge Counting ni.com...
FIFO. The NI ASIC transfers the sampled values to host memory using a high-speed data stream. The count values returned are the cumulative counts since the counter armed event.
If a counter is armed while the pulse is in the active state, it will wait for the next transition to the active state to begin the measurement. Refer to the following sections for more information about cDAQ chassis pulse-width ni.com...
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. The NI ASIC transfers the sampled values to host memory using a high-speed data stream.
The counter counts the number of edges on the Source input while the Gate input remains active. On each sample clock edge, the counter stores the count in the FIFO of the last pulse width to complete. The NI ASIC transfers the sampled values to host memory using a high-speed data stream.
Implicit Buffered Pulse Measurement In an implicit buffered pulse measurement, on each edge of the Gate signal, the counter stores the count in the FIFO. The NI ASIC transfers the sampled values to host memory using a high-speed data stream.
FIFO of the last pulse to complete. The NI ASIC transfers the sampled values to host memory using a high-speed data stream. The following figure shows an example of a sample clocked buffered pulse measurement.
Implicit Buffered Semi-Period Measurement In implicit buffered semi-period measurements, on each edge of the Gate signal, the counter stores the count in the FIFO. The NI ASIC transfers the sampled values to host memory using a high-speed data stream. The counter begins counting when it is armed. The arm usually occurs between edges on the Gate input.
80 MHz Timebase, 20 MHz Timebase, or 100 kHz Timebase, or any other signal with a known rate. You can configure the counter to measure one period of the gate signal. The frequency of fx is the inverse of the period. The following figure illustrates this method. ni.com...
Using Counters Figure 53. Low Frequency with One Counter 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. Note Counter 0 is always paired with Counter 1.
Page 118
You can route the signal to measure to the Source input of Counter 0, as shown in the following figure. 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.
Using Counters From Counter 0, the length of the pulse is N / fx . From Counter 1, the length of the same pulse is J / fk . Therefore, the frequency of fx is given by fx = fk * ( N / J ). Sample Clocked Buffered Frequency Measurement Sample clocked buffered point frequency measurements can either be a single frequency measurement or an average between sample clocks.
• Two counter high frequency—With the two counter high frequency method, the second counter provides a known measurement time. The gate frequency equals 1/ measurement time . • Two counter large range—The two counter larger range measurement is the same ni.com...
Page 121
Note: Accuracy equations do not take clock stability into account. Refer to the cDAQ-9187 Specifications for information about clock stability. Which Method Is Best? This depends on the frequency to be measured, the rate at which you want to monitor the frequency and the accuracy you desire.
Page 122
62.51 333 k 1,000 62.50 error (Hz) Max. Error % .00125 6.67 .00125 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 ni.com...
Page 123
Using Counters 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. For example, if you configured a large range two-counter measurement to use a divide down of 50 for a 50 k signal, then you would get the accuracy measurement time and accuracy listed in the first table.
You can measure angular position with X1, X2, and X4 angular encoders. Linear position can be measured with two-pulse encoders. You can choose to do either a single point (on-demand) position measurement or a buffered (sample ni.com...
Using Counters clock) position measurement. You must arm a counter to begin position measurements. Refer to the following sections for more information about the cDAQ chassis position measurement options. Measurements Using Quadrature Encoders The counters can perform measurements of quadrature encoders that use X1, X2, or X4 encoding.
T he figure illustrates channel Z reload with X4 decoding. Figure 61. Channel Z Reload with X4 Decoding Measurements Using Two Pulse Encoders The counter supports two pulse encoders that have two channels—channels A and B. ni.com...
The value of the counter is sampled on each active edge of a sample clock. The NI ASIC transfers the sampled values to host memory using a high-speed data stream. The count values returned are the cumulative counts since the counter armed event;...
The following figure shows an example of a single two-signal edge-separation measurement. Figure 64. Single Two-Signal Edge-Separation Measurement Implicit Buffered Two-Signal Edge-Separation Measurement Implicit buffered and single two-signal edge-separation measurements are similar, but implicit buffered measurement measures multiple intervals. ni.com...
Gate signal and an active edge of the Aux signal. The counter then stores the count in the FIFO. On the next active edge of the Gate signal, the counter begins another measurement. The NI ASIC transfers the sampled values to host memory using a high-speed data stream.
Source input. You also can specify the active edge of the Source input (rising or falling). The following figure shows a generation of a pulse with a pulse delay of four and a pulse width of three (using the rising edge of Source). ni.com...
Using Counters Figure 67. Single Pulse Generation 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.
The following figure shows a generation of two pulses with a pulse delay of five and a pulse width of three (using the rising edge of Source) with CO.EnableInitalDelayOnRetrigger set to the default True. Figure 70. Retriggerable Single Pulse Generation with Initial Delay on Retrigger ni.com...
Using Counters The following figure shows the same pulse train with CO.EnableInitalDelayOnRetrigger set to the default False. Figure 71. Retriggerable Single Pulse Generation False Note The minimum time between the trigger and the first active edge is two ticks of the source. For information about connecting counter signals, refer to Default Counter/Timer Routing section.
Each point you write generates a single pulse. The number of pairs of idle and active times (pulse specifications) you write determines the number of pulses generated. All points are generated back to back to create a user defined pulse train. ni.com...
Using Counters The following table and figure detail a finite implicit generation of three samples. Table 24. Finite Implicit Buffered Pulse Train Generation Sample Idle Ticks Active Ticks Figure 73. Finite Implicit Buffered Pulse Train Generation Continuous Buffered Implicit Pulse Train Generation This function generates a continuous train of pulses with variable idle and active times.
Continuous Buffered Sample Clocked Pulse Train Generation This function generates a continuous train of pulses with variable idle and active times. Instead of generating a set number of data samples and stopping, a continuous ni.com...
Using Counters generation continues until you stop the operation. Each point you write specifies pulse specifications that are updated with each sample clock. When a sample clock occurs, the current pulse finishes generation and the next pulse uses the next sample specifications.
For information about connecting counter signals, refer to the Default Counter/Timer Routing section. Using the Watchdog Timer Using the Watchdog Timer You can use the watchdog timer for counter output operations. Refer to the Watchdog Timer section for more information. ni.com...
Using Counters Pulse Generation for ETS Pulse Generation for ETS In the equivalent time sampling (ETS) application, the counter produces a pulse on the output a specified delay after an active edge on Gate. After each active edge on Gate, the counter cumulatively increments the delay between the Gate and the pulse on the output by a specified amount.
In addition, TC or Gate from a counter can be routed to a different counter source. Some of these options may not be available in some driver software. Refer to the Device Routing in MAX topic in the NI-DAQmx User Manual for more information about available routing options.
In addition, a counter’s Internal Output or Source can be routed to a different counter’s gate. Some of these options may not be available in some driver software. Refer to Device Routing in MAX in the NI-DAQmx User Manual for more information about available routing options. Routing Counter n Gate to an Output Terminal You can route Counter n Gate out to any PFI terminal on an installed C Series module.
Aux. A counter’s own gate can also be routed to its Aux input. Some of these options may not be available in some driver software. Refer to Device Routing in MAX in the NI-DAQmx User Manual for more information about available routing options.
A counter’s Internal Output can be routed to a different counter’s HW Arm. Some of these options may not be available in some driver software. Refer to Device Routing in MAX in the NI-DAQmx User Manual for more information about available routing options.
• AO Sample Clock • DI Change Detection output Several other internal signals can be routed to Counter n Sample Clock through internal routes. Refer to Device Routing in MAX in the NI-DAQmx User Manual for more information. Using an External Source You can route any of the following signals as Counter n Sample Clock: •...
You can use these defaults or select other sources and destinations for the counter/ timer s ignals in NI-DAQmx. Refer to Connecting Counter Signals in the NI- DAQmx User Manual for more information about how to connect your signals for common counter measurements and generations.
Using Counters together, you can effectively create a 64-bit counter. By cascading counters, you also can enable other applications. For example, to improve the accuracy of frequency measurements, use reciprocal frequency measurement, as described in the Large Range of Frequencies with Two Counters section.
Source signal by delaying the Source signal by several nanoseconds. The chassis synchronizes signals on the rising edge of the delayed Source signal, and counts on the following rising edge of the source, as shown in the following figure. Figure 80. External or Internal Source Less than 20 MHz ni.com...
Digital Routing Digital Routing Digital Routing The digital routing circuitry has the following functions: • Manages the flow of data between the bus interface and the acquisition/ generation sub-systems (analog input, analog output, digital I/O, and the counters). The digital routing circuitry uses FIFOs (if present) in each sub-system to ensure efficient data movement.
The 13.1072 MHz, 12.8 MHz, and 10 MHz Timebases can be used to generate many of the analog input and analog output timing signals. They can function as the Source input to the 32-bit general-purpose counter/timers. The 13.1072 MHz, 12.8 MHz, and 10 MHz Timebases are generated directly from the onboard clock generator. ni.com...
The cDAQ-9187 chassis use the IEEE 802.1AS protocol over the network to synchronize. They can be configured to use the IEEE 1588-2008 protocol profile instead...
Page 152
Synchronization across a Network System—Visit ni.com/r/fd1588. ni.com...
Need help?
Do you have a question about the cDAQ-9187 and is the answer not in the manual?
Questions and answers