部署和硬件在环仿真
Simscape™ Battery™ 包括用于连接到实时硬件输入和输出的 Simscape 模块。将这些模块与实时硬件一起使用时,您可以轻松地将电池仿真与真实电池平衡硬件连接起来。利用这一功能来帮助设计和验证电池平衡算法,确保它们在常规运行期间正常工作,并能充分检测到运行性能下降或穿越故障。
您可以使用 Simscape Battery 的电池管理系统库中的模块仿真自定义电池模块,从而开发和测试电池平衡策略。在设计并实现实际热测量或荷电状态算法之前,可以通过物理模块上的选项假设理想的热测量、热估计或荷电状态估计算法。
有关如何使用 Simscape 模型作为硬件在环 (HIL) 测试的被控对象模型的详细信息,请参阅 Simscape 实时仿真。
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 | 电池与电芯监控电路之间的电芯平衡接口 (自 R2024a 起) |
主题
- Solvers for Real-Time Simulation
The fixed-step solver, step size, and number of iterations that you specify affect how your Simscape model simulates in real time.
- Software and Hardware Configuration
Before you simulate your Simscape model on your target hardware using Simulink® Real-Time™, follow the recommendations to configure your development and target computers for code generation and real-time simulation.
- Simulink Real-Time Code Generation
Follow the recommendations for minimum hardware and software specifications to deploy your Simscape model for hardware-in-the-loop (HIL) simulation using Simulink Real-Time.
- Generate HDL Code for FPGA Platforms from Simscape Models
Learn how to convert Simscape models to HDL Code for FPGA Deployment.