我想实现通过DigSilent提供的digexdyn来调用外部dll(dll内含有控制算法)。虽然digsilent的帮助文档中提到了此方法,但是没有详细的说明。) O5 } L1 N6 b% R
希望大家可以帮帮忙,有详细的说明或者例子发我参考一下。谢谢 $ o8 ?- V+ |! ? ) s9 U1 ~; X `. D' ]2 w2 g/ \7 ]- J- X: E; Y* k, N
digsilent的说明文档如下。 @% h1 v' P# y3 \& I' [
------------------------------------------------------------------------------------------------------------------------------- + W B+ D/ J' O; f3 |3 M- S4 W$ gUser-specific C++ Code 6 ?& V, X) y4 |8 @! t, N
The user has two options for combining the PowerFactory DSL modelling approach with externally developed 5 Q O3 c- R3 L+ t; c) s
C++ code. i J9 O- c9 w5 C% f1. User-defined intrinsic functions can be linked via external DLL for extending the already broad range of & }: o7 a5 E% J4 r9 @$ v" n
DSL standard intrinsic functions such as: “abs”, “sin”, “cos”, “exp”, etc. and DSL special functions such ' g4 ^- h8 ?7 K( z9 t
as “lapprox”, “lim”, “limstate”, “delay”, “picdro”, “time”, “file”, “flipflop”, etc. User defined intrinsic & k: p- L5 {/ K/ f+ }1 u7 b6 F$ Xfunctions are to be linked to PowerFactory via the DLL “digexfun”. : f8 y% K; {0 z9 J
2. Complete user-defined models of any modelling level, linked via the DLL “digexdyn” is supported for any ! \- t0 r! V6 ?6 [ V2 Z2 jdiscrete system. Typical applications are digital control systems which are executed via clock- J0 j4 v$ F8 d+ d& D5 Qsynchronized calls, simulation models being implemented via difference equations, or models which incl. , ~& d2 Q7 q! L$ X0 o
their state variables and integration algorithms internally. r9 K8 k, f0 H( ^4 s: l# b/ C-------------------------------------------------------------------------------------------------------------------------------