Building a library part from scratch

  1. From within Simulink, select File:New:Library.

  2. If you are:
    • building a library part from scratch:
      1. In the new empty model file, build your model from "approved" CDS parts (CDS_PARTS) or other CDS user library parts.
      2. Once you have a model, select the entire model and "create subsystem". The library part should be a single subsystem enclosing your entire model.
      3. Give the inputs and outputs sensible names.
    • building a library part from an existing model subsystem:
      1. Open the model that contains the subsystem that you wish to make into a library part.
      2. Copy or cut the subsystem block out of the model, and paste it into the new empty library model.
  3. Give the subsystem block a sensible unique name in the library (see notes below).
  4. Save the library file with a sensible name, in the appropriate cds_user_apps/<subsystem>/common directory.

  5. To add the new library part to a model, open the library part file and drag the part into the model. DO NOT cut/copy paste (this will break the link to the library part).

Notes about library parts

CDS/How_to_make_model_library_part (last edited 2012-01-03 23:02:40 by localhost)