我想实现通过DigSilent提供的digexdyn来调用外部dll(dll内含有控制算法)。虽然digsilent的帮助文档中提到了此方法,但是没有详细的说明。' o H% R! m- r0 g! s
希望大家可以帮帮忙,有详细的说明或者例子发我参考一下。谢谢 ; Y) e) _1 r0 Y S7 e5 R3 d* T ]9 _% I' q& @
; ^4 r! ]8 j' |/ E9 f2 T K
digsilent的说明文档如下。5 k; F! E$ h- Y. I+ i
------------------------------------------------------------------------------------------------------------------------------- ) w' B9 J/ p: Q% SUser-specific C++ Code # Z0 Q$ x1 q# o3 n6 Q' c; wThe user has two options for combining the PowerFactory DSL modelling approach with externally developed 1 i3 ^0 _/ {' g0 H; U7 d/ ^. t" HC++ code. 5 _/ D4 k+ F9 E7 t5 v
1. User-defined intrinsic functions can be linked via external DLL for extending the already broad range of ' W0 `2 z' H6 `0 \4 W- _6 @9 ODSL standard intrinsic functions such as: “abs”, “sin”, “cos”, “exp”, etc. and DSL special functions such 8 X2 d2 p. `8 G: ~' ~
as “lapprox”, “lim”, “limstate”, “delay”, “picdro”, “time”, “file”, “flipflop”, etc. User defined intrinsic 5 P3 @0 b9 P9 L: u5 F+ V7 g) p5 ?: l1 Ufunctions are to be linked to PowerFactory via the DLL “digexfun”. ' n+ `" L. G% t5 \2. Complete user-defined models of any modelling level, linked via the DLL “digexdyn” is supported for any 7 r1 H4 |; N# y* P+ Vdiscrete system. Typical applications are digital control systems which are executed via clock- : k( V. s2 d/ g! B% V) d* ?synchronized calls, simulation models being implemented via difference equations, or models which incl. 1 Q# o9 I: ?( r1 r8 t' }2 j/ Stheir state variables and integration algorithms internally. ) D% H! F+ _: C+ G! R-------------------------------------------------------------------------------------------------------------------------------