我想实现通过DigSilent提供的digexdyn来调用外部dll(dll内含有控制算法)。虽然digsilent的帮助文档中提到了此方法,但是没有详细的说明。 - k5 L4 d$ m# E2 ?1 D希望大家可以帮帮忙,有详细的说明或者例子发我参考一下。谢谢0 ^6 |8 N' m* E, J- N
, v0 o: d- K2 Z2 r' P7 g, i6 `5 W/ M % m. T+ Y7 J; [/ |digsilent的说明文档如下。4 m; L ?. R/ Q4 I$ y* U
-------------------------------------------------------------------------------------------------------------------------------. |! d9 @' J3 h$ ~2 O# h, s$ Y
User-specific C++ Code e0 {. r9 v7 V! j
The user has two options for combining the PowerFactory DSL modelling approach with externally developed ) Q2 j5 ?4 Q5 AC++ code. 4 E- @* `& P( w% b* o6 a5 Z
1. User-defined intrinsic functions can be linked via external DLL for extending the already broad range of 7 G0 ~+ ?$ D3 H3 t
DSL standard intrinsic functions such as: “abs”, “sin”, “cos”, “exp”, etc. and DSL special functions such ' d0 {3 p( \& M" mas “lapprox”, “lim”, “limstate”, “delay”, “picdro”, “time”, “file”, “flipflop”, etc. User defined intrinsic 4 Z l: W& H# mfunctions are to be linked to PowerFactory via the DLL “digexfun”. 7 A3 e* W5 d; z8 K: d8 e2. Complete user-defined models of any modelling level, linked via the DLL “digexdyn” is supported for any ?/ I) h& P* d3 Y; b: [6 I. \" Xdiscrete system. Typical applications are digital control systems which are executed via clock- 1 i, _5 {! v5 Vsynchronized calls, simulation models being implemented via difference equations, or models which incl. ' o: I. w' E) Y; a+ N& b
their state variables and integration algorithms internally. - _0 s' o/ u. r; |-------------------------------------------------------------------------------------------------------------------------------