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, to ensure that they work correctly during both regular operation 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.
- Real-Time Model Preparation Workflow
Follow the real-time model preparation workflow to make your Simscape model real-time capable.
- Real-Time Simulation Workflow
Configure the solvers in your Simscape model for real-time simulation.
- Hardware-In-The-Loop Simulation Workflow
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™.