FORCESPRO 6.0
  • Chapter
      • 1. Introduction
      • 2. License Variants
      • 3. Installation
      • 4. Backward Compatibility
      • 5. Y2F Interface
      • 6. MathWorks Linear MPC Plugin
      • 7. MathWorks Nonlinear MPC Plugin
      • 8. Low-level interface
      • 9. High-level Interface
      • 10. Simulating your custom controller in Simulink®
      • 11. Examples
      • 12. Parametric problems
      • 13. Code Deployment
      • 14. Multicore parallelization
      • 15. Licensing
      • 16. Autotuner
      • 17. Solver Options
      • 18. Modelling Utilities
      • 19. Dumping Problem Formulation and Data
      • 20. Frequently asked questions

10. Simulating your custom controller in Simulink®¶

FORCESPRO provides a Simulink® interface for easy simulation of your custom controllers within existing Simulink® diagrams. Once the code has been compiled, the appropriate Simulink® block and C code for the Simulink® S-function are generated along with your FORCESPRO solver inside the interface folder. Depending on your controller configuration you will have different input and output ports on your block. The port labels are self-explanatory. Just wire the ports of the FORCESPRO block to other blocks in you Simulink diagram and run the simulation. Note that several instances of the FORCESPRO block can exist in the same Simulink® diagram.

  • 10.1. Getting Started - Basic MPC Regulation State Feedback Example
  • 10.2. Real-time control with the Simulink® block
    • 10.2.1. Input and Output Ports in the Compact Interface

Back to top

© Copyright 2022, embotech AG.
Created using Sphinx 2.2.2.