Guy and Seth on Simulink
March 31st, 2009
Parallel Computing with Simulink: Model Reference Builds
Have you seen the MATLAB
Channel on YouTube?? I like the way you can express an idea using video, describe
how things work, and then watch it work. That is why I asked my friend Doug to
help me make a video this week. (Thanks Doug! Check out Doug’s MATLAB Video Tutorials.)
The topic today is the Simulink R2009a feature for Parallel
Model Reference builds. Model reference blocks run in normal (interpreted)
mode or accelerated mode. Simulink has to generate SimTargets for the
accelerated reference models during update diagram. In R2009a you can use the
Parallel Computing Toolbox to start a pool of local MATLAB workers and
distribute the generation of the SimTargets across the available cores on your
system. Model Reference parallel build also speeds up Real-Time Workshop code
generation. All you need to distribute your build across all the cores on your
multi-core machine is to start a local pool of MATLAB workers:
Starting matlabpool using the 'local' configuration ...
connected to 4 labs.
Watch the video. Try it out. Leave a comment below and
tell me how it worked.
Leave a Reply
These postings are the author's and don't necessarily represent the opinions of MathWorks.