我想实现通过DigSilent提供的digexdyn来调用外部dll(dll内含有控制算法)。虽然digsilent的帮助文档中提到了此方法,但是没有详细的说明。) P( B0 w9 k- K$ h3 E& M
希望大家可以帮帮忙,有详细的说明或者例子发我参考一下。谢谢 + }: s+ O: h; c/ f4 ?- _8 Y. o' ~& o3 K6 Z
6 F2 h" `8 h2 Q* J4 p" Y/ Cdigsilent的说明文档如下。 " d6 B) [3 s5 `( c0 B$ P1 p# D------------------------------------------------------------------------------------------------------------------------------- 8 Z& D4 f+ ^ W3 A HUser-specific C++ Code 7 _6 _ M$ C; R, eThe user has two options for combining the PowerFactory DSL modelling approach with externally developed + \4 h3 c% l( \2 n! X
C++ code. & ~2 E2 t I! z+ \" e8 D1. User-defined intrinsic functions can be linked via external DLL for extending the already broad range of z+ T3 c% c$ e4 A4 O5 yDSL standard intrinsic functions such as: “abs”, “sin”, “cos”, “exp”, etc. and DSL special functions such 7 S3 ]5 ?# `, \* [1 ~3 Z
as “lapprox”, “lim”, “limstate”, “delay”, “picdro”, “time”, “file”, “flipflop”, etc. User defined intrinsic / _6 z& ]$ L- S: Bfunctions are to be linked to PowerFactory via the DLL “digexfun”. # n( U1 J! F8 y6 e- G2 j+ L8 b; \
2. Complete user-defined models of any modelling level, linked via the DLL “digexdyn” is supported for any 1 k4 {( D! `# k$ A5 _$ D1 A+ @discrete system. Typical applications are digital control systems which are executed via clock-3 L. p1 g3 I: v0 n" K* ?
synchronized calls, simulation models being implemented via difference equations, or models which incl. . {# [# I% d& \$ G" q. t
their state variables and integration algorithms internally. 6 [ U$ D0 Q) L3 X. z( J
-------------------------------------------------------------------------------------------------------------------------------