部署和硬件在环仿真
实时仿真的接口和工作流
Simscape™ Battery™ 包括用于连接到实时硬件输入和输出的 Simscape 模块。将这些模块与实时硬件一起使用时,您可以轻松地将电池仿真与真实电池平衡硬件连接起来。利用这一功能来帮助设计和验证电池平衡算法,确保它们在常规运行期间正常工作,并能充分检测到运行性能下降或穿越故障。
您可以使用 Simscape Battery 的电池管理系统库中的模块仿真自定义电池模块,从而开发和测试电池平衡策略。在设计并实现实际热测量或荷电状态算法之前,可以通过物理模块上的选项假设理想的热测量、热估计或荷电状态估计算法。
Simscape 模块
| Active Interface | Active interface between battery and cell supervisory circuit (自 R2022b 起) |
| Passive Interface | Passive interface between battery and cell supervisory circuit (自 R2022b 起) |
| Passive Balancing Interface | Interface for cell balancing between battery and cell supervisory circuit (自 R2024a 起) |
主题
- Model Preparation Process
Follow the real-time model preparation workflow to make your Simscape model real-time capable.
- Fixed-Cost Simulation Process
Configure the solvers in your Simscape model for real-time simulation.
- 实时代码生成和部署过程
按照硬件在环 (HIL) 仿真工作流,使用 Simulink® Coder™ 和 Simulink Real-Time™ 将 Simscape 模型部署到您的实时目标机。