10. Simulating your custom controller in Simulink®¶
FORCESPRO provides a Simulink® interface for easy simulation of your custom controllers within existing Simulink® diagrams. Once code has been generated the block transforms into a new block with the appropriate number of ports for your specific configuration. 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
We recommend not to use this Simulink interface anymore as it will be
deprecated in a future release. Instead, use the Simulink S-function
that is generated along with your FORCESPRO solver inside the interface
folder.
Watch an introductory video on how to use the FORCESPRO Simulink® interface here