deploy environment model for real-凯发k8网页登录

main content

deploy environment model for real-time hardware-in-the-loop (hil) simulation

about hardware-in-the-loop simulation

hardware-in-the-loop (hil) simulation tests and verifies an embedded system or control unit in the context of a software test platform. examples of test platforms include real-time target systems and instruction set simulators (iiss). you use simulink® software to develop and verify a model that represents the test environment. using the code generator, you produce, build, and download an executable program for the model to the hil simulation platform. after you set up the environment, you can run the executable to validate the embedded system or control unit in real time.

during hil simulation, you gradually replace parts of a system environment with hardware components as you refine and fabricate the components. hil simulation offers an efficient design process that eliminates costly iterations of part fabrication.

the code that you build for the system simulator provides real-time system capabilities. for example, the code can include vxworks® from wind river® or another real-time operating system (rtos).

the following figure shows a typical hil setup.

conceptual diagram of hil simulation setup that includes an algorithm model deployed to an embedded system connected to an environment model deployed to a real-time simulator

the hil platform available from mathworks is the product. several third-party products are also available for use as hil platforms. the simulink real-time™ product offers hard real-time performance for pcs with intel® or amd® 32-bit processors functioning as your real-time target. the simulink real-time product enables you to add i/o interface blocks to your models and automatically generate code with code generation technology. the simulink real-time product can download the code to a second pc running the simulink real-time real-time kernel. system integrator solutions that are based on simulink real-time are also available.

set up and run hil simulations

to set up and run hil simulations iterate through the following steps:

  1. develop a model that represents the environment or system under development.

    for more information, see .

  2. generate an executable for the environment model.

  3. download the executable for the environment model to the hil simulation platform.

  4. replace software representing a system component with corresponding hardware.

  5. test the hardware in the context of the hil system.

  6. repeat steps 4 and 5 until you can simulate the system after including components that require testing.

related topics

  • (simulink real-time)
网站地图