User`s guide

Creating a C ustom Driver
7 Double-click the S-Function block and create a block mask (see Chapter 4,
“Masking Drivers”).
8 Save and close the S-Function b lock.
9 At the bottom of the S-Function block, enter a block name. For example,
MM-32.
10 Save and close the library.
11 To make your new library visible in the Simulink Library Browser, move
it to
matlabroot\toolbox\rtw\targets\xpc\target\build\xpcblocks\thirdpartydrivers
12 Copy and paste s ampl e_xpcblocks.m in
matlabroot\toolbox\rtw\targets\xpc\target\build\xpcblocks\thirdpartydrivers
1-13