Intelligent real-time embedded controller for compactrio (22 pages)
Summary of Contents for National Instruments cRIO-904 Series
Page 1
USER MANUAL cRIO-904x Embedded CompactRIO Controller with Real-Time Processor and Reconfigurable FPGA This document describes the features of the cRIO-904x and contains information about mounting and operating the device. In this document, the cRIO-9040, cRIO-9041, cRIO-9042, cRIO-9043, cRIO-9045, cRIO-9046, cRIO-9047, cRIO-9048, and cRIO-9049 are referred to collectively as cRIO-904x.
Contents Configuring the cRIO-904x...................... 3 Connecting the cRIO-904x to the Host Computer Using USB........3 Connecting the cRIO-904x to the Host Computer or Network Using Ethernet....4 Configuring Startup Options..................... 4 cRIO-904x Features........................6 Ports and Connectors......................6 Buttons..........................12 LEDs..........................
Connecting the cRIO-904x to the Host Computer or Network Using Ethernet Complete the following steps to connect the cRIO-904x 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 You can configure the RJ-45 Gigabit Ethernet port 1 in Measurement &...
Table 1. cRIO-904x Startup Options (Continued) Startup Option Description LabVIEW Rebooting the cRIO-904x with this setting on enables you to add the Project Access target to a LabVIEW project. Enable Rebooting the cRIO-904x with this setting on enables the embedded UI, Embedded UI which allows you to interact with the front panels of VIs running on the cRIO-904x using input and display devices connected directly to the...
Page 8
implementing a type-A male connector. Use a USB Type-C multiport adapter to simultaneously use this port as a display output and a USB host port. The following NI USB Type-C adapters are available for the cRIO-904x. Table 2. NI USB Type-C Adapters for cRIO-904x Adapter Length Part Number USB to DVI Adapter with Retention, USB Type-C Male to DVI-D...
Page 10
Table 7. cRIO-904x SD Storage Accessories SD Card Capacity Part Number Industrial SD Card, -40 to 85 °C, UHS-I 16 GB 786362-01 32 GB 786363-01 SD Door (x3) 786218-01 SD Card Slot Cover You must use the SD card slot cover to protect the SD card in hazardous locations. Do not remove an SD card while either LED is flashing or lit because file corruption may result.
Table 10. RS-485 Serial Port Pinout Pinout Signal No Connect TXD- TXD+ No Connect No Connect RXD- RXD+ No Connect No Connect Isolated GND The following accessory is available to connect the RS-485 serial port to a 9-pin DSUB plug. Notice To ensure the specified EMC performance, you must use an isolated cable with the RS-485 serial port.
Troubleshooting Network Connectivity You can use the RESET button to troubleshoot network connectivity. Complete the following steps to reset the network adapters to default settings. Hold the RESET button for 5 seconds, and then release it to boot the controller in safe mode and enable Console Out.
Page 16
Table 14. STATUS LED Indicators LED Pattern Indication Color Yellow Blinks twice and The cRIO-904x is in safe mode. Software is not installed, pauses which is the factory default state, or software has been improperly installed on the cRIO-904x. An error can occur when an attempt to upgrade the software is interrupted.
Table 16. SD In Use LED Indicator LED Color LED Pattern Indication SD IN USE Green There is no SD card present in the slot or the cRIO-904x has unmounted the SD card from the operating system. It is safe to remove the SD card from the slot.
FPGA using different terminology for timing and clock mechanisms. The documentation will use the term based on the programming mode discussed. 80 MHz Timebase 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.
Page 21
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-904x only supports layer 3-4 communication methods. Operating on the layer 2 yields better performance for the IEEE 802.1AS-2011.
configuration challenges compared to IEEE 1588-2008. A cRIO-904x controller acts as a time-aware end station for both protocols. IEEE 1588 External Switch Requirements To take advantage of the network synchronization features of the cRIO-904x controllers, ensure that your network infrastructure meets certain requirements depending on which IEEE 1588 profile is implemented for your application: •...
Figure 8. 8-slot cRIO-904x Module Immobilization Accessory Installation Ensure that all the C Series modules are installed in the cRIO-904x and the latches are locked in place. Remove the center right panel screw from the top and bottom of the cRIO-904x using the Torx T10 driver.
Page 26
Figure 11. cRIO-904x Reference Mounting Configuration Horizontal mounting orientation. Mounting substrate options: • Mount the cRIO-904x 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.
Figure 13. cRIO-904x Cabling Clearance Cabling Clearance 29.1 mm (1.14 in.) Measure the ambient temperature at each side of the cRIO-904x, 63.5 mm (2.50 in.) from the side and 38.1 mm (1.50 in.) forward from the rear of the cRIO-904x, as shown in the following figure.
Page 30
What to Use • cRIO-904x • M4 screws, user provided, which must not exceed 8 mm of insertion into the cRIO-904x – x4 for 4-slot models – x6 for 8-slot models Figure 18. Mounting the 4-slot cRIO-904x Directly on a Flat Surface 30 | ni.com | cRIO-904x User Manual...
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. Panel Mounting Dimensions The following figures show the panel mounting dimensions for the 4-slot and 8-slot cRIO-904x models.
Page 36
Figure 27. Mounting the 8-slot cRIO-904x on a DIN Rail Align the cRIO-904x and the DIN rail clip. Fasten the DIN rail clip to the cRIO-904x using the screwdriver and M4 x 10 screws. Tighten the screws to a maximum torque of 1.3 N · m (11.5 lb · in.). You must use the screws provided with the NI DIN rail kit because they are the correct depth and thread for the DIN rail clip.
Page 38
Figure 30. Mounting the 8-slot cRIO-904x on a Desktop Align the brackets with the mounting holes on the ends of the cRIO-904x. Use the screwdriver to tighten the captive screws on the end of the brackets. Desktop Mounting Dimensions The following figures show the desktop mounting dimensions for the 4-slot and 8-slot cRIO-904x models.
Figure 33. cRIO-904x Desktop Mounting Side Dimensions 127.2 mm (5.01 in.) 132.8 mm (5.23 in.) BIOS Configuration Resetting the System CMOS and BIOS Settings The cRIO-904x BIOS configuration information is stored in a nonvolatile memory location that does not require a battery to preserve the settings. Additionally, the BIOS optimizes boot time by saving specific system information to memory backed up by a battery (CMOS).
Table 17. Navigation Keys (Continued) Key(s) Function(s) <+>, <-> Cycle between all available settings for a selected configuration option. <F8> Load the previous values for all BIOS configuration settings. <F9> Load the optimal default values for all BIOS configuration settings. The optimal default values are the same as the shipping configuration default values.
• Legacy USB Support—This setting specifies whether legacy USB support is enabled. Legacy USB support refers to the ability to use a USB keyboard and mouse during system boot or in a legacy operating system such as DOS. Valid options are Enabled, Disabled, and Auto.
Choosing Your Programming Mode The cRIO-904x supports three programming modes. The programming modes are set per slot on a chassis. Real-Time Enables you to use C Series modules directly from LabVIEW Real- 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 48
information and wiring diagrams, refer to the documentation included with your C Series modules. The cRIO controller has eight input timing engines, which means that up to eight hardware- timed analog input tasks can be running at a time on the controller. An analog input task can include channels from multiple analog input modules.
Page 50
AI Start Trigger Signal Use the Start Trigger signal to begin a measurement acquisition which consists of one or more samples. Once the acquisition begins, configure the acquisition to stop in one of the following ways: • When a certain number of points has been sampled (in finite mode) •...
Page 52
AI Pause Trigger Signal You can use the Pause Trigger to pause and resume a measurement acquisition. The internal sample clock pauses while the external trigger signal is active and resumes when the signal is inactive. You can program the active level of the pause trigger to be high or low. Using a Digital Source To use the Pause Trigger, specify a source and a polarity.
For more information about which C Series modules are compatible with the cRIO controller, go to ni.com/info and enter the Info Code rdcdaq Getting Started with AI Applications in Software You can use the cRIO controller in the following analog input applications: •...
Page 56
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. After the data is downloaded, new data cannot be written to the FIFO.
Page 58
Using a Digital Source To use AO 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 • Any PFI terminal • AI Reference Trigger •...
Page 60
Serial DIO versus Parallel DIO Modules Serial digital modules have more than eight lines of digital input/output. They can be used in any controller slot and can perform the following tasks: • Software-timed and hardware-timed digital input/output tasks Parallel digital modules can be used in any controller slot and can perform the following tasks: •...
Page 62
receives a DI Sample Clock signal when the FIFO is full, it reports an overflow error to the host software. A sample consists of one reading from each channel in the DI task. DI Sample Clock signals the start of a sample of all digital input channels in the task. DI Sample Clock can be generated from external or internal sources as shown in the following figure.
Page 64
DI Reference Trigger Signal Use a reference trigger signal 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.
Page 66
• Finite acquisition • Continuous acquisition For more information about programming digital input applications and triggers in software, refer to the NI-DAQmx Help or the LabVIEW Help for more information. 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.
Page 68
generation continues until you stop the operation. There are three different continuous generation modes that control how the data is written. 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.
Page 70
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 • Any PFI terminal • AI Reference Trigger •...
Page 72
PFI Filters You can enable a programmable debouncing filter on each PFI signal. When the filter is enabled, the controller samples the inputs with a user-configured Filter Clock derived from the controller timebase. This is used to determine whether a pulse is propagated to the rest of the circuit.
Page 74
• DI Sample Clock • DI Start Trigger • DO Sample Clock • CTR n Internal Output • Freq Out • • Change Detection Event • Analog Comparison Event Not all timed counter operations require a sample clock. For example, a simple buffered pulse width measurement latches in data on each edge of a pulse.
Page 76
Cascading Counters You can internally route the Counter n Internal Output and Counter n TC signals of each counter to the Gate inputs of the other counter. By cascading two counters together, you can effectively create a 64-bit counter. By cascading counters, you also can enable other applications.
Page 78
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: •...
Page 80
Refer to the following sections for more information about cRIO controller pulse-width measurement options: • Single Pulse-Width Measurement • Implicit Buffered Pulse-Width Measurement • Sample Clocked Buffered Pulse-Width Measurement Single Pulse-Width Measurement With single pulse-width measurement, the counter counts the number of edges on the Source input while the Gate input remains active.
Page 82
Single Pulse Measurement Single (on-demand) pulse measurement is equivalent to two single pulse-width measurements on the high (H) and low (L) ticks of a pulse, as shown in the figure below. Figure 56. Single (On-Demand) Pulse Measurement Counter Armed Gate Source Latched Value...
Page 84
The counter begins counting when it is armed. The arm usually occurs between edges on the Gate input. You can select whether to read the first active low or active high semi-period using the CI.SemiPeriod.StartingEdge property in NI-DAQmx. The following figure shows an example of an implicit buffered semi-period measurement. Figure 59.
Page 86
Figure 61. High Frequency with Two Counters Width of Pulse (T) Pulse Pulse Gate … Source Pulse-Width Width of Measurement Pulse Frequency of fx = Large Range of Frequencies with Two Counters By using two counters, you can accurately measure a signal that might be high or low frequency.
Page 88
Figure 63. Sample Clocked Buffered Frequency Measurement (Averaging) Counter Armed Gate (fx) Source (fk) Sample Clock T1 T2 T1 T2 T1 T2 Buffer 2 10 2 10 When CI.Freq.EnableAveraging is set to False, the frequency measurement returns the frequency of the pulse just before the sample clock. This single measurement is a single frequency measurement and is not an average between clocks as shown in the following figure.
Page 90
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. Take for example, measuring a 50 kHz signal. Assuming that the measurement times for the sample clocked (with averaging) and two counter frequency measurements are configured the same, the following table summarizes the results.
Page 92
For information about connecting counter signals, refer to the Default Counter/Timer Routing section. Period Measurement In period measurements, the counter measures a period on its Gate input signal after the counter is armed. You can configure the counter to measure the period between two rising edges or two falling edges of the Gate input signal.
Page 94
reload phase becomes true. After the reload occurs, the counter continues to count as before. The figure below illustrates channel Z reload with X4 decoding. Figure 68. Channel Z Reload with X4 Decoding Ch A Ch B Ch Z Max Timebase Counter Value A = 0 B = 0...
Page 96
Figure 71. Single Two-Signal Edge-Separation Measurement Counter Armed Measured Interval GATE SOURCE Counter Value Latched Value 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. The counter counts the number of rising (or falling) edges on the Source input occurring between an active edge of the Gate signal and an active edge of the Aux signal.
Page 98
You can specify a pulse width. The pulse width is 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 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).
Page 102
Table 25. Finite Implicit Buffered Pulse Train Generation Sample Idle Ticks Active Ticks Figure 80. Finite Implicit Buffered Pulse Train Generation SOURCE Counter Armed Continuous Buffered Implicit 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 generation continues until you stop the operation.
Page 104
Figure 82. Frequency Generator Block Diagram Frequency Output ÷ 20 MHz Timebase Timebase Frequency Generator FREQ OUT 100 kHz Timebase Divisor (1–16) The frequency generator generates the Frequency Output signal. The Frequency Output signal is the Frequency Output Timebase divided by a number you select from 1 to 16. The Frequency Output Timebase can be either the 20 MHz Timebase, the 20 MHz Timebase divided by 2, or the 100 kHz Timebase.
Page 106
• Counter n Internal Output and Counter n TC Signals • Frequency Output Signal In this section, n refers to the cRIO controller Counter 0, 1, 2, or 3. For example, Counter n Source refers to four signals—Counter 0 Source (the source input to Counter 0), Counter 1 Source (the source input to Counter 1), Counter 2 Source (the source input to Counter 2), or Counter 3 Source (the source input to Counter 3).
Page 108
• Analog Comparison Event • Change Detection Event In addition, a counter’s Internal Output, Gate or Source can be routed to a different counter’s 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 the "Device Routing in MAX"...
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...
Need help?
Do you have a question about the cRIO-904 Series and is the answer not in the manual?
Questions and answers