Main Content

MATLABworker initialization for builds

Description

Specify how to initialize MATLAB®workers for parallel builds.

Category:Model Referencing

Settings

Default:None

None

金宝app®software takes no action. Specify this value if the child models in the model reference hierarchy do not rely on anything in the base workspace beyond what they explicitly set up (for example, with a model load function).

Copy base workspace

Simulink attempts to copy the base workspace to each MATLAB worker. Specify this value if you use a setup script to prepare the base workspace for all models to use.

Load top model

Simulink loads the top model on each MATLAB worker. Specify this value if the top model in the model reference hierarchy handles all of the base workspace setup (for example, with a model load function).

Limitation

For values other thanNone, limitations apply to global variables in the base workspace. Global variables are not propagated across parallel workers and do not reflect changes made by top and child model scripts.

Dependency

Selecting the optionEnable parallel model reference buildsenables this parameter. Parallel building requires Parallel Computing Toolbox™.

Command-Line Information

Parameter:ParallelModelReferenceMATLABWorkerInit
Value:“没有”|'Copy Base Workspace'|'Load Top Model'
Default:“没有”

Recommended Settings

Application Setting
Debugging No impact
Traceability No impact
Efficiency No impact
Safety precaution No impact

See Also

Related Topics