Products & Services Solutions Academia Support User Community Company

Learn more about xPC Target   

Creating Driver Subsystem Masks

This chapter describes guidelines for creating a Simulink block user interface (mask) for the S-Function block associated your driver. A mask defines the menu items that will be passed to the S-function. The mask can call an M-file to do parameter or range value checking. You can also modify the labels of a block to show port numbers or other information. After you create the C code for an xPC Target device driver:

  1. Create an optional M-file.

  2. Create an S-Function block for the driver.

  3. Create a mask for the S-Function block.

    This is the basic Simulink mask, with parameters and descriptions as necessary. When you are done, you can make the device driver and its mask available for users to add to their models.

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS