DIgSILENT

Knowledge base

Show filter optionsHide filter options
Your search returned 28 items.

How can I colour the text printed with DPL in the output window?

Strings are coloured using the following character sequence ∖cx, where "∖c" defines that the string should be coloured and "x" defines the colour to use. The list of available colours and an example…
Tags

How can I see the actual value of a parameter using DPL script?

Normally, when you access a variable in PowerFactory, the result of the DPL query is the value as entered in the element dialogue, e.g. oLoad:plini (the active power of a load). To access the actual…

How can I execute a calculation command in all the study cases?

Find attached a DPL (DIgSILENT Programming Language) script that performs the following tasks: Activation of the study cases, one by one. Search and execution of the command in the calculation case…

How can I export WMF files using DPL?

The attached example export all the VI (virtual instrument) pages to a specific folder as WindowsMetaFile (WMF) files. To use the script is necessary to have an active project and an active study…

How can I write a result file using a DPL script?

The attached project includes a DPL script that writes a result file. The result object is defined inside the DPL command. The scaling factor of the loads is changed between 0 and 1, a load flow…

How can I export a result file using a DPL script?

The attached project includes a DPL script that writes a result file and then export it into a comma separated values (csv) file. The result object is defined inside the DPL command. The scaling…

Do you have an example for changing a parameter of a DSL model using DPL?

The attached project contains a small DPL example, where a parameter of a DSL model is changed using a DPL script. The DPL script is located inside the Scripts library. The name of the DSL model and…

How can I write the contents of the output window in a text file?

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

How can I write a text file with a DPL script?

The attached example includes a DPL script that writes values of defined variables in a text file. The columns of the file are separated by a semicolon (";").The destination folder including file name…
Tags

How can I read a text file with a DPL script?

The attached DPL script reads the lines of a text file and prints the values on the output window. The script uses the delimiter defined an input parameter on the Basic Options page of the DLP command…
Tags