我想实现通过digsilent提供的digexdyn来调用外部dll(dll内含有控制算法)。虽然digsilent的帮助文档中提到了此方法,但是没有详细的说明。 ( S/ ]5 J1 b. ?: D1 U8 v9 ` ~希望大家可以帮帮忙,有详细的说明或者例子发我参考一下。谢谢5 ^+ E e7 ]* R
* L' m c+ l7 _ v. d' _; W' H I$ D" {1 o, W( t& x
digsilent的说明文档如下。 % L$ \9 W0 f/ r- h! ~6 c' [-------------------------------------------------------------------------------------------------------------------------------" |% |3 l& Y0 e) }2 T" {& O5 ]6 f
User-specific C++ Code & A. Y5 _: o# f9 {& g
The user has two options for combining the PowerFactory DSL modelling approach with externally developed , ^" a* n2 Z7 B7 |6 m0 I+ OC++ code. 9 D S# q5 C L1. User-defined intrinsic functions can be linked via external DLL for extending the already broad range of # X: w8 J: P0 U, ^DSL standard intrinsic functions such as: “abs”, “sin”, “cos”, “exp”, etc. and DSL special functions such ( }' m+ a' }! t8 M% K" r/ [ ras “lapprox”, “lim”, “limstate”, “delay”, “picdro”, “time”, “file”, “flipflop”, etc. User defined intrinsic 5 x9 Z( E+ s7 x1 o# X' C7 \7 vfunctions are to be linked to PowerFactory via the DLL “digexfun”. 4 W( m( a- P+ q5 V5 g3 \5 v! x, B2. Complete user-defined models of any modelling level, linked via the DLL “digexdyn” is supported for any 5 W+ e/ C4 j# F( Ydiscrete system. Typical applications are digital control systems which are executed via clock- ( T$ O! y$ L2 v% l! Tsynchronized calls, simulation models being implemented via difference equations, or models which incl. 0 Q @& k* e4 B+ P
their state variables and integration algorithms internally. 8 |1 n# k7 i6 M9 S3 z; |4 o4 H' w-------------------------------------------------------------------------------------------------------------------------------