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

15 views (last 30 days)
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

Answers (1)

Murali Manikanti
Murali Manikanti on 1 Dec 2021
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:

Categories

Find more on Simulink Environment Customization in Help Center and File Exchange

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!