The ability to configure the Real-Time Workshop storage class for variables in the model workspace is not available in Real-Time Workshop 6.0 (R14). All parameters must be defined in the base workspace.
No workarounds exist. The only workspace that determines the parameter storage class is the base workspace. The primary purpose of the model workspace is to support model referencing, which allows separate models to contain their own workspace variables.
You can, however, use a model callback routines to automatically load MATLAB commands, an M-script, or a MAT file during file initialization, which can automate the process of initializing variables in the base workspace. This is discussed in Simulink documentation and in the following Tech-Note:
MathWorks - Support - Support - How Can I Use Model Callback Routines to Change the Parameters of My Simulink Model?
Best Answer