200 likes | 814 Views
Intro to CompactRIO – Oregon State University Matt Spiegelberg Field Sales Engineer Oregon / SW Washington. NI CompactRIO FPGA-Based PAC . Real-Time Processor. FPGA. Reconfigurable FPGA for high-speed and custom I/O timing, triggering , and control.
E N D
Intro to CompactRIO – Oregon State UniversityMatt SpiegelbergField Sales EngineerOregon / SW Washington
NI CompactRIO FPGA-Based PAC Real-Time Processor FPGA • Reconfigurable FPGA for high-speed and custom I/O timing, triggering, and control • I/O modules with built-in signal conditioning for connection to sensors/actuators • Real-time processor for reliable measurement, analysis, connectivity, and control
CompactRIO Applications • In-Vehicle Data Acquisition • In-Vehicle Data Acquisition • Automobiles, motorcycles, recreational vehicles, research aircraft, trains • Engine and ECU test cells • HIL testing of engines and engine controllers, sensor simulation using FPGA • Rapid Control Prototyping • Automotive/aerospace control prototyping • Machine Monitoring • Machine Condition Monitoring • Bearing order analysis, lubrication monitoring, cooling, combustion • Mobile/portable DSA, NVH • Noise, vibration, harshness; dynamic signal analysis; acoustics • Distributed Acquisition • Central controller with distributed I/O nodes over Ethernet/wireless Machine Control • Packaging/Processing • High-speed motion control, batch control, discrete control • Heavy Machinery Control • Real-time signal processing and control of power electronics, hydraulic systems • Semiconductor/Biomed • Custom motion and vision inspection, material handling
Distributed System Manager • Monitor systems on the network • Manage published data • Adds test panels to CompactRIO
New LabVIEW 8.6 Programming Model for CompactRIO NI CompactRIO I/O Modules LabVIEW Real-Time FPGA I/O Modules RIO Scan Interface LabVIEW Real-Time NI Scan Engine I/O Variables I/O memory table FPGA Host Interface LabVIEW FPGA VI
I/O Variable Access Scan Engine Memory Map Physical I/O Physical I/O Physical I/O Physical I/O
I/O Alias • References an I/O variable • Adds additional custom scaling • Maintains code portability AI0 I/O variable I/O Memory Map AI1 Fixed reference AI2 AI3 I/O alias Configurable Configurable
NI Scan Engine Network Publishing • “Out-of-box” I/O without programming • I/O variable and alias publishing • Published by NI Scan Engine • Configurable update rate • Not supported on Touch Panel (yet) • Bind to shared variables for additional features
The NI Scan Engine • Configured from cRIO controller properties • Runs above time critical priority by default
CPU Usage Benchmark Use LV FPGA for these applications • 1000 Hz 28.4% CPU 80 PID Channels • 500 Hz 100 Hz
Automotive Solution1: cRIO A/C ECU Prototyping LabVIEW RT/ FPGA Compact RIO System Digital Input18CH Thermocouple Input8CH
Solution1 cRIO A/C ECU Prototyping cRIO-9002 cRIO-9102 cRIO-9211 cRIO-9411 cRIO-9932 cRIO-9935 • Design the A/C control model and In vehicle ECU prototyping test system • In addition to the ECU prototype model which controls the air conditioner as like a real ECU does, a cRIO itself can measure and save all temperature data and control parameters in a moving car. • Benefit from size, low power consumption, speedy boot up from Ignition ON
Solution 2In-vehicle data logging system CAN Input Axel gap, Engine revolutions Sampling rate: 10msec Analog Input (Torque, Temperature, Pressure) Sampling rate: 10msec 802.11g Wireless LAN Operator User Interface、 Display measurement data for driver 54Mbps maximum data transfer rate Test Menu Setting Parameter Display measurement data Generate the report Display and save data transferred from vehicle Transfer the action data for driver Generate the report
FedEx Fire Suppression System with NI Single-Board RIO • Embedded temperature monitoring and control of suppression system • Protects packages, pilots, and planes from fires • Rapid embedded prototyping with CompactRIO and LabVIEW – fast deployment with NI Single-Board RIO “We were able to start with LabVIEW and CompactRIO for prototyping and quickly migrate our code to the new NI Single-Board RIO for deployment – all in less than a year.” Jeremy Snow, President at Ventura Aerospace Prototype Deploy
KCBioMediX • 600,000 premature infants born in the U.S. each year • NTrainer System based on CompactRIO and LabVIEW Statechart Module • Pressure monitoring/control • Going to NI Single-Board RIO for high volumes “With National Instruments LabVIEW and NI CompactRIO, we were able to reduce our development cost by $250,000 … from four months to four weeks.” Dave Stalling, Chief Technical Officer at KCBioMediX
FAQs • Problem:I have used the specialty digital functionality of CompactRIO Scan Mode to configure a digital module as a counter or quadrature encoder and need to reset it programmatically. How can I do this?Solution:The Reset Counter (Scan Interface) VI can be used to reset specialty digital counters, as well as the position measurement of a quadrature encoder. It can be located here: ...LabVIEW 8.6\examples\CompactRIO\Shared\Reset Counter (Scan Interface).vi
Problem: I am using CompactRIO Scan Mode and need to programmaticlly set the shunt calibration of a channel. How can I do this?Solution: Use the Set Shunt Calibration (Scan Interface) VI located at: ...\LabVIEW 8.6\examples\CompactRIO\Shared\Set Shunt Calibration (Scan Interface) .vi