xPC Target | ![]() ![]() |
Adding I/O Blocks with the xPC Target Library
xPC Target includes a Simulink block library for I/O drivers. The highest hierarchical level in the library is grouped by I/O function. The second level is grouped by board manufacturer. The manufacturer groups within this second level contain the driver blocks for specific boards.
This procedure uses the Simulink model xpc_osc.mdl
as an example of how to add and connect I/O blocks.
Alternatively, you can access the I/O driver library with the Simulink Library Browser. See Adding I/O Blocks with the Simulink Library Browser.
xpcosc
should look like the figure shown below.
Note You cannot run this model unless you have the I/O board shown installed in your target PC. However, you can substitute the driver blocks for another I/O board that is installed in the target PC.
Your next task is to define the I/O block parameters. See Defining I/O Block Parameters.
![]() | Updated Driver Information | Adding I/O Blocks with the Simulink Library Browser | ![]() |