xPC Target | ![]() ![]() |
Simulink
Simulink provides an environment where you model your physical system and controller as a block diagram. You create the block diagram by using a mouse to connect blocks and a keyboard to edit block parameters.
You can use xPC Target with most Simulink blocks including discrete-time and continuous-time systems. When you use a continuous-time system and generate code with Real-Time Workshop®, you must use a fixed-step integration algorithm.
C-code S-functions are supported by Real-Time Workshop. However, M-code S-functions are not supported.
xPC Target I/O driver blocks - With xPC Target, you can remove the physical system model and replace it with I/O driver blocks connected to your sensors and actuators. The xPC Target I/O library supports more than 150 driver blocks, and you can download additional drivers from The MathWorks Web site.
The I/O device drivers are written as Simulink C-code S-functions.
Simulink documentation - For information on using Simulink, see the Using Simulink manual. It explains how to connect blocks to build models and change block parameters. It also provides a reference that describes each block in the standard Simulink library.
![]() | MATLAB | Real-Time Workshop | ![]() |