Deployment and Hardware-in-the-Loop Simulation
Simscape™ Battery™ includes Simscape blocks to connect to real-time hardware inputs and outputs. When you use these blocks with real-time hardware, you can easily connect your battery simulations to a real-world battery balancing hardware. Use this capability to help design and verify your battery balancing algorithms and to ensure that they work correctly during regular operations and adequately detect degraded operation or ride through faults.
You can develop and test battery balancing strategies by simulating your custom battery blocks with the blocks in the Battery Management System library of Simscape Battery. Options on the physical blocks enable you to assume ideal thermal measurements, thermal estimation or state-of-charge estimation algorithms until you have designed and implemented actual thermal measurements or state-of-charge algorithms.
Simscape Blocks
Active Interface | Active interface between battery and cell supervisory circuit (Since R2022b) |
Passive Interface | Passive interface between battery and cell supervisory circuit (Since R2022b) |
Passive Balancing Interface | Interface for cell balancing between battery and cell supervisory circuit (Since R2024a) |
Array of Electrical Nodes Connector | Concatenate arrays of electrical nodes into single array of electrical nodes port (Since R2024a) |
Topics
- 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.
- Real-Time Code Generation and Deployment Process
Follow the hardware-in-the-loop (HIL) simulation workflow to deploy a Simscape model to your real-time target machine using Simulink® Coder™ and Simulink Real-Time™.