Sei sulla pagina 1di 42

Research Platforms for Embedded Control and Design

Control, Robotics, Mechatronics & Embedded

ni.com

Graphical System Design


A Platform-Based Approach for Measurement and Control
Test Monitor Embedded Control Mechatronics

Industries and Applications

Hardware and I/O Devices

Desktops and PC-Based DAQ

PXI and Modular Instruments

NI CompactRIO

Open Connectivity With Third-Party I/O

ni.com

Multi-Modal Rover for Search and Rescue


Coordinated Robotics Lab

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

MIT: Cheetah Robot Control & Test Systems


sbRIO-9642 (Treadmill Control) cRIO-9082 (Robot Control) Developing a control architecture for legged locomotion Sensor fusion for multi-parallel IMUs and laser distance sensors array Significant time saving for system integration

ni.com

2012 Graphical System Design Achievement Awards Overall Winner

Andy Clegg & Petros Savidis


Industrial Systems & Control (ISC) Ltd. Controlling a Motion Compensated Gangway to Access Offshore Turbines

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

Mechatronics System Components

ni.com

Improving the Efficiency of Design Teams


Domain Experts System Architects
Domain Experts

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

Development with Traditional Tools


1
Develop algorithm Prepare for Dual Core

2
Generate C Code

3
Compile for Real-Time Target

4
Debug Application on Real-Time

Programming Environment

Multithreading scheduller

C Generator

Real-Time Compiler, Linker, Debugger

+ Real-Time Processor and Other Hardware

Development Tool Chain

Third-Party Embedded Tools

ni.com

Development with LabVIEW


1
Graphical and Textual Programming

Prepare for Dual Core

C Code Generation

Compiler for Real-Time Target

Debug Application on Real-Time

LabVIEW MathScript RT Module

Inherent Multithreading

LabVIEW Compiler

LabVIEW Real-Time Module

ni.com

10

Design

Prototype

Deploy

ni.com

11

A Highly Productive Graphical Development Environment for Engineers and Scientists

Hardware APIs

BuiltBuilt-in Libraries

Custom User Interfaces

Deployment Targets
ni.com

Technology Abstractions
12

Programming Approaches

LabVIEW Control Design & Simulation

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

Standard Notation Reduces Learning Curve


LabVIEW Control Design & Simulation Module

The Simulink Software Environment

ni.com

14
Simulink is a registered trademark of The MathWorks, Inc.

Dynamic System Simulation & Control

Single environment for:


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

A native LabVIEW solution


Interactive and programmatic interfaces Does not require 3rd party software

MATLAB is a registered trademark of The MathWorks, Inc.

ni.com

16

Combined Graphical / Textual Programming


A Hybrid Approach

ni.com

17

Fractal Generation .m Script Integration Muilti-Core Processing


ni.com
18

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

Flow Control Group

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.

Models of Computation in Action

Timing

Textual Math

I/O integration

Data Flow

Parallel

C & HDL Code

Statecharts

Control & Simulation

ni.com

22

Design

Prototype

Deploy

ni.com

23

Critical Real-Time Applications

Event Response

Closed-Loop Control

Critical Tests

ni.com

24

Real-Time Development Tools


Compiler Linker Debugger System Analysis Tools RTOS
Real-Time Hardware

Development Software

LabVIEW Real-Time

Execution Trace Tool

Microprocessor I/O Connectivity

LabVIEW Real-Time Target

ni.com

25

Prototyping Hardware NI CompactRIO


Rugged, reconfigurable deployment platform for controls, mechatronics, and robotics applications FPGA parallel processing capabilities to optimize your control algorithms Up to 40 MHz control loop rates with FPGA-based backplane Modular I/O modules for flexible I/O provide optimum flexibility and mixed-signal integration

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

Operating System Characteristics


General Purpose OS
High-priority tasks can be preempted by lower-priority tasks Extraneous background programs Screen savers, disk utilities, virus software, etc. Peripheral Interrupts Mouse, keyboard, etc. Loop Rate Software Jitter

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

Introduction to FPGA Technology


What is an FPGA?

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

How does an FPGA work?


When is an FPGA used?


ni.com

29

FPGA Technology

Programmable Interconnects

Logic Blocks

FieldField-Programmable Gate Array


ni.com

I/O Blocks

30

FPGA Logic Implementation


Implementing Logic on FPGA: F = {(A+B)CD} E E F LabVIEW FPGA Code

A B C D

ni.com

31

Why are FPGAs useful?


High Reliability Designs implemented in hardware High Performance Computational abilities open

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

FPGA Technology - Abstract Complexity


Counter Analogue I/O I/O with DMA

LabVIEW FPGA
ni.com
33

VHDL

~4000 lines

High-Speed Control

About 200 kHz loop rate

ni.com

34

Design

Prototype

Deploy

ni.com

35

Blind Driver Challenge


Student Design from Virginia Tech

Road Ready Vehicle for Blind Non-visual driving interfaces FPGA Parallel Processing Potential Field Algorithms

ni.com

36

NI Single-Board RIO Platform


The power of CompactRIO on a single board.
Digital I/O Analog I/O Real-Time Processor FPGA C Series I/O

ni.com

37

NI Single-Board RIO Platform

Model

Processor Speed (MHz) 266 400 266 400 266 400 266 400

FPGA Size (Gates) 1M 2M 1M 2M 1M 2M 1M 2M

3.3V DIO Lines 110 110 110 110 110 110 110 110

AI Channels (NI 9205) 0 0 32 32 32 32 32 32

AO Channels (NI 9263) 0 0 0 0 4 4 4 4

24V DI/DO (NI 9425 & NI 9476) 0 0 0 0 0 0 32/32 32/32

C Series Expansion (Slots) 3 3 3 3 3 3 3 3

sbRIO-9601 sbRIO-9602 sbRIO-9611 sbRIO-9612 sbRIO-9631 sbRIO-9632 sbRIO-9641 sbRIO-9642

ni.com

38

NI LabVIEW RIO Evaluation Kit


RIO Evaluation hardware (315)
sbRIO-9636 400 MHz Real-Time Controller AI, AO, DIO, LCD Screen 90-day extended evaluation version of NI LabVIEW, Real-Time and FPGA Step-by-Step Tutorials All necessary cables and accessories Online Community Support Every customer interested in LabVIEW RT or FPGA

ni.com

39

LabVIEW Controlled Quadcopter


Application: An aerial vehicle designed, developed and deployed using Graphical Systems Design

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

Graphical System Design

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

Potrebbero piacerti anche