xPC Target | ![]() ![]() |
Simulink
Simulink provides an environment where you model your dynamic 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 replace the model of your physical system with I/O driver blocks connected to the actual physical system, or you can replace the model of your controller with the actual controller. The xPC Target I/O library supports more than 400 driver blocks. As additional drivers become available, you can download updates from the MathWorks Web site at
The I/O device drivers are written as Simulink C-code S-functions.
Simulink documentation -- For information on using Simulink, see the Using Simulink documentation. 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 | ![]() |