我想实现通过DigSilent提供的digexdyn来调用外部dll(dll内含有控制算法)。虽然digsilent的帮助文档中提到了此方法,但是没有详细的说明。; H4 p& K' T! A6 v, N: p* w
希望大家可以帮帮忙,有详细的说明或者例子发我参考一下。谢谢4 D- P6 r/ I5 l4 {8 Q
. S/ @, B& N1 k3 v
! E, V2 [8 u- K3 \, h' }
digsilent的说明文档如下。( v$ @" R. p6 x
-------------------------------------------------------------------------------------------------------------------------------% J; G7 f9 r0 Q f
User-specific C++ Code . U# u7 Z: ]9 ? @
The user has two options for combining the PowerFactory DSL modelling approach with externally developed $ K1 h" }) p$ c1 ~7 b
C++ code. ; l. C1 E8 F& l* b9 f; S
1. User-defined intrinsic functions can be linked via external DLL for extending the already broad range of _6 l3 y$ `, `2 {; [8 J3 f7 S+ b% y
DSL standard intrinsic functions such as: “abs”, “sin”, “cos”, “exp”, etc. and DSL special functions such 0 |/ l: }8 K7 @% t$ S; Las “lapprox”, “lim”, “limstate”, “delay”, “picdro”, “time”, “file”, “flipflop”, etc. User defined intrinsic , N; F5 @& H0 Z. d, `5 ~+ ?, afunctions are to be linked to PowerFactory via the DLL “digexfun”. , c& z. L0 Q' s& z) t m4 m2. Complete user-defined models of any modelling level, linked via the DLL “digexdyn” is supported for any + t, l$ ]7 {+ H( U
discrete system. Typical applications are digital control systems which are executed via clock-1 P+ E8 _0 l( f* E
synchronized calls, simulation models being implemented via difference equations, or models which incl. 0 z4 S+ {' Y9 B5 i$ q, ztheir state variables and integration algorithms internally. / \- D `3 u! K) K7 s% t. [8 H8 X
-------------------------------------------------------------------------------------------------------------------------------