4 Masking Drivers
Creating Driver Subsystem M asks
This chapter describes guidelines for creating a Simulink block user interface
(mask) for the S-Function block as sociated y our driv er. A mask defines
the menu i tems that will be passed to the S-function. The mask can call a
MATLABfiletodoparameterorrangevaluechecking. Youcanalsomodify
the labels of a block to sho w port numbers or other information. After you
create the C code for an xPC Target device driver:
1 Create an optional MATLAB file.
2 Create an S-Function block for the driver.
3 Create a mas
k for the S-Function block.
This is the basic Simulink mask, with parameters and descriptions as
necessary. Whenyouaredone,youcanmakethedevicedriverandits
mask available for users to add to their models.
4-2
Comments to this Manuals