35
1 © 2015 The MathWorks, Inc. Simulink作为企业级仿真 平台的应用 龚小平

Simulink as Your Enterprise Simulation Platform...Microsoft Team Foundation Server (TFS) integration available now from MathWorks File Exchange Team Workflows 42 设计合并 支持并行工程

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Simulink as Your Enterprise Simulation Platform...Microsoft Team Foundation Server (TFS) integration available now from MathWorks File Exchange Team Workflows 42 设计合并 支持并行工程

1© 2015 The MathWorks, Inc.

Simulink作为企业级仿真平台的应用

龚小平

Page 2: Simulink as Your Enterprise Simulation Platform...Microsoft Team Foundation Server (TFS) integration available now from MathWorks File Exchange Team Workflows 42 设计合并 支持并行工程

2

企业仿真平台的含义

▪ 企业 – 规模不等的业务或项目

▪ 仿真 – 通过计算评估系统行为

▪ 平台 – 协同设计工作流程

FE Tools EDA Tools

HARDWARE

INTEGRATION AND TEST

IMPLEMENTATION

Embed.

Software

HIL

System

SYSTEM

Control ElectricalMechanical

Model Based Design

REQUIREMENTS

TE

ST

& V

ER

IFIC

AT

ION

Simulation

Page 3: Simulink as Your Enterprise Simulation Platform...Microsoft Team Foundation Server (TFS) integration available now from MathWorks File Exchange Team Workflows 42 设计合并 支持并行工程

3

企业仿真平台的支柱

多域

建模

仿真

集成

协同

设计

Page 4: Simulink as Your Enterprise Simulation Platform...Microsoft Team Foundation Server (TFS) integration available now from MathWorks File Exchange Team Workflows 42 设计合并 支持并行工程

4

多域建模

Page 5: Simulink as Your Enterprise Simulation Platform...Microsoft Team Foundation Server (TFS) integration available now from MathWorks File Exchange Team Workflows 42 设计合并 支持并行工程

5

Simulink的多领域建模能力

动态系统 状态机 离散系统

物理系统 面向对象

Page 6: Simulink as Your Enterprise Simulation Platform...Microsoft Team Foundation Server (TFS) integration available now from MathWorks File Exchange Team Workflows 42 设计合并 支持并行工程

6

案例 – 机械臂系统

Page 7: Simulink as Your Enterprise Simulation Platform...Microsoft Team Foundation Server (TFS) integration available now from MathWorks File Exchange Team Workflows 42 设计合并 支持并行工程

7

控制算法建模

Page 8: Simulink as Your Enterprise Simulation Platform...Microsoft Team Foundation Server (TFS) integration available now from MathWorks File Exchange Team Workflows 42 设计合并 支持并行工程

8

控制算法的可视化调试

Page 9: Simulink as Your Enterprise Simulation Platform...Microsoft Team Foundation Server (TFS) integration available now from MathWorks File Exchange Team Workflows 42 设计合并 支持并行工程

9

物理系统建模

Page 10: Simulink as Your Enterprise Simulation Platform...Microsoft Team Foundation Server (TFS) integration available now from MathWorks File Exchange Team Workflows 42 设计合并 支持并行工程

10

物理系统的建模方法

Simulink

Simscape

CAD/FEA

Less

DetailMore

Detail

仿真速度

详细程度

Page 11: Simulink as Your Enterprise Simulation Platform...Microsoft Team Foundation Server (TFS) integration available now from MathWorks File Exchange Team Workflows 42 设计合并 支持并行工程

11

离散事件建模 – 通讯网络

Page 12: Simulink as Your Enterprise Simulation Platform...Microsoft Team Foundation Server (TFS) integration available now from MathWorks File Exchange Team Workflows 42 设计合并 支持并行工程

12

离散事件的影响

无通讯网络仿真 有通讯网络仿真

Page 13: Simulink as Your Enterprise Simulation Platform...Microsoft Team Foundation Server (TFS) integration available now from MathWorks File Exchange Team Workflows 42 设计合并 支持并行工程

13

专业领域建模

丰富的各专业领域建模工具箱

Aerospace Blockset

Computer Vision System Toolbox

DSP System Toolbox

Powertrain Blockset

Robotics System Toolbox

Page 14: Simulink as Your Enterprise Simulation Platform...Microsoft Team Foundation Server (TFS) integration available now from MathWorks File Exchange Team Workflows 42 设计合并 支持并行工程

15

仿真集成

Page 15: Simulink as Your Enterprise Simulation Platform...Microsoft Team Foundation Server (TFS) integration available now from MathWorks File Exchange Team Workflows 42 设计合并 支持并行工程

16

挑战 – 如何充分利用企业的模型知识资产

接口 计算

调试 性能

Page 16: Simulink as Your Enterprise Simulation Platform...Microsoft Team Foundation Server (TFS) integration available now from MathWorks File Exchange Team Workflows 42 设计合并 支持并行工程

17

方案 – 基于S-function的集成

▪ 被行业多次证明可行的解决方案– 二十余年的支持

– 提供了丰富的 API

– 良好的向下版本兼容性

• 许多工具支持导出S-function功能

• 提供C代码集成工具- Legacy Code Tool

- S-function Builder

Page 17: Simulink as Your Enterprise Simulation Platform...Microsoft Team Foundation Server (TFS) integration available now from MathWorks File Exchange Team Workflows 42 设计合并 支持并行工程

22

方案 – 基于FMI的仿真集成

▪ 2010年发布了1.0版, 2014年发布了2.0版

▪ Simulink自R2017b版起内嵌支持FMI导入功能

SolverImport/Master

Simulation Integration Platform

Export/Slave

Component Authoring

Variable Step

Fixed

Step

R2017b

R2017b

Page 18: Simulink as Your Enterprise Simulation Platform...Microsoft Team Foundation Server (TFS) integration available now from MathWorks File Exchange Team Workflows 42 设计合并 支持并行工程

25

内置三维虚拟场景联合仿真

摄像头传感器发送视频给Simulink

合成视频用于测试视觉处理算法(如:车道检测)

Page 19: Simulink as Your Enterprise Simulation Platform...Microsoft Team Foundation Server (TFS) integration available now from MathWorks File Exchange Team Workflows 42 设计合并 支持并行工程

31

Time1

Macro step (Master)

Communication Point Communication Point

2 3 4

零阶保持器在联合仿真边界的数据交换导致仿真失真

Mass Position

M

M

M

联合仿真的失真问题

Page 20: Simulink as Your Enterprise Simulation Platform...Microsoft Team Foundation Server (TFS) integration available now from MathWorks File Exchange Team Workflows 42 设计合并 支持并行工程

32

Time1

Macro step (Master)

Communication Point Communication Point

2 3 4

在联合仿真边界通过卡尔曼滤波补偿失真

Mass Position

M

M

M

联合仿真的数值补偿功能

Page 21: Simulink as Your Enterprise Simulation Platform...Microsoft Team Foundation Server (TFS) integration available now from MathWorks File Exchange Team Workflows 42 设计合并 支持并行工程

33

虚拟面板和仿真数据记录观测

Page 22: Simulink as Your Enterprise Simulation Platform...Microsoft Team Foundation Server (TFS) integration available now from MathWorks File Exchange Team Workflows 42 设计合并 支持并行工程

34

完备的调试机制

Page 23: Simulink as Your Enterprise Simulation Platform...Microsoft Team Foundation Server (TFS) integration available now from MathWorks File Exchange Team Workflows 42 设计合并 支持并行工程

35

并行仿真

Page 24: Simulink as Your Enterprise Simulation Platform...Microsoft Team Foundation Server (TFS) integration available now from MathWorks File Exchange Team Workflows 42 设计合并 支持并行工程

36

多线程联合仿真

单线程仿真时间:18.15s

多线程仿真时间:12.76s

Page 25: Simulink as Your Enterprise Simulation Platform...Microsoft Team Foundation Server (TFS) integration available now from MathWorks File Exchange Team Workflows 42 设计合并 支持并行工程

37

仿真调速

▪ 降低仿真速度以便于:– 与硬件交互

– 演示

– 人机界面控制

Page 26: Simulink as Your Enterprise Simulation Platform...Microsoft Team Foundation Server (TFS) integration available now from MathWorks File Exchange Team Workflows 42 设计合并 支持并行工程

38

协同设计

Page 27: Simulink as Your Enterprise Simulation Platform...Microsoft Team Foundation Server (TFS) integration available now from MathWorks File Exchange Team Workflows 42 设计合并 支持并行工程

39

组件式开发实现复杂系统协同设计

▪ Simulink支持组件式协同开发流程

- 更快的模块化开发

- 更有效的验证

- 提升重用性

Page 28: Simulink as Your Enterprise Simulation Platform...Microsoft Team Foundation Server (TFS) integration available now from MathWorks File Exchange Team Workflows 42 设计合并 支持并行工程

40

基于团队的工作流程支持

▪ 版本控制

▪ 设计比较与合并

▪ 依赖性分析

▪ 任务自动化

Team Workflows

Page 29: Simulink as Your Enterprise Simulation Platform...Microsoft Team Foundation Server (TFS) integration available now from MathWorks File Exchange Team Workflows 42 设计合并 支持并行工程

41

支持多种版本控制工具集成

Microsoft Team Foundation Server

(TFS) integration available now from

MathWorks File Exchange

Team Workflows

Page 30: Simulink as Your Enterprise Simulation Platform...Microsoft Team Foundation Server (TFS) integration available now from MathWorks File Exchange Team Workflows 42 设计合并 支持并行工程

42

设计合并

▪ 支持并行工程

▪ 可以专注于设计

Team Workflows

Page 31: Simulink as Your Enterprise Simulation Platform...Microsoft Team Foundation Server (TFS) integration available now from MathWorks File Exchange Team Workflows 42 设计合并 支持并行工程

43

依赖性分析

Page 32: Simulink as Your Enterprise Simulation Platform...Microsoft Team Foundation Server (TFS) integration available now from MathWorks File Exchange Team Workflows 42 设计合并 支持并行工程

44

依赖性分析

Show model structure

List products required

Highlight issues

Team Workflows

Page 33: Simulink as Your Enterprise Simulation Platform...Microsoft Team Foundation Server (TFS) integration available now from MathWorks File Exchange Team Workflows 42 设计合并 支持并行工程

45

任务自动化

▪ 自动化配置工程

▪ 提升项目鲁棒性

Team Workflows

Page 34: Simulink as Your Enterprise Simulation Platform...Microsoft Team Foundation Server (TFS) integration available now from MathWorks File Exchange Team Workflows 42 设计合并 支持并行工程

46

企业仿真平台总结

“There is no such tool, which gives the simulation

environment as well as the hardware verification

and validation. In a single environment, I am

getting these together. That is why I use

MATLAB and Simulink.”

Dr. Deepak Mishra,

Indian Space Research Organization

Page 35: Simulink as Your Enterprise Simulation Platform...Microsoft Team Foundation Server (TFS) integration available now from MathWorks File Exchange Team Workflows 42 设计合并 支持并行工程

47© 2018 The MathWorks, Inc.

© 2018 The MathWorks, Inc. MATLAB and Simulink are registered trademarks of The MathWorks, Inc. See www.mathworks.com/trademarks

for a list of additional trademarks. Other product or brand names may be trademarks or registered trademarks of their respective holders.