How to Use DLL Blocks

Опубликовано: 13 Октябрь 2025
на канале: Altair HyperWorks How-To
16,312
21

An external DLL (dynamic link library) block allows users to write code in C-C++, compile it into DLL using Microsoft Visual C-C++, and link it with PSIM. These blocks can be used in either the power circuit or the control circuit.
A DLL block receives values from PSIM as inputs, performs the calculation, and sends the results back to PSIM. PSIM calls the DLL routine at each simulation time step. However, when the inputs of the DLL block are connected to one of these discrete elements (zero-order hold, unit delay, discrete integrators and differentiators, z-domain transfer function blocks, and digital filters), the DLL block is called only at the discrete sampling times.

Want to try PSIM? - https://hubs.ly/H0f9wCC0
Why is PSIM preferred for Power Electronics simulation? - https://hubs.ly/H0f9wFX0
Why should you use PSIM for digital control? - https://hubs.ly/H0f9wC-0