matlab常调用的模块
-
- 1、simulink模块
-
- [1.commonly used blocks](#1.commonly used blocks)
- 2.continuous
- 3.discrete
- 2、simscape模块
-
- 1.电机模型
- [2.matlab function模型](#2.matlab function模型)
- 3.功率管模型
- 4.电源电压模型
- 5.powergui模型
- 6.PMSM伺服电机模型
- 7.电阻、电容、电感模型
- 8.变压器模型
- 9.在simscape模块下sources对比
matlab常用的模块是simulink和simscape两大模块。
1、simulink模块
对比如下,continuous和discrete都有pid,但是在仿真上存在时间连续(运放)和不连续(mcu)的区别。
1.commonly used blocks
包含 mux、gain、delay等


2.continuous
pid功能,理想模型,不符合mcu仿真要求

3.discrete
主要用Zero-order hold和pid功能,常用于dsp、mcu等仿真


2、simscape模块
该模块下用于电机仿真的功能组要是用 specialized power systems。这是搭建FOC算法常调用的库。
1.电机模型

2.matlab function模型
需要手写clack或者pack变换公式

3.功率管模型
包含二极管、晶闸管、mos管

4.电源电压模型
使用DC电压

5.powergui模型
设置仿真采样时间

6.PMSM伺服电机模型
我还没使用到

7.电阻、电容、电感模型
在passives模块下调用RLC模型

8.变压器模型
仿真开关电源反激式变压器时,用线性变压器就选它。

9.在simscape模块下sources对比
我们可以看到有至少3处用到sources(有源模型)。我常用的是specialized下的,其他功能模型最要也都是在用一个模型下调用,以免仿真设计采样时间导致error。

10.1.spicesource模块
这个我不用
