SimDriveline models can be configured specifically for real-time simulation and converted to C code, enabling you to perform HIL tests. Many components in SimDriveline can be configured to use abstracted behavioral models, ideal for real-time simulation. Using Simscape local solvers, you can speed up your simulation by using a fixed-step solver for your physical system and independently choosing a different solver for the rest of your model.
You can generate C code from your SimDriveline models using Simulink Coder. The generated code can be used to run HIL simulations on real-time processors that interface directly with hardware. This enables you to test your control algorithms without relying on hardware prototypes.
Simulating In Real Time: Hybrid Electric Vehicle
Configure multiple, independent solvers to enable real-time simulation. The model of a hybrid-electric vehicle (HEV) is simulated on a real-time target.