Using structures as input of the model with parallel computing
Mostra commenti meno recenti
Hi everyone,
I'm currently using structure of constants as an input of simulink blocks in my model. The only way I was able to do that was using bus objects. The settings for my model are defined in file which I call in my main.
Here comes the problem : I'm trying to use the parallel computing toolbox. I get this error message when I try to load my model: The symbol 'HD_bus' resolved to a bus object in the model workspace; Bus objects should only be created in the base workspace
Is there any way to go around this particular issue
Cheers Alex
Risposta accettata
Più risposte (3)
Alexandre
il 12 Apr 2012
0 voti
Alexandre
il 13 Apr 2012
0 voti
Guy Rouleau
il 16 Apr 2012
0 voti
I recommend using pctRunOnAll to initialize all the workers once before starting the for loop.
About your error, look at the doc page "Running Parallel Simulations":
and go to the subsection "A Model with Stateflow, MATLAB Function Block, or Model Block". There you will see an example showing how to run each worker in different tmp folder to avoid conflicts when models mus generate a mex-file.
Categorie
Scopri di più su General Applications in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!