Parallel Computing with Simulink, Model Reference Parallel Build
Contents
Update diagram for simpletop
open_system('simpletop')
Open the task manager
Measure update for simpletop
tic, set_param('simpletop','SimulationCommand','update'), toc
### Model reference SIM target (bot_model001_msf.mexw64) for model bot_model001 is out of date because bot_model001_msf.mexw64 does not exist
### Updating model reference SIM target for model: bot_model001
### Successfully updated the model reference SIM target for model: bot_model001
### Model reference SIM target (bot_model002_msf.mexw64) for model bot_model002 is out of date because bot_model002_msf.mexw64 does not exist
### Updating model reference SIM target for model: bot_model002
### Successfully updated the model reference SIM target for model: bot_model002
### Model reference SIM target (bot_model003_msf.mexw64) for model bot_model003 is out of date because bot_model003_msf.mexw64 does not exist
### Updating model reference SIM target for model: bot_model003
### Successfully updated the model reference SIM target for model: bot_model003
### Model reference SIM target (bot_model004_msf.mexw64) for model bot_model004 is out of date because bot_model004_msf.mexw64 does not exist
### Updating model reference SIM target for model: bot_model004
### Successfully updated the model reference SIM target for model: bot_model004
Elapsed time is 33.619649 seconds.
Clean up
cleanUpMref
Start the MATLAB Pool
matlabpool
Starting matlabpool using the 'local' configuration ... connected to 4 labs.
Load Simulink
tic, pctRunOnAll('load_system(''simulink'')'), toc
Elapsed time is 3.455944 seconds.
Measure update on local workers
tic, set_param('simpletop','SimulationCommand','update'), toc
Elapsed time is 13.680843 seconds.
Clean up
cleanUpMref
Hourglasstop
open_system('hourglasstop')
Measure update on hourglasstop with the pool
tic, set_param('hourglasstop','SimulationCommand','update'), toc
### Model reference SIM target (mid5_1_msf.mexw64) for model mid5_1 is out of date because mid5_1_msf.mexw64 does not exist
### Updating model reference SIM target for model: mid5_1
### Successfully updated the model reference SIM target for model: mid5_1
Elapsed time is 33.237898 seconds.
Close the pool
matlabpool close
Sending a stop signal to all the labs ... stopped.
Clean up
cleanUpMref
Measure update on hourglasstop without the pool
tic, set_param('hourglasstop','SimulationCommand','update'), toc
### Model reference SIM target (bot_model001_msf.mexw64) for model bot_model001 is out of date because bot_model001_msf.mexw64 does not exist
### Updating model reference SIM target for model: bot_model001
### Successfully updated the model reference SIM target for model: bot_model001
### Model reference SIM target (bot_model002_msf.mexw64) for model bot_model002 is out of date because bot_model002_msf.mexw64 does not exist
### Updating model reference SIM target for model: bot_model002
### Successfully updated the model reference SIM target for model: bot_model002
### Model reference SIM target (bot_model003_msf.mexw64) for model bot_model003 is out of date because bot_model003_msf.mexw64 does not exist
### Updating model reference SIM target for model: bot_model003
### Successfully updated the model reference SIM target for model: bot_model003
### Model reference SIM target (bot_model004_msf.mexw64) for model bot_model004 is out of date because bot_model004_msf.mexw64 does not exist
### Updating model reference SIM target for model: bot_model004
### Successfully updated the model reference SIM target for model: bot_model004
### Model reference SIM target (bot_model005_msf.mexw64) for model bot_model005 is out of date because bot_model005_msf.mexw64 does not exist
### Updating model reference SIM target for model: bot_model005
### Successfully updated the model reference SIM target for model: bot_model005
### Model reference SIM target (mid5_1_msf.mexw64) for model mid5_1 is out of date because mid5_1_msf.mexw64 does not exist
### Updating model reference SIM target for model: mid5_1
### Successfully updated the model reference SIM target for model: mid5_1
### Model reference SIM target (mid5_1a_msf.mexw64) for model mid5_1a is out of date because mid5_1a_msf.mexw64 does not exist
### Updating model reference SIM target for model: mid5_1a
### Successfully updated the model reference SIM target for model: mid5_1a
### Model reference SIM target (mid5_1b_msf.mexw64) for model mid5_1b is out of date because mid5_1b_msf.mexw64 does not exist
### Updating model reference SIM target for model: mid5_1b
### Successfully updated the model reference SIM target for model: mid5_1b
### Model reference SIM target (mid5_1c_msf.mexw64) for model mid5_1c is out of date because mid5_1c_msf.mexw64 does not exist
### Updating model reference SIM target for model: mid5_1c
### Successfully updated the model reference SIM target for model: mid5_1c
### Model reference SIM target (mid5_1d_msf.mexw64) for model mid5_1d is out of date because mid5_1d_msf.mexw64 does not exist
### Updating model reference SIM target for model: mid5_1d
### Successfully updated the model reference SIM target for model: mid5_1d
Elapsed time is 57.476761 seconds.