我想实现通过digsilent提供的digexdyn来调用外部dll(dll内含有控制算法)。虽然digsilent的帮助文档中提到了此方法,但是没有详细的说明。) R# I# ?& c2 `" A' w3 I# F
希望大家可以帮帮忙,有详细的说明或者例子发我参考一下。谢谢 : f8 Z; P0 ~: z2 ^. R! y. E! t, e ?# h0 y+ p" C- m
) i. Z, B1 S9 R5 _
digsilent的说明文档如下。* E" S- N) P# U2 O1 h- L+ x
------------------------------------------------------------------------------------------------------------------------------- 9 O& R/ O3 J. Z" U7 xUser-specific C++ Code + `9 Z( @7 S: T2 S" [The user has two options for combining the PowerFactory DSL modelling approach with externally developed 3 a; R9 t: W" ?6 N. f9 oC++ code. ( B5 ~$ t' V& r( N3 }9 k& }1. User-defined intrinsic functions can be linked via external DLL for extending the already broad range of & \2 j* {9 q `4 B- a
DSL standard intrinsic functions such as: “abs”, “sin”, “cos”, “exp”, etc. and DSL special functions such , Q; I/ J0 O# {
as “lapprox”, “lim”, “limstate”, “delay”, “picdro”, “time”, “file”, “flipflop”, etc. User defined intrinsic 4 N) |8 ~% D2 ]0 W3 r' K; R
functions are to be linked to PowerFactory via the DLL “digexfun”. 3 v/ ]. a! t) h5 O: Z3 V2. Complete user-defined models of any modelling level, linked via the DLL “digexdyn” is supported for any + b j. v4 G3 j" Q1 w+ L
discrete system. Typical applications are digital control systems which are executed via clock- 6 C: A% s3 o6 e0 N6 t9 ssynchronized calls, simulation models being implemented via difference equations, or models which incl. 5 L3 L S9 ]2 \5 Y* _4 B2 ltheir state variables and integration algorithms internally. - ]6 ]% S4 @! O% j-------------------------------------------------------------------------------------------------------------------------------