# Export Scope View in PLECS Blockset

**URL:** <https://forum.plexim.com/t/export-scope-view-in-plecs-blockset/1195>\
**Category:** PLECS\
**Tags:** scope, simulation, matlab, blockset, export\
**Created:** [December 27, 2022, 11:01am UTC](https://forum.plexim.com/t/export-scope-view-in-plecs-blockset/1195 "2022-12-27T11:01:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![utuber27](https://avatars.discourse-cdn.com/v4/letter/u/f0a364/32.png) [@utuber27](https://forum.plexim.com/u/utuber27)\
**Post date:** [December 27, 2022, 11:01am UTC](https://forum.plexim.com/t/export-scope-view-in-plecs-blockset/1195/1 "2022-12-27T11:01:37Z")

</div>

Hi,

I have a simulation model in PLECS. I have done a m-File so that the simulation runs several times one after another with different parameters. I would like to save the scope view for the simulations.

Is there any possibility to do so?

I know that there is a solution with the “To File” block but I would prefer to have the scopes.

Kind regards

---

<div class="post-metadata">

**Author:** ![Bryan\_Lieblick](https://dub1.discourse-cdn.com/flex006/user_avatar/forum.plexim.com/bryan_lieblick/32/10_2.png) [@Bryan\_Lieblick](https://forum.plexim.com/u/Bryan_Lieblick)\
**Post date:** [January 3, 2023, 2:54pm UTC](https://forum.plexim.com/t/export-scope-view-in-plecs-blockset/1195/2 "2023-01-03T14:54:39Z")

</div>

Refer to the following excerpt from the PLECS Documentation + Simulation Scripts + Command Line Interface in PLECS Blockset.

 ![61](https://europe1.discourse-cdn.com/flex006/uploads/plecs/original/1X/f70397752928654068eb98567ec88f0068d676bf.jpeg)

You would then place the above ‘ExportBitmap’ command in your m-File to execute when you would like to capture the graphic (i.e. after each simulation run).

---

<div class="post-metadata">

**Author:** ![utuber27](https://avatars.discourse-cdn.com/v4/letter/u/f0a364/32.png) [@utuber27](https://forum.plexim.com/u/utuber27)\
**Post date:** [January 3, 2023, 6:29pm UTC](https://forum.plexim.com/t/export-scope-view-in-plecs-blockset/1195/3 "2023-01-03T18:29:37Z")

</div>

Thank you very much for your answer. It helped me a lot.

There is only one little problem left I have:

The simulation runs several times with different data exported from .txt datasheets.

Now I want to have the names of the .txt datasheets as ‘fileName’ of the exported Scope.

Do you know how I can do this (name the file after a string)?

Kind regards

---

<div class="post-metadata">

**Author:** ![Bryan\_Lieblick](https://dub1.discourse-cdn.com/flex006/user_avatar/forum.plexim.com/bryan_lieblick/32/10_2.png) [@Bryan\_Lieblick](https://forum.plexim.com/u/Bryan_Lieblick)\
**Post date:** [January 4, 2023, 11:40am UTC](https://forum.plexim.com/t/export-scope-view-in-plecs-blockset/1195/4 "2023-01-04T11:40:04Z")

</div>

Simply replace the ‘fileName’ string with a string reflecting your desired naming convention.
