# Implementation error: No port for terminal

**URL:** <https://forum.plexim.com/t/implementation-error-no-port-for-terminal/773>\
**Category:** PLECS\
**Tags:** matlab, error, plecs-blockset\
**Created:** [May 12, 2020, 10:53am UTC](https://forum.plexim.com/t/implementation-error-no-port-for-terminal/773 "2020-05-12T10:53:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hasan8](https://avatars.discourse-cdn.com/v4/letter/h/b782af/32.png) [@Hasan8](https://forum.plexim.com/u/Hasan8)\
**Post date:** [May 12, 2020, 10:53am UTC](https://forum.plexim.com/t/implementation-error-no-port-for-terminal/773/1 "2020-05-12T10:53:23Z")

</div>

Hi,

I am running a MATLAB simulation with PLECS Blockset. In my PLECS Blockset, there is a grid model embedded inside a subsystem. Using Signal inport and signal outport, i am feeding in and taking the signals from the system. I am getting this unusual error which doesn’t point to any port or terminal. I have attached the screenshots and simulation model to this question. Your response awaited.

Thanks

Shahbaz Hasan

 ![WhatsApp Image 2020-05-12 at 1.26.10 PM.jpeg](https://europe1.discourse-cdn.com/flex006/uploads/plecs/original/1X/a8c89a5edfcab9d73940ce131133b9f581028837.jpeg)

 ![WhatsApp Image 2020-05-12 at 1.27.50 PM.jpeg](https://europe1.discourse-cdn.com/flex006/uploads/plecs/original/1X/07ca8fcbf961358406718c59870c524f9083c9ec.jpeg)

[SIL\_MPC\_Plant.slx](https://forum.plexim.com/uploads/short-url/3SzAbbYLS0OYsPq8MpWhBZlkRQL.slx) (29.6 KB)

---

<div class="post-metadata">

**Author:** ![Manu\_Parimi](https://dub1.discourse-cdn.com/flex006/user_avatar/forum.plexim.com/manu_parimi/32/6_2.png) [@Manu\_Parimi](https://forum.plexim.com/u/Manu_Parimi)\
**Post date:** [May 12, 2020, 4:09pm UTC](https://forum.plexim.com/t/implementation-error-no-port-for-terminal/773/2 "2020-05-12T16:09:19Z")

</div>

Hi Hasan,

Would it be possible to attach the initialization commands file --“SAPF\_MPC\_capload\_parameter” so that I can try and simulate the circuit?

Regards,  
Manu

---

<div class="post-metadata">

**Author:** ![Hasan8](https://avatars.discourse-cdn.com/v4/letter/h/b782af/32.png) [@Hasan8](https://forum.plexim.com/u/Hasan8)\
**Post date:** [May 12, 2020, 6:18pm UTC](https://forum.plexim.com/t/implementation-error-no-port-for-terminal/773/3 "2020-05-12T18:18:36Z")

</div>

Hi Manu,

Thanks for the prompt response. I have attached the script you can run the script to update the workspace for initial commands.

Regards,

Shahbaz Hasan

[SAPF\_MPC\_capload\_parameter.m](https://forum.plexim.com/uploads/short-url/gmMmL0UKsrPKcCMZ95Gv7FgoJIR.m) (772 Bytes)

---

<div class="post-metadata">

**Author:** ![Manu\_Parimi](https://dub1.discourse-cdn.com/flex006/user_avatar/forum.plexim.com/manu_parimi/32/6_2.png) [@Manu\_Parimi](https://forum.plexim.com/u/Manu_Parimi)\
**Post date:** [May 12, 2020, 10:23pm UTC](https://forum.plexim.com/t/implementation-error-no-port-for-terminal/773/4 "2020-05-12T22:23:59Z")

</div>

Hi Shahbaz,

This could be a bug. I will get back with a definitive answer tomorrow.

Regards,  
Manu

---

<div class="post-metadata">

**Author:** ![Manu\_Parimi](https://dub1.discourse-cdn.com/flex006/user_avatar/forum.plexim.com/manu_parimi/32/6_2.png) [@Manu\_Parimi](https://forum.plexim.com/u/Manu_Parimi)\
**Post date:** [May 13, 2020, 10:34am UTC](https://forum.plexim.com/t/implementation-error-no-port-for-terminal/773/5 "2020-05-13T10:34:25Z")

</div>

Hi Shahbaz,

This is indeed a bug. The developers suggested the following workaround–  
“To fix the Circuit block, you need to copy the complete schematic into a fresh Circuit block (and then you need to also copy all simulation parameters).”

Regards,  
Manu

---

<div class="post-metadata">

**Author:** ![Hasan8](https://avatars.discourse-cdn.com/v4/letter/h/b782af/32.png) [@Hasan8](https://forum.plexim.com/u/Hasan8)\
**Post date:** [May 13, 2020, 10:41am UTC](https://forum.plexim.com/t/implementation-error-no-port-for-terminal/773/6 "2020-05-13T10:41:06Z")

</div>

Hi Manu,

I will try this workaround and will get back to you with the status.

Thanks and Regards

Shahbaz Hasan

---

<div class="post-metadata">

**Author:** ![Hasan8](https://avatars.discourse-cdn.com/v4/letter/h/b782af/32.png) [@Hasan8](https://forum.plexim.com/u/Hasan8)\
**Post date:** [May 14, 2020, 6:15pm UTC](https://forum.plexim.com/t/implementation-error-no-port-for-terminal/773/7 "2020-05-14T18:15:39Z")

</div>

Hi Manu

Error got solved. It was a bug.

Thanks and Regards

Shahbaz Hasan
