MATLAB: Am I unable to place certain signal or parameter data objects in the Model Workspace through Model Explorer in Simulink 6.6 (R2007a)

mpt signalsimulinksimulink.aliastypesimulink.bussimulink.numerictypesimulink.structtype

I can add a Simulink.Signal object to the model workspace using Model Explorer. However, I cannot do the same for mpt.Signal or other custom signal object. mpt.Signal is grayed out when model workspace is selected.

Best Answer

Subclasses of Simulink.Parameter and Simulink.Signal classes, such as mpt.Parameter and mpt.Signal objects (Real-Time Workshop Embedded Coder license required), can reside in a model workspace only if their storage class is set to Auto.
The basic reason for this is that these objects represent entities that are global in nature and that must be unique in the global context (from the point of view of Simulink). The base workspace is a very natural place to put such global information (the same base workspace is visible to all models). Thus, it is a design decision that prevents these objects from being placed in the Model Workspace.