basics of hardware-凯发k8网页登录

main content

basics of hardware-in-the-loop simulation

hardware-in-the-loop (hil) simulation is a type of real-time simulation. you use hil simulation to test your controller design. hil simulation shows how your controller responds in real time to realistic virtual stimuli. you can also use hil to determine if your physical system (plant) model is valid.

in hil simulation, you use a real-time computer as a virtual representation of your plant model and a real version of your controller. the figure shows a typical hil simulation setup. the desktop computer (development hardware) contains the real-time capable model of the controller and plant. the development hardware also contains an interface with which to control the virtual input to the plant. the controller hardware contains the controller software that is generated from the controller model. the real-time processor (target hardware) contains code for the physical system that is generated from the plant model.

when to use hardware-in-the-loop simulation

use hil simulation to test the design of your controller when you are performing model-based design (mbd). the figure shows where hil simulation fits into the mbd design-to-realization workflow.

validation involves using actual plant hardware to test your controller in real-life situations or in environmental proxies (for example, a pressure chamber). in hil simulation, you do not have to use real hardware for your physical system (plant). you also do not have to rely on a naturalistic or environmental test setup. by allowing you to use your model to represent the plant, hil simulation offers benefits in cost and practicality.

there are several areas in which hil simulation offers cost savings over validation testing. hil simulation tends to be less expensive for design changes. you can perform hil simulation earlier than validation in the mbd workflow so you can identify and redesign for problems relatively early the project. finding problems early includes these benefits:

  • your team is more likely to approve changes.

  • design changes are less costly to implement.

in terms of scheduling, hil simulation is less expensive and more practical than validation because you can set it up to run on its own.

hil simulation is more practical than validation for testing your controller’s response to unusual events. for example, you can model extreme weather conditions like earthquakes or blizzards. you can also test how your controller responds to stimuli that occur in inaccessible environments like deep sea or deep space.

related examples

    more about

      网站地图