我想实现通过DigSilent提供的digexdyn来调用外部dll(dll内含有控制算法)。虽然digsilent的帮助文档中提到了此方法,但是没有详细的说明。' K1 {; i# Y) w& D0 Z L
希望大家可以帮帮忙,有详细的说明或者例子发我参考一下。谢谢 * A N+ \5 w1 y; y7 b. h v7 ?. I4 ], R% F$ K! v3 F1 W9 c
) `. J, J' a8 \7 D: J
digsilent的说明文档如下。 . j; k' o0 F4 C$ m: W------------------------------------------------------------------------------------------------------------------------------- 8 y* _4 e: Y. b6 M5 gUser-specific C++ Code , v' C# J# P! Z; W' n" C
The user has two options for combining the PowerFactory DSL modelling approach with externally developed * O. I1 |3 R1 }
C++ code. ) s8 x* ?' P+ Y) x$ `, {1 i
1. User-defined intrinsic functions can be linked via external DLL for extending the already broad range of * B4 @1 L h$ K/ C8 mDSL standard intrinsic functions such as: “abs”, “sin”, “cos”, “exp”, etc. and DSL special functions such % `5 o; W a3 j7 h% X; |- |
as “lapprox”, “lim”, “limstate”, “delay”, “picdro”, “time”, “file”, “flipflop”, etc. User defined intrinsic + @7 a8 ]" R0 R3 X
functions are to be linked to PowerFactory via the DLL “digexfun”. V4 r5 S/ W" u2. Complete user-defined models of any modelling level, linked via the DLL “digexdyn” is supported for any 0 t9 {' v9 S9 t% Q1 a# ~
discrete system. Typical applications are digital control systems which are executed via clock-2 D x6 a% O( `0 P; e8 g7 ~$ g
synchronized calls, simulation models being implemented via difference equations, or models which incl. 3 f! r9 B. Z0 x
their state variables and integration algorithms internally. 3 _: M2 k5 y5 z
-------------------------------------------------------------------------------------------------------------------------------