• Home
  • Product
    • DSIM 2026a
    • DSIM Features
    • Release Review
    • Get DSIM
  • Try DSIM
  • Application
    • User Cases
    • Simulation Cases
  • Solution
    • SST Solution
  • Resources
    • Technical Resources
    • Q&A
  • Events
    • Webinar
    • Research Support Program
    • Teaching Support Program
  • About Us
    • Contact Us

DSIM -- Power Electronics Simulation

  • Log in
  • Register
Quit
Contact us
简体中文 (CN)

DLL Block

The general DLL block allows users to write code in C or C++, compile it as a Windows DLL, and link it to DSIM. There are four exported functions. Three of them are used by the DSIM simulation engine, and one is used by the user interface.

DLL Block in DSIM

In this case, the DLL element, discrete controlled current source, and voltage sensor are employed to model a custom inductor. DLL element takes the measured voltage of voltage sensor as input, realizes the mathematical model of inductance using C++, and connects to the power circuit with the controlled current source. In order to validate the accuracy of the modeling, the voltage and current characteristics of the DLL custom inductor are compared with the inductor of the same inductance in the same circuit.

The following figure shows the current and voltage contrast curves of the DLL custom inductor and the inductor of the same inductance respectively.

A Case of the DLL Block

The user interface function is REQUESTUSERDATA. The three simulation functions are: SimulationStep, SimulationBegin, and SimulationEnd. There are two additional functions: GetDSIMValue and GetDSIMText that can be called in the simulation functions to retrieve information such as time step, total time, schematic file path, and other circuit parameters. Each function has the non‐Unicode version and the Unicode version.

● Parameters:

File Name of the DLL file.
Data Input data file of the DLL routine, save as the last element of the array pszParameters[nParameterCount - 1] (optional)
Number of Input Nodes Number of input nodes (optional)
Number of Output Nodes Number of output nodes (optional)
Variables Parameters passed into the DLL routine, save as the element of the array pszParameters (optional)

 

Features

  • Switching Transient Model Simulation
  • Loss Calculation
  • C Block
  • DLL Block
  • AC Sweep Frequency Analysis
  • Script
  • Co-simulation with MATLAB/Simulink
  • DSIM API(MATLAB)
  • DSIM API( C/C++)
  • DSIM API(Python)
Product
  • DSIM 2026a
  • DSIM Features
  • Release Review
  • Get DSIM
  • Contact Us
About Us
Copyright © DSIM- Power Electronic Simulation
Application
  • Simulation Cases
  • User Cases
  • SST Solution
Solution
Events
  • Webinar
  • Research Support Program
  • Teaching Support Program
  • Technical Resources
  • Q&A
Resources
 本网站由阿里云提供云计算及安全服务
本网站支持 IPv6
 本网站由阿里云提供云计算及安全服务
本网站支持 IPv6
 本网站由阿里云提供云计算及安全服务
本网站支持 IPv6
 本网站由阿里云提供云计算及安全服务
本网站支持 IPv6