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 withoutmaster:comes back empty; the Builder'spx_findwalks 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
| Parameter | Unit | Default | Description |
|---|---|---|---|
DisplayChoice | · | YES | Display Title on Icon?Written as NO (No), YES (Yes) |
F1Real | · | 1.0 | Position #1 data |
F10Real | · | 10.0 | Position #10 dataUsed when (NDP>=10) |
F2Real | · | 2.0 | Position #2 data |
F3Real | · | 3.0 | Position #3 data |
F4Real | · | 4.0 | Position #4 dataUsed when (NDP>=4) |
F5Real | · | 5.0 | Position #5 dataUsed when (NDP>=5) |
F6Real | · | 6.0 | Position #6 dataUsed when (NDP>=6) |
F7Real | · | 7.0 | Position #7 dataUsed when (NDP>=7) |
F8Real | · | 8.0 | Position #8 dataUsed when (NDP>=8) |
F9Real | · | 9.0 | Position #9 dataUsed when (NDP>=9) |
GroupText | · | · | Group |
LabelTypeChoice | · | INDEX | Value 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 | · | Var | TitleThis is used for display in control panel |
ValueChoice | · | 1 | Initial Dial PositionWritten as 1 = 1, 2 = 2, 3 = 3, 4 = 4, 5 = 5, 6 = 6, 7 = 7, 8 = 8, 9 = 9, 10 = 10 |
convChoice | · | NO | Convert Output to the Nearest IntegerWritten as NO (No), YES (Yes) |
Related
← master:peswitch Power Electronic Switch · master:Sequencer_Fault Sequencer: Apply/Clear Fault →