# Parallel Toolbox in Plecs Blockset

**URL:** <https://forum.plexim.com/t/parallel-toolbox-in-plecs-blockset/616>\
**Category:** PLECS\
**Tags:** matlab, plecs-blockset, parallel-toolbox\
**Created:** [January 24, 2019, 11:27am UTC](https://forum.plexim.com/t/parallel-toolbox-in-plecs-blockset/616 "2019-01-24T11:27:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![R\_Maier](https://avatars.discourse-cdn.com/v4/letter/r/838e76/32.png) [@R\_Maier](https://forum.plexim.com/u/R_Maier)\
**Post date:** [January 24, 2019, 11:27am UTC](https://forum.plexim.com/t/parallel-toolbox-in-plecs-blockset/616/1 "2019-01-24T11:27:56Z")

</div>

Dear Sir or Madam,

In my Plecs Blockset simulations i would like to use the matlab paralleling toolbox. I do not get it to work even with a simple example.

I tried to set the plecs parameters within the parfor loop, and to set the variable in the base workspace and let plecs load it from there.

Is it even possible to use the paralleling toolbox with plecs blockset? Is there any application example for that?

Thank you very much!

---

<div class="post-metadata">

**Author:** ![ruhl](https://avatars.discourse-cdn.com/v4/letter/r/d78d45/32.png) [@ruhl](https://forum.plexim.com/u/ruhl)\
**Post date:** [January 29, 2019, 6:17am UTC](https://forum.plexim.com/t/parallel-toolbox-in-plecs-blockset/616/2 "2019-01-29T06:17:49Z")

</div>

Hello,

some time ago I had a similar need. The Plexim support told me, that using Plecs Blockset with the Parallel Computing Toolbox is not tested and therefore not supported officially.

Based on the scripts I wrote around a year ago, I created a MWE for this forum.

Best regards,

Robert

[example\_Plecs\_Blockset\_parallel.zip](https://forum.plexim.com/uploads/short-url/6MsDM8nalwEtGGilXIxJH0oBwMo.zip) (29 KB)
