, H- l1 [/ O$ c' o6 N3 k: I# ^/ z$ ?) @2 K
digsilent的说明文档如下。 & {, ^' F+ M z+ U* L# G$ }------------------------------------------------------------------------------------------------------------------------------- ' e4 a% A6 S, S6 rUser-specific C++ Code . `! N! n9 ?+ f" I
The user has two options for combining the PowerFactory DSL modelling approach with externally developed $ g6 X# F8 i4 }3 s
C++ code. : d: }; M1 g; [2 r5 {# C' t4 X1. User-defined intrinsic functions can be linked via external DLL for extending the already broad range of ! J* m' B0 a! r7 r
DSL standard intrinsic functions such as: “abs”, “sin”, “cos”, “exp”, etc. and DSL special functions such 5 g1 i& j: R4 G! s' e) ]as “lapprox”, “lim”, “limstate”, “delay”, “picdro”, “time”, “file”, “flipflop”, etc. User defined intrinsic ) C- F/ b/ a% _% }! Q$ A+ Ifunctions are to be linked to PowerFactory via the DLL “digexfun”. 8 p6 g ^* {* E/ X2. Complete user-defined models of any modelling level, linked via the DLL “digexdyn” is supported for any " X7 P; b& D# p; b; m
discrete system. Typical applications are digital control systems which are executed via clock- / |$ @& Q' ?, l2 C( L7 H/ Y1 \synchronized calls, simulation models being implemented via difference equations, or models which incl. " M' D/ H% G' atheir state variables and integration algorithms internally. 7 w$ Q u! o, H8 e, D: ~
-------------------------------------------------------------------------------------------------------------------------------