32
1 © 2015 The MathWorks, Inc. Progettazione meccatronica per sistemi avionici Aldo Caraceto

Progettazione meccatronica per sistemi avionici · Progettazione meccatronica per sistemi avionici Aldo Caraceto. Title: PowerPoint Presentation Author: Marene Salzman Keywords: Version

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Progettazione meccatronica per sistemi avionici · Progettazione meccatronica per sistemi avionici Aldo Caraceto. Title: PowerPoint Presentation Author: Marene Salzman Keywords: Version

1© 2015 The MathWorks, Inc.

Progettazione meccatronica per

sistemi avionici

Aldo Caraceto

Page 2: Progettazione meccatronica per sistemi avionici · Progettazione meccatronica per sistemi avionici Aldo Caraceto. Title: PowerPoint Presentation Author: Marene Salzman Keywords: Version

2

Key Points

▪ Simulating the system in one

environment enable to design

higher quality controls

▪ Testing different actuator designs,

having different levels of detail,

in one environment saves time

and encourages innovation

▪ Plant model supports the

entire development processTune

Parameter

Generate

C Code

Real-Time

Hardware

Configure

Model

ω

Current

Current

Control

i

ωSpeed

Control

Kp Ki

0.62 0.29

Page 3: Progettazione meccatronica per sistemi avionici · Progettazione meccatronica per sistemi avionici Aldo Caraceto. Title: PowerPoint Presentation Author: Marene Salzman Keywords: Version

3

Agenda

▪ Example: Flight actuation system

– Benefits of Model-Based Design

▪ Actuator design

– Link requirements and design

– Modeling the mechanical system

– Determining actuator requirements

– Tradeoff studies

▪ Optimizing system performance

– Tune controller automatically

▪ Model deployment

– HIL testing

– Protecting IP

Page 4: Progettazione meccatronica per sistemi avionici · Progettazione meccatronica per sistemi avionici Aldo Caraceto. Title: PowerPoint Presentation Author: Marene Salzman Keywords: Version

4

▪ System

▪ Simulation goals

1. Determine requirements for actuation system

2. Test actuator designs

3. Optimise system performance

4. Run simulation on real-time hardware for HIL tests

Example: Aileron Actuation System

ControllerDesired Angle

Measured

Angle

Actuator Force

Page 5: Progettazione meccatronica per sistemi avionici · Progettazione meccatronica per sistemi avionici Aldo Caraceto. Title: PowerPoint Presentation Author: Marene Salzman Keywords: Version

5

Aileron Actuation System – Simulink Model

Page 6: Progettazione meccatronica per sistemi avionici · Progettazione meccatronica per sistemi avionici Aldo Caraceto. Title: PowerPoint Presentation Author: Marene Salzman Keywords: Version

6

DESIGN

Traditional Design Process

INTEGRATION AND TEST

Emb. Code

IMPLEMENTATION

REQUIREMENTSCannot validate design

against requirements

Manual coding is slow,

buggy, and hard to verify

Can only find problems

using hardware prototypes

Control ElectricalMechanical

Cannot test or optimize

fully integrated design

Page 7: Progettazione meccatronica per sistemi avionici · Progettazione meccatronica per sistemi avionici Aldo Caraceto. Title: PowerPoint Presentation Author: Marene Salzman Keywords: Version

7

DESIGN

Model-Based Design

INTEGRATION AND TESTINTEGRATION AND TEST

IMPLEMENTATION

Emb. Code

IMPLEMENTATION

HIL System

REQUIREMENTSCannot validate design

against requirements

Manual coding is slow,

buggy, and hard to verify

Can only find problems

using hardware prototypes

Save time/increase quality

by automatically

generating embedded code

Detect errors right away

with continuous verification

SYSTEM LEVEL DESIGN

Control ElectricalMechanical

Cannot test or optimize

fully integrated design

Optimize design in a single

simulation environment

TE

ST

& V

ER

IFIC

AT

ION

Simscape

Lower costs

using HIL tests

Page 8: Progettazione meccatronica per sistemi avionici · Progettazione meccatronica per sistemi avionici Aldo Caraceto. Title: PowerPoint Presentation Author: Marene Salzman Keywords: Version

8

Agenda

▪ Example: Flight actuation system

– Benefits of Model-Based Design

▪ Actuator design

– Link requirements and design

– Modeling the mechanical system

– Determining actuator requirements

– Tradeoff studies

▪ Optimizing system performance

– Tune controller automatically

▪ Model deployment

– HIL testing

– Protecting IP

Page 9: Progettazione meccatronica per sistemi avionici · Progettazione meccatronica per sistemi avionici Aldo Caraceto. Title: PowerPoint Presentation Author: Marene Salzman Keywords: Version

9

Requirements

1. Mechanical System Requirements

Link Specification and Design

Problem: Difficult to check

design against specification.

Solution: Link design and specification

using Simulink Requirements

Situation:

Part Numbers

Aileron System Req.

1. Mechanical System

Layout

1. “Mechanical System RequirementsRequirements

Add link to Word selection

Add link to active Excel cell

Design Verifier

Page 10: Progettazione meccatronica per sistemi avionici · Progettazione meccatronica per sistemi avionici Aldo Caraceto. Title: PowerPoint Presentation Author: Marene Salzman Keywords: Version

10

Modeling the Mechanical System

Problem: Model the mechanical

system within Simulink

Solution: Import the mechanical model

from CAD into Simscape Multibody

System:

Aileron

Angle

CAD

Simscape

Joints

Page 11: Progettazione meccatronica per sistemi avionici · Progettazione meccatronica per sistemi avionici Aldo Caraceto. Title: PowerPoint Presentation Author: Marene Salzman Keywords: Version

11

Page 12: Progettazione meccatronica per sistemi avionici · Progettazione meccatronica per sistemi avionici Aldo Caraceto. Title: PowerPoint Presentation Author: Marene Salzman Keywords: Version

12

Modeling the Mechanical System

Problem: Model the mechanical

system within Simulink

Solution: Import the mechanical model

from CAD into Simscape Multibody

System:

Aileron

Angle

CAD

Simscape

Joints

Page 13: Progettazione meccatronica per sistemi avionici · Progettazione meccatronica per sistemi avionici Aldo Caraceto. Title: PowerPoint Presentation Author: Marene Salzman Keywords: Version

13

Determining Actuator Requirements

Problem: Determine the requirements

for an aircraft aileron actuator

Solution: Use Simscape Multibody to

model the aileron and use inverse

dynamics to determine the required force

Model:

Aileron

Angle

Force

Page 14: Progettazione meccatronica per sistemi avionici · Progettazione meccatronica per sistemi avionici Aldo Caraceto. Title: PowerPoint Presentation Author: Marene Salzman Keywords: Version

14

Determining Actuator Requirements

Page 15: Progettazione meccatronica per sistemi avionici · Progettazione meccatronica per sistemi avionici Aldo Caraceto. Title: PowerPoint Presentation Author: Marene Salzman Keywords: Version

15

Determining Actuator Requirements

Problem: Determine the requirements

for an aircraft aileron actuator

Solution: Use Simscape Multibody to

model the aileron and use inverse

dynamics to determine the required force

Model:

Aileron

Angle

Force

Page 16: Progettazione meccatronica per sistemi avionici · Progettazione meccatronica per sistemi avionici Aldo Caraceto. Title: PowerPoint Presentation Author: Marene Salzman Keywords: Version

16

Testing Electrical and Hydraulic Designs

Problem: Select type of actuator

based on system-level requirements

Solution: Use Simscape Fluids and

Simscape Electronics to model the actuators,

and variant subsystems to test them

Model:

Page 17: Progettazione meccatronica per sistemi avionici · Progettazione meccatronica per sistemi avionici Aldo Caraceto. Title: PowerPoint Presentation Author: Marene Salzman Keywords: Version

17

Testing Electrical and Hydraulic Designs

Page 18: Progettazione meccatronica per sistemi avionici · Progettazione meccatronica per sistemi avionici Aldo Caraceto. Title: PowerPoint Presentation Author: Marene Salzman Keywords: Version

18

Testing Electrical and Hydraulic Designs

Problem: Select type of actuator

based on system-level requirements

Solution: Use Simscape Fluids and

Simscape Electronics to model the actuators,

and variant subsystems to test them

Model:

Page 19: Progettazione meccatronica per sistemi avionici · Progettazione meccatronica per sistemi avionici Aldo Caraceto. Title: PowerPoint Presentation Author: Marene Salzman Keywords: Version

19

Adjusting Fidelity Using Simscape Electronics ComponentsSemiconductors, Motors, Sensors, Op-Amps and Logic, Passive Devices

▪ Switching and

signal amplification

– Parameterize with data sheets

– Simple and detailed variants

▪ Thermal effects

– Effect on behavior

– Heat transfer to environment

▪ Measure power losses

Subset of libraries

Page 20: Progettazione meccatronica per sistemi avionici · Progettazione meccatronica per sistemi avionici Aldo Caraceto. Title: PowerPoint Presentation Author: Marene Salzman Keywords: Version

20

Adjusting Fidelity Using Simscape Electronics ComponentsSemiconductors, Motors, Sensors, Op-Amps and Logic, Passive Devices

▪ Translational and

rotational actuators

– Parameterize with data sheets

or with data from FEM software

– Specify electrical losses

▪ Thermal effects

– Temperature dependent behavior

– Heat transfer to environment

▪ Include or neglect switching effects

Subset of libraries

Page 21: Progettazione meccatronica per sistemi avionici · Progettazione meccatronica per sistemi avionici Aldo Caraceto. Title: PowerPoint Presentation Author: Marene Salzman Keywords: Version

21

Adjusting Fidelity Using Simscape Electronics ComponentsSemiconductors, Motors, Sensors, Op-Amps and Logic, Passive Devices

▪ Includes electronic, thermal,

and mechanical sensors

– Analog and digital

– Parameterization options

– Include or neglect

sensor bandwidth

▪ Test effects of

sensor damage or failure

on system performance

Subset of libraries

Page 22: Progettazione meccatronica per sistemi avionici · Progettazione meccatronica per sistemi avionici Aldo Caraceto. Title: PowerPoint Presentation Author: Marene Salzman Keywords: Version

22

Adjusting Fidelity Using Simscape Electronics ComponentsSemiconductors, Motors, Sensors, Op-Amps and Logic, Passive Devices

▪ Behavioral models

for fast simulation

– Similar behavior to models

with transistor implementation

– Enables testing of larger circuits

in less time

▪ Use models to perform

high-level design

– Avoid nonlinear effects

during normal circuit operation

Subset of libraries

Page 23: Progettazione meccatronica per sistemi avionici · Progettazione meccatronica per sistemi avionici Aldo Caraceto. Title: PowerPoint Presentation Author: Marene Salzman Keywords: Version

23

Adjusting Fidelity Using Simscape Electronics ComponentsSemiconductors, Motors, Sensors, Op-Amps and Logic, Passive Devices

▪ Linear and nonlinear devices

– Enable physical effects

▪ Specify operating limits

and tolerances

– Model realistic behavior

▪ Test effects of component failure

on system level performance

– Fault modeling

Subset of libraries

Page 24: Progettazione meccatronica per sistemi avionici · Progettazione meccatronica per sistemi avionici Aldo Caraceto. Title: PowerPoint Presentation Author: Marene Salzman Keywords: Version

24

Agenda

▪ Example: Flight actuation system

– Benefits of Model-Based Design

▪ Actuator design

– Link requirements and design

– Modeling the mechanical system

– Determining actuator requirements

– Tradeoff studies

▪ Optimizing system performance

– Tune controller automatically

▪ Model deployment

– HIL testing

– Protecting IP

Page 25: Progettazione meccatronica per sistemi avionici · Progettazione meccatronica per sistemi avionici Aldo Caraceto. Title: PowerPoint Presentation Author: Marene Salzman Keywords: Version

25

Optimizing System Performance

Problem: Optimize the speed

controller to meet system requirements

Solution: Tune controller parameters

with Simulink Design Optimization

Model:

ω

Angle

Current

Current

ControlSpeed

Control

i

ω

Speed

Control

Kp Ki

0.3 0.3

Kp Ki

0.62 0.29

Page 26: Progettazione meccatronica per sistemi avionici · Progettazione meccatronica per sistemi avionici Aldo Caraceto. Title: PowerPoint Presentation Author: Marene Salzman Keywords: Version

26

Optimizing System Performance

Page 27: Progettazione meccatronica per sistemi avionici · Progettazione meccatronica per sistemi avionici Aldo Caraceto. Title: PowerPoint Presentation Author: Marene Salzman Keywords: Version

28

Optimizing System Performance

Problem: Optimize the speed

controller to meet system requirements

Solution: Tune PID parameters with

Simulink Control Design

Model:

ω

Angle

Current

Current

ControlSpeed

Control

i

ω

Speed

Control

Kp Ki

0.3 0.3

Kp Ki

0.62 0.29

Page 28: Progettazione meccatronica per sistemi avionici · Progettazione meccatronica per sistemi avionici Aldo Caraceto. Title: PowerPoint Presentation Author: Marene Salzman Keywords: Version

29

Agenda

▪ Example: Flight actuation system

– Benefits of Model-Based Design

▪ Actuator design

– Link requirements and design

– Modeling the mechanical system

– Determining actuator requirements

– Tradeoff studies

▪ Optimizing system performance

– Tune controller automatically

▪ Model deployment

– HIL testing

– Protecting IP

Page 29: Progettazione meccatronica per sistemi avionici · Progettazione meccatronica per sistemi avionici Aldo Caraceto. Title: PowerPoint Presentation Author: Marene Salzman Keywords: Version

30

Configuring a Hydraulic Actuator

for HIL Testing

Problem: Configure solvers to

minimize computations and convert

to C code for real-time simulation

Solution: Use Simscape local solvers

on stiff physical networks and

Simulink Coder™ to generate C code

Model:

Tune

Parameter

Real-Time

Hardware

Generate

C Code

Configure

Model

Variable step, implicit solver (Reference)

Numerically

Stiff System

Control

Page 30: Progettazione meccatronica per sistemi avionici · Progettazione meccatronica per sistemi avionici Aldo Caraceto. Title: PowerPoint Presentation Author: Marene Salzman Keywords: Version

31

Sharing Models and

Protecting Intellectual Property

Problem: Share a component or library with

others that does not expose the source code.

Solution: Use the Model Reference

Protected Mode from Simulink

to protect intellectual property

Situation:

Ref_Model.slxp

>> Simulink.ModelReference.protect

Component

Protected

✓Simulate

✓Change parameter values

✓Does not require licenses

for Simscape add-on products

✓Source code protected

Model.slx

Ref_Model.slx

Share

Model using Simscape

and add-on products

Page 31: Progettazione meccatronica per sistemi avionici · Progettazione meccatronica per sistemi avionici Aldo Caraceto. Title: PowerPoint Presentation Author: Marene Salzman Keywords: Version

33

Key Points

▪ Simulating the system in one

environment enable to design

higher quality controls

▪ Testing different actuator designs,

having different levels of detail,

in one environment saves time

and encourages innovation

▪ Plant model supports the

entire development processTune

Parameter

Generate

C Code

Real-Time

Hardware

Configure

Model

ω

Current

Current

Control

i

ωSpeed

Control

Kp Ki

0.62 0.29

Page 32: Progettazione meccatronica per sistemi avionici · Progettazione meccatronica per sistemi avionici Aldo Caraceto. Title: PowerPoint Presentation Author: Marene Salzman Keywords: Version

34© 2015 The MathWorks, Inc.

Progettazione meccatronica per

sistemi avionici

Aldo Caraceto