main content

real-凯发k8网页登录

simulink® real-time™ simscape™ checks, simscape hdl workflow advisor

deploying a plant model allows you to test your control algorithm. you can deploy your simscape electrical™ model for real-time simulation, including hardware-in-the-loop (hil) simulation, using generated c code or hdl code.

generate c code to deploy a nonlinear, linear, or switched linear model that requires a 20 µs or greater simulation sample time. if you have a license for simulink coder™, you can generate c code for deployment to a real-time target machine. if you have a license for embedded coder®, you can generate c code for deployment to an embedded system. if you have a license for simulink real-time, you can use simscape checks to prepare your simscape electrical models for code generation. you can then use the simulink real-time explorer to:

  • generate and compile code on a development computer.

  • download the real-time application to a target computer.

  • execute the real-time application remotely from the development computer.

to learn how to generate and deploy a c code version of a simscape model, see , , and .

generate hdl code to deploy a linear or switched linear model that requires a 1 µs or greater simulation sample time. if you have a license for hdl coder™, you can generate hdl code from your simscape electrical model without first manually converting the model to a simulink model by using the simscape hdl workflow advisor. the sschdladvisor function generates an hdl code compatible version of your model. you can then generate code from the hdl implementation model and deploy your plant model to an fpga for hil simulation.

to learn how to generate an hdl version of a simscape model, see .

topics


  • follow the real-time model preparation workflow to make your simscape model real-time capable.


  • 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.


  • configure the solvers in your simscape model for real-time simulation.


  • learn how to convert simscape models to hdl code for fpga deployment.

  • generate hdl code for simscape models (hdl coder)

    generate hdl code from simscape switched linear models.

  • (hdl coder)

    learn about oversampling in generated hdl implementation model and how the model sample time relates to sample time of original simscape algorithm.

  • (hdl coder)

    validate and resolve simulation mismatch between simscape algorithm and hdl implementation model.

  • (hdl coder)

    simscape modeling best practices for replacing simscape subsystem with state-space algorithm.

网站地图