DSIM API for Use with C/C++
DSIM API for use with C/C++ is an efficient interface library designed for C/C++ developers. It enables users to easily conduct simulations by writing custom functions and programs. The API supports various functions such as schematic operations, simulation control, and data processing. Through the provided interface functions, users can leverage DSIM for parameter design, multi-scenario testing, and the integration of various custom features.
DSIM API (C/C++) Supports the Following Interfaces:
The following demonstrates how to design your own program based on the DSIM API using a simulation console program example.
Users can load circuit files, start simulations, and perform other features through the interfaces provided by the DSIM API. After the simulation is completed, users can get simulation data such as voltage and current through the interfaces provided by the DSIM API. The following pictures show some of the DSIM API interface functions used in the program. (The source code of the console program is provided at the end of this page for download.)
How to Design Your Own Program Based on DSIM API
The following demonstrates how to use the simulation console program example to modify the resistance parameters in the circuit and get simulation results by entering commands in the program.
Simulation Console Feature Demonstration
After the resistance value is modified, the simulation is started again, and the simulation result data is obtained.
The following shows a comparison of the simulation curves before and after the resistance value modification.
* Tutorial - DSIM API Document (C_C++), source code and console program:
-
2025-12-26 Tutorial - DSIM API Document(C-C--).pdf
끂11 413.34 KB -
2024-12-27 Source Code.zip
끂4 10.48 KB -
2024-12-27 Console Program.zip
끂6 31.28 KB
|
Creation and release of handle
|
Create simple handle; Create schematic handle; release handle
|
|
Schematic operations
|
Set simulation schematic; Get element parameter value; Set element parameter value; Get parameter file content; Set parameter file content; Get subcircuit variable value; Set subcircuit variable value; Get simulation control parameter; Modify simulation control parameter; Save schematic
|
|
Simulation process
|
Initialize simulation; Get original curve; Set output curve; Start simulation; Pause simulation; Continue simulation; Cancel simulation; Get simulation status; Get simulation process information
|
|
Data operation
|
Get curve name; Get specified curve data; Get all curve data; Delete specified curve data; Delete all curve data; Delete curve file
|
| Other |
View schematic; View curve; Get curve file data; Get error message
|
For more information, please refer to "Tutorial - DSIM API Document (C_C++)". (The tutorial is attached at the bottom of this page for download.)