National Instruments cRIO-905 Series User Manual

National Instruments cRIO-905 Series User Manual

Embedded compactrio controller with real-time processor and reconfigurable fpga

Advertisement

Quick Links

USER MANUAL
cRIO-905x
Embedded CompactRIO Controller with Real-Time Processor and
Reconfigurable FPGA
This document describes the features of the cRIO-905x and contains information about
mounting and operating the device.
In this document, the cRIO-9053, cRIO-9054, cRIO-9055, cRIO-9056, cRIO-9057,
cRIO-9058 are referred to collectively as cRIO-905x.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the cRIO-905 Series and is the answer not in the manual?

Questions and answers

Summary of Contents for National Instruments cRIO-905 Series

  • Page 1 USER MANUAL cRIO-905x Embedded CompactRIO Controller with Real-Time Processor and Reconfigurable FPGA This document describes the features of the cRIO-905x and contains information about mounting and operating the device. In this document, the cRIO-9053, cRIO-9054, cRIO-9055, cRIO-9056, cRIO-9057, cRIO-9058 are referred to collectively as cRIO-905x.
  • Page 2: Table Of Contents

    Contents Configuring the cRIO-905x...................... 2 Connecting the cRIO-905x to the Host Computer Using USB........3 Connecting the cRIO-905x to the Host Computer or Network Using Ethernet....4 Configuring Startup Options..................... 4 cRIO-905x Features........................6 Ports and Connectors......................6 Buttons..........................10 LEDs..........................11 Chassis Grounding Screw....................
  • Page 3: Connecting The Crio-905X To The Host Computer Using Usb

    NI software in the correct order on the host computer as described in Installing Software on the Host Computer in the cRIO-905x Getting Started Guide. Select Configure and install software to this device. cRIO-905x User Manual | © National Instruments | 3...
  • Page 4: Connecting The Crio-905X To The Host Computer Or Network Using Ethernet

    Connecting the cRIO-905x to the Host Computer or Network Using Ethernet Complete the following steps to connect the cRIO-905x to a host computer or Ethernet network using the RJ-45 Gigabit Ethernet port 0. NI recommends using the RJ-45 Gigabit Ethernet port 0 for communication with deployed systems. Note If your controller has the RJ-45 Gigabit Ethernet port 1, you can configure that port in Measurement &...
  • Page 5 Info Code openssh for more information about SSH. LabVIEW Project Rebooting the cRIO-905x with this setting on enables you to add the Access target to a LabVIEW project. cRIO-905x User Manual | © National Instruments | 5...
  • Page 6: Crio-905X Features

    cRIO-905x Features Ports and Connectors Figure 1. cRIO-905x Ports and Connectors 1. USB 2.0 Type-C Device Port with Console Out 4. Power Connector 2. USB 3.1 Type-C Host Port 5. SD Association MicroSD Card Removable Storage 3. PFI 0 6. RJ-45 Gigabit Ethernet Ports (one or two, depending on the model) USB 2.0 Type-C Device Port with Console Out When operating a device, use this port to connect the cRIO-905x to a host PC.
  • Page 7 For more information about programming modes, refer to Choosing Your Programming Mode. Power Connector The cRIO-905x has a power connector to which you can connect a power supply. Table 4. Power Connector Pinout Pinout Description Power input Common cRIO-905x User Manual | © National Instruments | 7...
  • Page 8 The cRIO-905x has reverse-voltage protection. The following NI power supplies and accessories are available for use with the cRIO-905x. Table 5. Power Supplies Accessory Part Number NI PS-10 Desktop Power Supply, 24 V DC, 5 A, 100-120/200-240 V AC 782698-01 Input NI PS-14 Industrial Power Supply, 24 to 28 V DC, 3.3 A, 100-240 V AC 783167-01...
  • Page 9 The following NI Ethernet cables are available for use with the cRIO-905x. Table 9. RJ-45 Gigabit Ethernet Cables Cables Length Part Number 151733-02 CAT-5E Ethernet Cable, shielded 151733-05 10 m 151733-10 cRIO-905x User Manual | © National Instruments | 9...
  • Page 10: Buttons

    Buttons Figure 2. cRIO-905x Buttons 1. RESET Button 2. CMOS Reset Button RESET Button Press the RESET button to reset the processor in the same manner as cycling power. Figure 3. Reset Button Behavior Press and hold RESET button for < 5 s Press and hold RESET button for ≥...
  • Page 11: Leds

    3. SD IN USE LED 6. Gigabit Ethernet LEDs POWER LED Indicators Table 10. POWER LED Indicators LED Pattern Indication Solid The cRIO-905x is powered on. The cRIO-905x is powered off. cRIO-905x User Manual | © National Instruments | 11...
  • Page 12 STATUS LED Indicators Table 11. STATUS LED Indicators LED Pattern Indication Blinks twice and The cRIO-905x is in safe mode. Software is not installed, which is the pauses factory default state, or software has been improperly installed on the cRIO-905x. An error can occur when an attempt to upgrade the software is interrupted.
  • Page 13 LAN link not established Green Solid LAN link established Flashing Activity on LAN 10/100/1000 Yellow Solid 1,000 Mb/s data rate selected Green Solid 100 Mb/s data rate selected — 10 Mb/s data rate selected cRIO-905x User Manual | © National Instruments | 13...
  • Page 14: Chassis Grounding Screw

    Chassis Grounding Screw Figure 5. cRIO-905x Chassis Grounding Screw 1. Chassis Grounding Screw Note For information about grounding the cRIO-905x, see Grounding the Controller in the cRIO-905x Getting Started Guide. Note For more information about ground connections, visit ni.com/info and enter the Info Code emcground Internal Real-Time Clock...
  • Page 15: Clock Routing

    When programming C Series modules in Real-Time (NI-DAQmx) mode, the 80 MHz timebase can function as the source input to the 32-bit general-purpose counter/timers. The 80 MHz timebase is generated from the onboard oscillator. cRIO-905x User Manual | © National Instruments | 15...
  • Page 16: Synchronization Across A Network

    20 MHz and 100 kHz Timebases When programming C Series modules in Real-Time (NI-DAQmx) mode, the 20 MHz and 100 kHz timebases can be used to generate many of the analog input and analog output timing signals. These timebases can also function as the source input to the 32-bit general-purpose counter/timers.
  • Page 17 IEEE 802.1AS-2011 assumes all communication between devices is done on the OSI layer 2, while IEEE 1588-2008 can support various layer 2 and layer 3-4 communication methods. The IEEE 1588-2008 profile National Instruments implements on the cRIO-905x only supports layer 3-4 communication methods. Operating on the layer 2 yields better performance for the IEEE 802.1AS-2011.
  • Page 18: Battery

    IEEE 1588 External Switch Requirements To take advantage of the network synchronization features of the cRIO-905x controllers, ensure that your network infrastructure meets certain requirements depending on which IEEE 1588 profile is implemented for your application: • IEEE 802.1AS-2011 support—Automatically enables timebase synchronization and enables the use of time-based triggers and timestamping between devices across the network.
  • Page 19: Mounting The Controller

    C Series module accuracy. Observe the following guidelines to mount the cRIO-905x in the reference mounting configuration. Figure 7. System Mounting Configuration cRIO-905x User Manual | © National Instruments | 19...
  • Page 20: Alternative Mounting Configurations

    Horizontal mounting orientation. Mounting substrate options: • Mount the cRIO-905x 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. • Use the NI Panel Mounting Kit to mount the cRIO-905x 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.
  • Page 21: Dimensions

    1. Measure the ambient temperature here. Dimensions The following dimensional drawings apply to all cRIO-905x controllers. For detailed dimensional drawings and 3D models, visit ni.com/dimensions and search for the model number. cRIO-905x User Manual | © National Instruments | 21...
  • Page 22 Figure 11. cRIO-905x 4-slot Controller Front Dimensions 89.61 mm (3.528 in.) 221.40 mm (8.72 in.) Figure 12. cRIO-905x 8-slot Controller Front Dimensions 89.61 mm (3.528 in.) 328.64 mm (12.938 in.) 22 | ni.com | cRIO-905x User Manual...
  • Page 23: Rear Mounting On A Flat Surface

    Complete the following steps to rear mount the cRIO-905x directly on a flat, rigid surface using the mounting holes. Note NI recommends rear mounting your system on a flat surface in environments with high shock and vibration. cRIO-905x User Manual | © National Instruments | 23...
  • Page 24 Figure 14. Rear Mounting the 4-slot cRIO-905x Directly on a Flat Surface Figure 15. Rear Mounting the 8-slot cRIO-905x Directly on a Flat Surface 24 | ni.com | cRIO-905x User Manual...
  • Page 25: Front Mounting On A Flat Surface

    (12.94 in.) Front Mounting on a Flat Surface What to Use • cRIO-905x • M4 screws, user-provided, length dependent on application – x2 for 4-slot models – x3 for 8-slot models cRIO-905x User Manual | © National Instruments | 25...
  • Page 26 What to Do Complete the following steps to front mount the cRIO-905x directly on a flat, rigid surface using the mounting holes. Note NI recommends rear mounting your system on a flat surface in environments with high shock and vibration. Figure 18.
  • Page 27: Mounting The Controller On A Panel

    NI panel mounting kit for 8-slot controllers, 157267-01 – Panel mounting plate – M4 x 10 screws (x6) What to Do Complete the following steps to mount the cRIO-905x on a panel. cRIO-905x User Manual | © National Instruments | 27...
  • Page 28 Figure 22. Mounting the 4-slot cRIO-905x on a Panel Figure 23. Mounting the 8-slot cRIO-905x on a Panel Align the cRIO-905x and the panel mounting plate. 28 | ni.com | cRIO-905x User Manual...
  • Page 29 7.2 mm (0.29 in.) 152.4 mm (6.00 in.) 152.4 mm (6.00 in.) 114.3 mm 138.9 mm (4.50 in.) (5.47 in.) 25.4 mm (1.00 in.) 147.3 mm (5.80 in.) 89.9 mm (3.54 in.) cRIO-905x User Manual | © National Instruments | 29...
  • Page 30: Mounting On A Din Rail

    Mounting on a DIN Rail What to Use • cRIO-905x • Screwdriver, Phillips #2 • NI DIN rail mounting kit – 4-slot models - 157254-01 • DIN rail clip • M4 x 10 screws (x2) – 8-slot models - 157268-01 •...
  • Page 31 Press down firmly to compress the spring until the clip locks in place on the DIN rail. Note Ensure that no C Series modules are in the controller before removing it from the DIN rail. cRIO-905x User Manual | © National Instruments | 31...
  • Page 32: Mounting On A Rack

    Mounting on a Rack You can use the following rack mount kits to mount the controller and other DIN rail- mountable equipment on a standard 482.6 mm (19 in.) rack. • Industrial Rack Mount Kit, 786411-01 • NI Rack-Mounting Kit, 781989-01 Note You must use the appropriate NI DIN rail mounting kit for your model in addition to a rack-mounting kit.
  • Page 33 Figure 30. Mounting the 4-Slot cRIO-905x on a Desktop cRIO-905x User Manual | © National Instruments | 33...
  • Page 34 Figure 31. Mounting the 8-Slot cRIO-905x on a Desktop Use the Torx T10 screwdriver to remove the two screws from the back of the chassis on the controller side. Use the #1 Phillips screwdriver and the two M3 x 35 screws to attach the adapter bracket to the chassis.
  • Page 35 Figure 33. 8 Slot cRIO-905x Desktop Mounting Front Dimensions 17.2 mm 22.9 mm (1.14 in.) (0.68 in.) 39.1 mm (1.54 in.) Figure 34. cRIO-905x Desktop Mounting Side Dimensions 127.0 mm (5.00 in.) 130.0 mm (5.12 in.) cRIO-905x User Manual | © National Instruments | 35...
  • Page 36: Choosing Your Programming Mode

    Choosing Your Programming Mode The cRIO-905x supports three programming modes on a per slot basis. Real- Enables you to use C Series modules directly from LabVIEW Real-Time, Time using NI DAQmx. C Series modules appear under the Real-Time Resources item in the MAX Project Explorer window and I/O channels appear as I/O variables under the modules.
  • Page 37: Analog Input With Ni-Daqmx

    Use HWTSP mode if you need to know if a loop executes in a given amount of time, such as in a control application. Because there is no buffer, if you use HWTSP mode, ensure that reads cRIO-905x User Manual | © National Instruments | 37...
  • Page 38 or writes execute fast enough to keep up with hardware timing. If a read or write executes late, it returns a warning. Note DSA modules do not support HWTSP mode. Analog Input Triggering Signal A trigger is a signal that causes an action, such as starting or stopping the acquisition of data. When you configure a trigger, you must decide how you want to produce the trigger and the action you want the trigger to cause.
  • Page 39 To use the Start Trigger signal with a digital source, specify a source and a rising or falling edge. Use the following signals as the source: • Any PFI terminal • Counter n Internal Output cRIO-905x User Manual | © National Instruments | 39...
  • Page 40 The source also can be one of several other internal signals on your cRIO controller. 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. In NI-DAQmx, this is called the Analog Comparison Event.
  • Page 41 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. In NI-DAQmx, this is called the Analog Comparison Event. cRIO-905x User Manual | © National Instruments | 41...
  • Page 42 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). Note Pause triggers are only sensitive to the level of the source, not the edge. AI Convert Clock Signal Behavior For Analog Input Modules Refer to the Scanned Modules, Simultaneous Sample-and-Hold Modules, Delta-Sigma Modules, and Slow Sample Rate Modules sections for information about the AI Convert Clock...
  • Page 43: Analog Output With Ni-Daqmx

    Analog Output with NI-DAQmx To generate analog output, install an analog output C Series module in any slot on the cRIO controller. The generation specifications, such as the number of channels, channel cRIO-905x User Manual | © National Instruments | 43...
  • Page 44 configuration, update rate, and output range, are determined by the type of C Series module used. For more information, refer to the documentation included with your C Series module(s). The cRIO controller has eight output timing engines, which means that up to eight hardware- timed analog output tasks can be running at a time on the controller.
  • Page 45 A trigger is a signal that causes an action, such as starting or stopping the acquisition of data. When you configure a trigger, you must decide how you want to produce the trigger and the cRIO-905x User Manual | © National Instruments | 45...
  • Page 46 action you want the trigger to cause. The cRIO controller supports internal software triggering, external digital triggering, analog triggering, and internal time triggering. Analog output supports two different triggering actions: AO Start Trigger and AO Pause Trigger. An analog or digital signal can initiate these actions. C Series parallel digital input modules and the controller’s integrated PFI trigger line can be used in any controller slot to supply a digital trigger.
  • Page 47 To use the Start Trigger signal with a time source, configure 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. cRIO-905x User Manual | © National Instruments | 47...
  • Page 48 AO Pause Trigger Signal Use the AO Pause Trigger signal 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. The pause does not take effect until the beginning of the next sample. When you generate analog output signals, the generation pauses as soon as the pause trigger is asserted.
  • Page 49: Digital Input/Output With Ni-Daqmx

    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 cRIO-905x User Manual | © National Instruments | 49...
  • Page 50 individually configured as a digital input (DI) or digital output (DO), if the C Series 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. The DI waveform acquisition FIFO stores the digital samples.
  • Page 51 The DI Sample Clock Timebase signal is divided down to provide a source for DI Sample Clock. DI Sample Clock Timebase can be generated from external or internal sources. DI Sample Clock Timebase is not available as an output from the controller. cRIO-905x User Manual | © National Instruments | 51...
  • Page 52 Using an Internal Source To use DI Sample Clock with an internal source, specify the signal source and the polarity of the signal. Use the following signals as the source: • it Sample Clock • ot Sample Clock • Counter n Internal Output •...
  • Page 53 The figure below shows the final buffer. Figure 41. Reference Trigger Final Buffer Reference Trigger Pretrigger Samples Posttrigger Samples Complete Buffer cRIO-905x User Manual | © National Instruments | 53...
  • Page 54 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 cRIO controller can provide the source. Refer to the "Device Routing in MAX" topic in the NI-DAQmx Help or the LabVIEW Help for more information.
  • Page 55 For more information, refer to the documentation included with your C Series module(s). With parallel digital output modules (formerly known as hardware-timed modules), you can do multiple software-timed tasks on a single module, as well as mix hardware-timed and cRIO-905x User Manual | © National Instruments | 55...
  • Page 56 software-timed digital output tasks on a single module. On serial digital output modules (formerly known as static digital output modules), you cannot mix hardware-timed and software-timed tasks, but you can run multiple software-timed tasks. You may have a hardware-timed task or a software-timed task include channels from multiple modules, but a hardware-timed task may not include a mix of channels from both parallel and serial modules.
  • Page 57 Trigger. A digital or analog trigger can initiate these actions. Any PFI terminal can supply a digital trigger, and some C Series analog modules can supply an analog trigger. For more information, refer to the documentation included with your C Series module(s). cRIO-905x User Manual | © National Instruments | 57...
  • Page 58 Refer to the DO Start Trigger Signal and DO Pause Trigger Signal sections in Digital Output Timing Signals for more information about the digital output trigger signals. Digital Output Timing Signals The cRIO controller features the following DO timing signals: •...
  • Page 59 When you generate digital output signals, the generation pauses as soon as the pause trigger is asserted. If the source of the sample clock is the onboard clock, the generation resumes as soon as the pause trigger is deasserted, as shown in the figure below. cRIO-905x User Manual | © National Instruments | 59...
  • Page 60 Figure 44. DO Pause Trigger with the Onboard Clock Source Pause Trigger Sample Clock 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 the figure below.
  • Page 61: Pfi With Ni-Daqmx

    On power up, the filters are disabled. The figure below shows an example of a low-to-high transition on an input that has a custom filter set to N = 5. cRIO-905x User Manual | © National Instruments | 61...
  • Page 62: Counters With Ni-Daqmx

    Figure 46. PFI Filter Example PFI Terminal Filtered input goes high when terminal is sampled high on Filter Clock five consecutive filter clocks. Filtered Input Counters with NI-DAQmx The cRIO controller 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.
  • Page 63 Table 17. Counter Timing Measurements Measurement Implicit Timing Support Sample Clocked Timing Support Buffered Edge Count Buffered Pulse Width Buffered Pulse Buffered Semi-Period Buffered Frequency Buffered Period cRIO-905x User Manual | © National Instruments | 63...
  • Page 64 Table 17. Counter Timing Measurements (Continued) Measurement Implicit Timing Support Sample Clocked Timing Support Buffered Position Buffered Two-Signal Edge Separation 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.
  • Page 65 (or one-half) of what it is accepting as shown in the figure below. Figure 48. Prescaling External Signal Prescaler Rollover (Used as Source by Counter) Counter Value cRIO-905x User Manual | © National Instruments | 65...
  • Page 66 Prescaling is intended to be used for frequency measurement where the measurement is made on a continuous, repetitive signal. The prescaling counter cannot be read; therefore, you cannot determine how many edges have occurred since the previous rollover. Prescaling can be used for event counting provided it is acceptable to have an error of up to seven (or one) ticks.
  • Page 67: Counter Input Applications

    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. cRIO-905x User Manual | © National Instruments | 67...
  • Page 68 You can route the pause trigger to the Gate input of the counter. You can configure the counter to pause counting when the pause trigger is high or when it is low. The following figure shows an example of on-demand edge counting with a pause trigger. Figure 52.
  • Page 69 Figure 54. Single Pulse-Width Measurement GATE SOURCE Counter Value Latched Value 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. cRIO-905x User Manual | © National Instruments | 69...
  • Page 70 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 sampled values will be transferred to host memory using a high-speed data stream. The following figure shows an example of an implicit buffered pulse-width measurement.
  • Page 71 Gate input but the counting does not start until the desired edge. You can select whether to read the high pulse or low pulse first using the StartingEdge property in NI-DAQmx. The figure below shows an example of an implicit buffered pulse measurement. cRIO-905x User Manual | © National Instruments | 71...
  • Page 72 Figure 58. 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.
  • Page 73 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 cRIO-905x User Manual | © National Instruments | 73...
  • Page 74 one point of data and returned in units of seconds or ticks. In a pulse measurement, each pair of high and low times is considered one point of data and returned as a paired sample in units of frequency and duty cycle, high and low time or high and low ticks. When reading data, 10 points in a semi-period measurement will get an array of five high times and five low times.
  • Page 75 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. cRIO-905x User Manual | © National Instruments | 75...
  • Page 76 Figure 63. Large Range of Frequencies with Two Counters Signal to Source Measure (fx) Counter 0 Signal of Known Source Frequency (fk) Counter 1 Gate 3 … N CTR_0_SOURCE (Signal to Measure) CTR_0_OUT Interval (CTR_1_GATE) to Measure CTR_1_SOURCE Next, route the Counter 0 Internal Output signal to the Gate input of Counter 1. You can route a signal of known frequency (fk) to the Counter 1 Source input.
  • Page 77 For all frequency measurement methods, assume the following: is the frequency to be measured if no error is the known source or gate frequency Measurement Time (T) is the time it takes to measure a single sample cRIO-905x User Manual | © National Instruments | 77...
  • Page 78 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 the table below. •...
  • Page 79 .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 clocked and two counter cRIO-905x User Manual | © National Instruments | 79...
  • Page 80 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 measurement time and accuracy listed in the 50 kHz Frequency Measurement Methods table.
  • Page 81 X1 encoding. When channel A leads channel B, the increment occurs on the rising edge of channel A. When channel B leads channel A, the decrement occurs on the falling edge of channel A. cRIO-905x User Manual | © National Instruments | 81...
  • Page 82 Figure 66. X1 Encoding Ch A Ch B Counter Value • X2 Encoding—The same behavior holds for X2 encoding except the counter increments or decrements on each edge of channel A, depending on which channel leads the other. Each cycle results in two increments or decrements, as shown in the following figure. Figure 67.
  • Page 83 Gate input of the counter. You can configure the counter to sample on the rising or falling edge of the sample clock. The figure below shows an example of a buffered X1 position measurement. cRIO-905x User Manual | © National Instruments | 83...
  • Page 84 Figure 71. 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.
  • Page 85 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 sampled values will be transferred to host memory using a high-speed data stream. cRIO-905x User Manual | © National Instruments | 85...
  • Page 86: Counter Output Applications

    The figure below shows an example of a sample clocked buffered two-signal separation measurement. Figure 74. Sample Clocked Buffered Two-Signal Separation Measurement Sample Clock GATE SOURCE Counter Value Buffer Note If an active edge on the Gate and an active edge on the Aux does not occur between sample clocks, an overrun error occurs.
  • Page 87 Refer to the following sections for more information about the cRIO controller pulse train generation options: • Finite Pulse Train Generation • Retriggerable Pulse or Pulse Train Generation • Continuous Pulse Train Generation • Buffered Pulse Train Generation cRIO-905x User Manual | © National Instruments | 87...
  • Page 88 • Finite Implicit Buffered Pulse Train Generation • 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.
  • Page 89 You also can use the Gate input of the counter as a Pause Trigger (if it is not used as a Start Trigger). The counter pauses pulse generation when the Pause Trigger is active. cRIO-905x User Manual | © National Instruments | 89...
  • Page 90 The figure below shows a continuous pulse train generation (using the rising edge of Source). Figure 80. 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.
  • Page 91 Table 23. Finite Buffered Sample Clocked Pulse Train Generation Sample Idle Ticks Active Ticks cRIO-905x User Manual | © National Instruments | 91...
  • Page 92 Figure 82. Finite Buffered Sample Clocked Pulse Train Generation Counter Armed Sample Clock Counter 2 1 0 1 0 1 0 1 2 1 0 2 1 0 2 1 0 2 1 0 1 0 0 2 1 0 2 1 Load Values Source There are several different methods of continuous generation that control what data is written.
  • Page 93 Refer to the Continuous Pulse Train Generation section for detailed information. For information about connecting counter signals, refer to the Default Counter/Timer Routing section. cRIO-905x User Manual | © National Instruments | 93...
  • Page 94: Counter Timing Signals

    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.
  • Page 95 100 kHz Timebase • Any PFI terminal • Analog Comparison Event • Change Detection Event In addition, TC or Gate from a counter can be routed to a different counter source. cRIO-905x User Manual | © National Instruments | 95...
  • Page 96 Some of these options may not be available in some driver software. Refer to the "Device Routing in MAX" topic in the NI-DAQmx Help or the LabVIEW Help for more information about available routing options. Routing Counter n Source to an Output Terminal You can route Counter n Source out to any PFI terminal.
  • Page 97 Routing Signals to Counter n HW Arm Input Any of the following signals can be routed to the Counter n HW Arm input: • Any PFI terminal • AI Reference Trigger • AI Start Trigger cRIO-905x User Manual | © National Instruments | 97...
  • Page 98 • Analog Comparison Event • Change Detection Event 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 the "Device Routing in MAX" topic in the NI-DAQmx Help or the LabVIEW Help for more information about available routing options.
  • Page 99: Worldwide Support And Services

    1 866 ASK MYNI (275 6964). For support outside the United States, visit the Worldwide Offices section of ni.com/niglobal access the branch office websites, which provide up-to-date contact information. cRIO-905x User Manual | © National Instruments | 99...
  • Page 100 NI trademarks. Other product and company names mentioned herein are trademarks or trade names of their respective companies. For patents covering NI products/technology, refer to the appropriate location: Help»Patents in your software, the file on your media, or the National Instruments Patent Notice at . You can find patents.txt ni.com/patents...

Table of Contents