User`s guide

2 Advanced Procedures
2-4
Adding I/O Blocks with the xPC Target Library
xPC Target contains an I/O driver library with Simulink blocks. You can
drag-and-drop these blocks from the library to your Simulink model.
Alternately, you can access the I/O driver library with the Simulink Library
Browser. See “Adding I/O Blocks with the Simulink Library Browser” on
page 2-7.
The highest hierarchy level in the library is grouped by I/O function. I/O
functions include A/D, D/A, Digital In, Digital Out, Counter, Watchdog,
Incremental Encoder, RS232, CAN, GPIB, and shared memory. The second
level is grouped by board manufacturer. The manufacturer groups within this
second level contain the specific boards.
This procedure uses the Simulink model
xpcosc.mdl as an example of how to
connect an I/O block.
1 In the MATLAB window, type
xpclib
The Library: xpclib window opens.
2 Open a function group. For example, to open the A/D group, double-click the
A/D block.