master:var_pot parametersPSCAD Rotary Switch

Every parameter of the PSCAD Rotary Switch (master:var_pot): 17 names, with the unit, the default and the meaning PSCAD gives each one. Copy a name into parameters().

What master:var_pot is

Rotary Switch, a component of PSCAD's Master Library, filed under faults and switching.

Definition
master:var_pot
PSCAD name
Rotary Switch
Category
Faults and switching
Parameters
17, in 1 group
Read from
PSCAD 5.0.0, 2026-11-07

Read and write master:var_pot in Python

import mhi.pscad

pscad = mhi.pscad.connect()              # the PSCAD that is open; launch() starts one
project = pscad.project("my_case")       # a case loaded in the workspace

for comp in project.find_all("master:var_pot"):   # the exact definition, namespace first
    params = comp.parameters()           # every parameter, as PSCAD holds it
    print(str(params["F1"]))             # Position #1 data

comp = project.find_all("master:var_pot")[0]
comp.parameters(F1="2")                  # written as text
  • A parameter is named exactly as in the table, letter case included: parameters() gives every one of them in a dictionary, and a name the component does not have is refused.
  • A value that carries a unit comes back as a number whose unit is only in its text, so read it as text first (str(...)) or the unit is lost. PSCAD keeps a written unit as it is given: "2500 [mohm]" stays in mohm.
  • A Choice is read and written as its symbol (the capitals in "Written as"), not as the words PSCAD shows in the dialog.
  • find_all() takes the exact definition only. A wildcard or a bare name without master: comes back empty; the Builder's px_find walks the pages for those.

The Builder's runtime does the same with the unit handled for you: px_get(comp, "F1") and px_set(...), which also records the old value so the case is put back at the end. Getting started shows them.

Configuration

ParameterUnitDefaultDescription
DisplayChoice·YESDisplay Title on Icon?Written as NO (No), YES (Yes)
F1Real·1.0Position #1 data
F10Real·10.0Position #10 dataUsed when (NDP>=10)
F2Real·2.0Position #2 data
F3Real·3.0Position #3 data
F4Real·4.0Position #4 dataUsed when (NDP>=4)
F5Real·5.0Position #5 dataUsed when (NDP>=5)
F6Real·6.0Position #6 dataUsed when (NDP>=6)
F7Real·7.0Position #7 dataUsed when (NDP>=7)
F8Real·8.0Position #8 dataUsed when (NDP>=8)
F9Real·9.0Position #9 dataUsed when (NDP>=9)
GroupText··Group
LabelTypeChoice·INDEXValue DisplayWritten as INDEX (Display Index), VALUE (Display Value), INDEX_AND_VALUE (Display Index and Value)
NDPChoice·10# of Dial Positions (3-10)Written as 3 = 3, 4 = 4, 5 = 5, 6 = 6, 7 = 7, 8 = 8, 9 = 9, 10 = 10
NameText·VarTitleThis is used for display in control panel
ValueChoice·1Initial Dial PositionWritten as 1 = 1, 2 = 2, 3 = 3, 4 = 4, 5 = 5, 6 = 6, 7 = 7, 8 = 8, 9 = 9, 10 = 10
convChoice·NOConvert Output to the Nearest IntegerWritten as NO (No), YES (Yes)

Related

← master:peswitch Power Electronic Switch · master:Sequencer_Fault Sequencer: Apply/Clear Fault →