使用 Simulink Real-Time 进行硬件在环仿真
硬件在环 (HIL) 仿真工作流向您展示如何使用 Simulink® Real-Time™ 下载和执行从 Simscape™ 模型生成的实时应用程序。您还可以使用 Simulink Real-Time 检查仿真超限,并更改实时目标上基于被控对象的应用程序的运行时参数。
主题
- 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.
- Basics of Hardware-in-the-Loop simulation
Use hardware-in-the-loop (HIL) simulation to check how your controller responds, in real time, to realistic virtual stimuli.
- Code Generation Requirements
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.
- 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.
- Generate, Download, and Execute Code
Deploy a Simscape model to your target hardware using Simulink Coder and 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.
- Change Parameter Values on Target Hardware
Change a Simscape run-time parameter between simulations on target hardware using Simulink Real-Time.
- Troubleshoot Hardware-in-the-Loop Simulation Issues
Solve issues that prevent you from using Simulink Real-Time to simulate a Simscape model on a real-time processor.