Category
Tags
Your search returned 187 items.
The content of the output window can be saved in a text file by using the command "ComWr" (Save File). The attached project contains a DPL script, which writes some text in the output window and then…
Tags
The attached project contains a DPL script located in the Scripts library. The script performs the following tasks: - Execute the "Calculation of Initial Conditions" and "Run Simulation" commands. -…
There are two possibilities to work with user defined variables in a dynamic simulation: Using the option ’Processed and aggregated results’ included within the PltDataseries. This allows calculation…
Refer to the attached example. In order to understand the interface of the controller with the transformer, the following information needs to be considered: Based on the fact that we consider a…
The attached example demonstrates the use of stochastic switching in PowerFactory, including a description on how to use it. The study case contains a DPL script "Stochastic Switching" which simulates…
This DPL script will get all asynchronous machine types (TypAsmo) which are considered by PowerFactory to be relevant for the calculation. The names of types, where the calculation fails, are reported…
The attached project includes the DPL script "CalcMat" in the study case. The script demonstrates how to read and manipulate matrix data. After resizing the matrix "out" the value of every row and…
Tags
Microsoft Excel can be used by Python scripts if the “Python for Windows Extensions" PyWin32 (http://sourceforge.net/projects/pywin32/)package is installed, which includes Win32 API, COM support and…
Graphics such as plots or single line diagrams can be exported using scripts. PowerFactory supports two scripting languages Python and DPL. The following Python script example exports all plots and…
To access an Folder inside of your PowerFactory project you can use GetProjectFolder() method. As input to this method you can just write type of the Folder you would like to access (e.g. ‘scen’…