"Parallel Simulations Using Parsim: Parameter Sweep in Rapid Accelerator Mode" Example Errors

6 次查看(过去 30 天)
I am trying to run one of the examples to further understand the process and apply to my own simulink model. When I try to run the example file I get the command window as below, with the following errors:
>> ParsimParamSwpInRapidAcceleratorModeExample
[26-Nov-2021 13:22:09] Checking for availability of parallel pool...
[26-Nov-2021 13:22:09] Starting Simulink on parallel workers...
Analyzing and transferring files to the workers ...done.
[26-Nov-2021 13:22:12] Configuring simulation cache folder on parallel workers...
[26-Nov-2021 13:22:12] Running SetupFcn on parallel workers...
[26-Nov-2021 13:22:16] Cleaning up parallel workers...
Error using ParsimParamSwpInRapidAcceleratorModeExample (line 93)
Error executing SetupFcn
Caused by:
Error using Simulink.BlockDiagram.buildRapidAcceleratorTarget
Unable to build a standalone executable to simulate the model 'sldemo_suspn_3dof' in rapid accelerator mode.
Error using Simulink.BlockDiagram.buildRapidAcceleratorTarget
Terminating build process. Current working folder (/Users/Documents/MATLAB/Examples/R2021b/simulink_features/ParsimParamSwpInRapidAcceleratorModeExample) contains simulation artifacts that can shadow artifacts in the folder (/private/var/folders/v4/89lc1nr1723_4jj7g75lzg3m0000gp/T/tpbe80b840_7817_47da_8bc1_3f03017be768) specified by 'CacheFolder' and cause unexpected errors. Before you start a simulation, navigate to a folder that does not contain simulation artifacts.
Any ideas to solving this? I cannot find the folder being shadowed and don't know what the CacheFolde is refering to

回答(1 个)

Murali Manikanti
Murali Manikanti 2021-12-1
I understand that the demo example "ParsimParamSwpInRapidAcceleratorModeExample" is throwing an error during the build phase with MATLAB R2021b.
It looks like the Simulink Configuration Parameter "CacheFolder" is set to some stale path which is shadowing the files which are going to be generated for the "ParsimParamSwpInRapidAcceleratorModeExample" example. Clear "CacheFolder using following command and try the example again.
>> set_param(0, CacheFolder, ‘’);
More information on "CacheFolder" setting can be found at:

类别

Help CenterFile Exchange 中查找有关 Simulation 的更多信息

产品


版本

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by