Real-Time Deployment
Hardware-in-the-loop simulation workflow, host-to-target hardware interface,
run-time parameters
Real-time targets use fixed-step solvers that also have a fixed computational cost. When your model accurately reproduces your reference results with a fixed-step solver, you can use Simulink® Real-Time™ to download and execute a real-time application that you generate from your Simscape™ model or HDL code. You can also check for simulation overruns and change run-time parameters for your plant-based application on a real-time target. HIL processes on a target CPU can run at time steps as small as 25 μS. To reach time steps below 1 μS, you must deploy your model to FPGA.
Apps
| Simulink Real-Time Explorer | Interact with target computer and real-time application running on target computer |
Functions
slrtLogViewer | Open the Simulink Real-Time System Log Viewer tab in the Simulink Real-Time Explorer to view the console log from the target computer |
slrtTETMonitor | Open Simulink Real-Time task execution time (TET) monitor |
Topics
Simulink Real-Time Deployment
- 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. - Change Parameter Values on Target Hardware
Change a Simscape run-time parameter between simulations on target hardware using Simulink Real-Time. - Signal and Parameter Visualization and Control
Monitor and control signals and parameters when you simulate your Simscape model on a real-time target hardware using Simulink Real-Time.
FPGA Deployment
- Generate FPGA Bitstream for Two-Phase DC-DC Converter with Tunable Run-Time Parameters (HDL Coder)
Generate FPGA bitstream for a Simscape model and tune the run-time parameter values. - Deploy Simscape Grid Tied Converter Model to Speedgoat IO Module Using HDL Workflow Script (HDL Coder)
Deploy grid tied converter modeled in Simscape to Speedgoat® IO modules using HDL Workflow script. - Deploy Simscape DC Motor Model to Speedgoat FPGA IO Module (HDL Coder)
Generate an FPGA bitstream for a nonlinear Simscape model (DC motor) and deploy it onto a Speedgoat FPGA I/O module.