我想实现通过DigSilent提供的digexdyn来调用外部dll(dll内含有控制算法)。虽然digsilent的帮助文档中提到了此方法,但是没有详细的说明。% Z2 }; N' {2 {
希望大家可以帮帮忙,有详细的说明或者例子发我参考一下。谢谢 ' ?, r; o; ~7 T; P$ ?9 _8 r; k+ }& b5 q* s7 q& P
. K) e' y5 }& D
digsilent的说明文档如下。 8 A% y+ E& {7 Z. Q! Y2 Q1 l-------------------------------------------------------------------------------------------------------------------------------# |9 y& f9 w" }- L. X/ P
User-specific C++ Code * l- U6 T0 p! a" I) b- N* @The user has two options for combining the PowerFactory DSL modelling approach with externally developed 3 _& @ U& a- q# BC++ code. 2 `7 z( K, `6 c5 n6 ~; D
1. User-defined intrinsic functions can be linked via external DLL for extending the already broad range of 7 h5 G- ]6 p9 w/ p$ o n
DSL standard intrinsic functions such as: “abs”, “sin”, “cos”, “exp”, etc. and DSL special functions such 9 E% F$ N' d' h$ t2 M- X' c" vas “lapprox”, “lim”, “limstate”, “delay”, “picdro”, “time”, “file”, “flipflop”, etc. User defined intrinsic & c8 V3 Y+ e5 o( p1 G$ w) |- i3 n
functions are to be linked to PowerFactory via the DLL “digexfun”. % j$ U7 J d+ N- e! J8 @
2. Complete user-defined models of any modelling level, linked via the DLL “digexdyn” is supported for any & ?7 T8 \8 @' s7 b! _* R* i
discrete system. Typical applications are digital control systems which are executed via clock- $ H. J" h5 R6 U1 |% N8 Ksynchronized calls, simulation models being implemented via difference equations, or models which incl. R0 M1 ?& c' S! t/ ^
their state variables and integration algorithms internally. 6 j/ ?. _; D9 f: ^7 S" Z-------------------------------------------------------------------------------------------------------------------------------