我想实现通过DigSilent提供的digexdyn来调用外部dll(dll内含有控制算法)。虽然digsilent的帮助文档中提到了此方法,但是没有详细的说明。 * @1 i' |2 Q- W( o' \/ [希望大家可以帮帮忙,有详细的说明或者例子发我参考一下。谢谢 ) U; g' z$ |3 j" ]6 R5 g+ s 7 E& n8 e( R1 J- B, ]* y/ q4 l, @0 w% l
digsilent的说明文档如下。 5 h3 }0 R4 @, c+ |' [, a-------------------------------------------------------------------------------------------------------------------------------& x6 E7 L$ X% s+ t" J* m
User-specific C++ Code ; N. y/ ^: M: k( ~/ _5 ^4 s* q
The user has two options for combining the PowerFactory DSL modelling approach with externally developed 4 [8 {" J$ |; p2 uC++ code. / Q# n- Y( O) @
1. User-defined intrinsic functions can be linked via external DLL for extending the already broad range of 1 t" z& w9 H; T# iDSL standard intrinsic functions such as: “abs”, “sin”, “cos”, “exp”, etc. and DSL special functions such ' v j. ~9 O6 r6 q5 e% U
as “lapprox”, “lim”, “limstate”, “delay”, “picdro”, “time”, “file”, “flipflop”, etc. User defined intrinsic ( c$ ]! R1 `/ S/ |functions are to be linked to PowerFactory via the DLL “digexfun”. 9 |* L w9 b; i# |3 e# q9 _& B* W2. Complete user-defined models of any modelling level, linked via the DLL “digexdyn” is supported for any 4 d* e% R j6 G. B0 d; u% V% R
discrete system. Typical applications are digital control systems which are executed via clock- 8 m0 X: q9 g! O, a) h9 [synchronized calls, simulation models being implemented via difference equations, or models which incl. . @9 I9 G# y. Z2 }$ ]' |their state variables and integration algorithms internally. 5 \$ h$ l7 q, b; ]" l! s; d5 o
-------------------------------------------------------------------------------------------------------------------------------