# \#dll

**URL:** https://forum.plexim.com/tag/dll/396.md

[Latest](https://forum.plexim.com/latest.md) · [Categories](https://forum.plexim.com/categories.md) · [Tags](https://forum.plexim.com/tags.md)

---

## [Simulating Verilog Logic in PLECS via Verilator](https://forum.plexim.com/t/simulating-verilog-logic-in-plecs-via-verilator/3238)

<div class="topic-metadata">

**Author:** [@Munadir\_Ahmed](https://forum.plexim.com/u/Munadir_Ahmed)\
**Replies:** 0\
**Last updated:** [July 23, 2026, 8:18pm UTC](https://forum.plexim.com/t/simulating-verilog-logic-in-plecs-via-verilator/3238 "2026-07-23T20:18:24Z")

</div>

Introduction If your control logic is written in Verilog, headed for an FPGA or ASIC down the line, you’ll eventually want to validate it in PLECS. PLECS can’t run Verilog directly, so the usual options are to hand-trans…

---

## [Debugging dll sometimes cause load symbol problem](https://forum.plexim.com/t/debugging-dll-sometimes-cause-load-symbol-problem/2829)

<div class="topic-metadata">

**Author:** [@vishweshgm](https://forum.plexim.com/u/vishweshgm)\
**Replies:** 5\
**Last updated:** [February 17, 2026, 1:49pm UTC](https://forum.plexim.com/t/debugging-dll-sometimes-cause-load-symbol-problem/2829 "2026-02-17T13:49:50Z")

</div>

I have a model A that has another model B as a sub-module. I have kept a DLL block inside submodule B and linked it to correct dll file. Through visual studio I want to debug while simulation. So I use attach process fea…

---

## [How to write DLL to make it reentrant?](https://forum.plexim.com/t/how-to-write-dll-to-make-it-reentrant/1167)

<div class="topic-metadata">

**Author:** [@mikkki](https://forum.plexim.com/u/mikkki)\
**Replies:** 3\
**Last updated:** [March 13, 2025, 3:54pm UTC](https://forum.plexim.com/t/how-to-write-dll-to-make-it-reentrant/1167 "2025-03-13T15:54:53Z")

</div>

I try to write reentrant DLL based on example pi\_controller project. I need to use one dll several times in a one simulation model simultaneously. I introduced struct “Converter\_struct” and try to put there all variables…

---

## [The use of DLL module with rt box](https://forum.plexim.com/t/the-use-of-dll-module-with-rt-box/1179)

<div class="topic-metadata">

**Author:** [@OptimisticPoplar](https://forum.plexim.com/u/OptimisticPoplar)\
**Replies:** 1\
**Last updated:** [November 17, 2022, 4:29pm UTC](https://forum.plexim.com/t/the-use-of-dll-module-with-rt-box/1179 "2022-11-17T16:29:34Z")

</div>

I made a 3-ph inverter PLECS model today and a DLL was used to connect my codes which were written in visual studio. The problem is that there was a error when I wanted to use rt box in real-time simulation. The error’…

---

## [Is it possible to have an Access to Octave Console from DLL block](https://forum.plexim.com/t/is-it-possible-to-have-an-access-to-octave-console-from-dll-block/992)

<div class="topic-metadata">

**Author:** [@gateau](https://forum.plexim.com/u/gateau)\
**Replies:** 2\
**Last updated:** [March 26, 2021, 3:06am UTC](https://forum.plexim.com/t/is-it-possible-to-have-an-access-to-octave-console-from-dll-block/992 "2021-03-26T03:06:12Z")

</div>

Hello, Is it possible to have an Access to Octave Console from DLL block to printf intermediate result for example. Thank you for your reply.

---

## [DLL example error filename](https://forum.plexim.com/t/dll-example-error-filename/984)

<div class="topic-metadata">

**Author:** [@gateau](https://forum.plexim.com/u/gateau)\
**Replies:** 2\
**Last updated:** [March 17, 2021, 4:44am UTC](https://forum.plexim.com/t/dll-example-error-filename/984 "2021-03-17T04:44:56Z")

</div>

I have tried to use DLL but I always have the same error message: “Error evaluating parameter ‘Filename’ in component Modulation: Cannot load library ‘C:\\Temp\\visualSVM\\MOD\\Debug\\dllMOD.dll’.” The file “dllMOD.dll” exi…

---

## [How to use userData in DLL?](https://forum.plexim.com/t/how-to-use-userdata-in-dll/963)

<div class="topic-metadata">

**Author:** [@yaoyaoyao](https://forum.plexim.com/u/yaoyaoyao)\
**Replies:** 1\
**Last updated:** [February 19, 2021, 5:19pm UTC](https://forum.plexim.com/t/how-to-use-userdata-in-dll/963 "2021-02-19T17:19:05Z")

</div>

I’m going to pass some complex customed data from one dll to another by using customed struct type, and I found a pointer called userData. There doesn’t exist much documentation about how to use it. So, anyone can help m…

---

## [How to share global variable in different c script?](https://forum.plexim.com/t/how-to-share-global-variable-in-different-c-script/859)

<div class="topic-metadata">

**Author:** [@yaoyaoyao](https://forum.plexim.com/u/yaoyaoyao)\
**Replies:** 4\
**Last updated:** [January 13, 2021, 4:35am UTC](https://forum.plexim.com/t/how-to-share-global-variable-in-different-c-script/859 "2021-01-13T04:35:33Z")

</div>

I have already wrriten some complex c code and run them in hardare experiment. I want to implement a simulation model using Plecs, but I found it difficult to pass customed data(defined by struct) by signal line. Thus I …

---

## [Using a DLL with Linux](https://forum.plexim.com/t/using-a-dll-with-linux/795)

<div class="topic-metadata">

**Author:** [@srinath](https://forum.plexim.com/u/srinath)\
**Replies:** 1\
**Last updated:** [July 13, 2020, 11:32am UTC](https://forum.plexim.com/t/using-a-dll-with-linux/795 "2020-07-13T11:32:17Z")

</div>

Hi I run PLECS on Linux. I have C-Code that i would like to convert into a DLL. I find the DLL block in the library and the header file in /include/plecs/DllHeader.h However the documentation talks only about DLL gene…

---

## [DLL interface - File name expression](https://forum.plexim.com/t/dll-interface-file-name-expression/753)

<div class="topic-metadata">

**Author:** [@Peter\_Maurer](https://forum.plexim.com/u/Peter_Maurer)\
**Replies:** 1\
**Last updated:** [March 13, 2020, 12:00pm UTC](https://forum.plexim.com/t/dll-interface-file-name-expression/753 "2020-03-13T12:00:53Z")

</div>

Is there a way to specify the file name parameter of the external DLL block as an expression? Other subsystem masks allow to configure if a string parameter shall be interpreted either as expression or as literal string…
