User`s guide
I/O Driver Blocks
2-7
Adding I/O Blocks with the Simulink Library
Browser
You can access the xPC Target driver blocks using the Simulink Library
Browser. You drag-and-drop these blocks from the library to your Simulink
model. Alternately, you can access driver blocks using the xPC Target I/O
driver library, See “Adding I/O Blocks with the xPC Target Library” on
page 2-4.
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
xpcosc
The Simulink block diagram opens for the model xpcosc.mdl.
2 In the Simulink window, and from the View menu, click Show Library
Browser.
The Simulink Library Browser window opens. Alternately, you can open the
Simulink Library Browser by typing
simulink in the MATLAB command
window.