Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
ni.com
NI CompactRIO
ni.com
With both an FPGA and a PowerPC processor, the Single-Board RIO platform has the flexibility to handle a variety of programming tasks and algorithms in an efficient manner. Onboard Ethernet, combined with a Wi-Fi adapter, enables real-time wireless communication, debugging, and deployment of software
Nick Morozovsky, Mechanical Engineering PhD student, Switchblade project leader
ni.com
ni.com
ni.com
"The combination of NI LabVIEW and NI CompactRIO was ideal for this application, combining the computational power to handle the low level control and inverse kinematic calculations while running the operational logic and monitoring function at the same time. time. The small and low power nature of the cRIO and touch panel computers is perfectly suited to the marine environment. environment. Andrew Clegg, Industrial Systems and Control Ltd
ni.com
ni.com
In the past, we would have needed a team of four people a controls expert, a mechanical engineer, an electrical engineer, and a programmer, programmer, person. now it takes only one person . Mechanical Designers Sean Dougherty
Software Designers FPGA Designers
Mechatronics Supervisor MacDonald Dettwiler and Associates
Custom IC Designers
ASIC Designers
ni.com
2
Generate C Code
3
Compile for Real-Time Target
4
Debug Application on Real-Time
Programming Environment
Multithreading scheduller
C Generator
ni.com
C Code Generation
Inherent Multithreading
LabVIEW Compiler
ni.com
10
Design
Prototype
Deploy
ni.com
11
Hardware APIs
BuiltBuilt-in Libraries
Deployment Targets
ni.com
Technology Abstractions
12
Programming Approaches
Construct and analyze system models Design basic and advanced control algorithms Simulate response of controller designs Analyze control efficiency and stability interactively Implement systems with built-in real-time I/O
13
ni.com
ni.com
14
Simulink is a registered trademark of The MathWorks, Inc.
Simulation of dynamic systems Real-time implementation for rapid control prototyping or hardware-in-theloop simulation
ni.com
15
LabVIEW MathScript RT
Powerful textual programming for Control Design, Signal Processing, and Math
Hundreds of built-in functions Reuse many of your m-file scripts created with The MathWorks, Inc.s MATLAB software and others
Interactive and programmatic interfaces Does not require 3rd party software
ni.com
16
ni.com
17
40 Million Tonnes
UK Road Fuel Consumption
The Problem
30%
UK Energy Consumption
Aerodynamic Drag
Most energy waste at motorway speeds
80%
Caused by Rear Airflow Separation
ni.com
19
Feedback Control for Road Vehicle Drag Reduction Using Pulsating Jets
We are synthetically controlling airflow, which directly results in significant reductions in road transportation fuel consumption and carbon emissions.
Inputs: 12 Pressure Sensors Outputs: jets of air driven by loudspeakers enclosed in the body
Using a high performance real-time NI PXI system, we acquired data across 12 channels and multiplied by high-order transfer functions within just 50s.
Georgios Rigas
ni.com
20
Feedback Control for Road Vehicle Drag Reduction Using Pulsating Jets
We are synthetically controlling airflow, which directly results in significant reductions in road transportation fuel consumption and carbon emissions.
Inputs: Pressure Sensors To program this, we used12 LabVIEW system Outputs: jets integrate of air driven by design software to seamlessly with loudspeakers enclosed in the body algorithms previously implemented in MATLAB with high-performance NI hardware. Using a high performance real-time
ni.com
Georgios Rigas MATLAB is a registered trademark of The MathWorks, Flow Inc. Control Group
21
NI PXI system, we acquired data across 12 channels and multiplied by high-order transfer functions within just 50s.
Timing
Textual Math
I/O integration
Data Flow
Parallel
Statecharts
ni.com
22
Design
Prototype
Deploy
ni.com
23
Event Response
Closed-Loop Control
Critical Tests
ni.com
24
Development Software
LabVIEW Real-Time
ni.com
25
ni.com
26
Introduction to Real-Time OS
Real-time does not always mean real fast Real-time means absolute reliability Real-time systems have timing constraints that must be met to avoid failure Determinism is the ability to complete a task within a fixed amount of time
ni.com
27
10-100 Hz
Unbounded
Real-Time OS
Scheduler ensures high-priority tasks execute first Direct control over all tasks Stand-alone (no mouse, keyboard, etc.)
ni.com
28
Up to 100 kHz
Bounded
Field programmable gate array (FPGA) A silicon chip with unconnected gates and other hardware resources Enables user to define and re-define functionality Circuit behavior is defined using software Circuit specification (gate connection, etc.) is loaded into the hardware No OS is needed for execution of logic Custom hardware, fast execution, critical code Reconfiguration required after deployment
ni.com
29
FPGA Technology
Programmable Interconnects
Logic Blocks
I/O Blocks
30
A B C D
ni.com
31
new possibilities for measurement and data processing speed Low Latency Run algorithms at deterministic rates down to 5 ns Reconfigurable Create DUT / application-specific personalities True Parallelism Enables parallel tasks and pipelining, reducing test times
ni.com
32
LabVIEW FPGA
ni.com
33
VHDL
~4000 lines
High-Speed Control
ni.com
34
Design
Prototype
Deploy
ni.com
35
Road Ready Vehicle for Blind Non-visual driving interfaces FPGA Parallel Processing Potential Field Algorithms
ni.com
36
ni.com
37
Model
Processor Speed (MHz) 266 400 266 400 266 400 266 400
3.3V DIO Lines 110 110 110 110 110 110 110 110
ni.com
38
ni.com
39
NI Products used: LabVIEW FPGA, LabVIEW Real Time, NI sbRIO, VISA Drivers
Reasons for choosing NI Products: Development of this type of project from the ground up could not have been achieved using any other platform in just three months. The LabVIEW PID toolkit took weeks off development time and the sbRIO provided simple integration of COTS sensors
ni.com
40
Hexapod
Inverse Kinematics and Closed Loop Balancing on sbRIO
ni.com
41
Design
Interactive Algorithm Design Control design Dynamic system simulation Digital filter design Advanced mathematics
Prototype
Tight I/O Integration I/O modules and drivers COTS FPGA hardware VHDL and C code integration Design validation tools
Deploy
Deployable Targets Rugged deployment platforms Distributed networking Custom designs
ni.com
42