# How to link Octave script with Plecs?

**URL:** <https://forum.plexim.com/t/how-to-link-octave-script-with-plecs/867>\
**Category:** PLECS\
**Tags:** plecs, c-script\
**Created:** [September 28, 2020, 6:00am UTC](https://forum.plexim.com/t/how-to-link-octave-script-with-plecs/867 "2020-09-28T06:00:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shaz](https://avatars.discourse-cdn.com/v4/letter/s/ba9def/32.png) [@Shaz](https://forum.plexim.com/u/Shaz)\
**Post date:** [September 28, 2020, 6:00am UTC](https://forum.plexim.com/t/how-to-link-octave-script-with-plecs/867/1 "2020-09-28T06:00:11Z")

</div>

I have a Octave script i would like to run it extract the data to plecs. How should do it ?

---

<div class="post-metadata">

**Author:** ![Kris\_Eberle](https://dub1.discourse-cdn.com/flex006/user_avatar/forum.plexim.com/kris_eberle/32/6_2.png) [@Kris\_Eberle](https://forum.plexim.com/u/Kris_Eberle)\
**Post date:** [September 28, 2020, 12:41pm UTC](https://forum.plexim.com/t/how-to-link-octave-script-with-plecs/867/2 "2020-09-28T12:41:35Z")

</div>

Hello,

Can you please be more specific? You want to initialize data calculated in your Octave script to PLECS (Standalone?), correct? In the model initialization commands (Simulation menu\>Simulation parameters\>Initialization tab) you can directly include the Octave code, or call the m file by name if it is placed in the same directory as your model file. Let me know if this is relevant or you are trying to do something else.

Regards,

Kris

---

<div class="post-metadata">

**Author:** ![Shaz](https://avatars.discourse-cdn.com/v4/letter/s/ba9def/32.png) [@Shaz](https://forum.plexim.com/u/Shaz)\
**Post date:** [September 30, 2020, 4:56am UTC](https://forum.plexim.com/t/how-to-link-octave-script-with-plecs/867/3 "2020-09-30T04:56:55Z")

</div>

I want to use Octave as scripting language to establish xml-rpc interface and initialize the matrix values obtained from Octave script to Plecs.

---

<div class="post-metadata">

**Author:** ![Kris\_Eberle](https://dub1.discourse-cdn.com/flex006/user_avatar/forum.plexim.com/kris_eberle/32/6_2.png) [@Kris\_Eberle](https://forum.plexim.com/u/Kris_Eberle)\
**Post date:** [October 1, 2020, 12:38am UTC](https://forum.plexim.com/t/how-to-link-octave-script-with-plecs/867/4 "2020-10-01T00:38:23Z")

</div>

As the previous user commented, please refer to the recent thread on the same topic, thanks.
