master:logic_mult parametersPSCAD Logic Gate
Every parameter of the PSCAD Logic Gate (master:logic_mult): 15 names, with the unit, the default and the meaning PSCAD gives each one. Copy a name into parameters().
What master:logic_mult is
Logic Gate (Multiple Input Logic Gate), a component of PSCAD's Master Library, filed under control blocks.
- Definition
master:logic_mult- PSCAD name
- Logic Gate
- Category
- Control blocks
- Parameters
- 15, in 2 groups
- Read from
- PSCAD 5.0.0, 2026-11-07
Read and write master:logic_mult 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:logic_mult"): # the exact definition, namespace first
params = comp.parameters() # every parameter, as PSCAD holds it
print(str(params["INTR"])) # Interpolation Compatibility
comp = project.find_all("master:logic_mult")[0]
comp.parameters(INTR="ENABLED") # a Choice is written as its symbol
- 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, "INTR") 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 |
|---|---|---|---|
INTRChoice | · | DISABLED | Interpolation CompatibilitySelect Disabled or EnabledWritten as ENABLED (Enabled), DISABLED (Disabled) |
InvChoice | · | NO | Invert Output?Select Yes to to invert the outputWritten as NO (No), YES (Yes) |
NameText | · | · | Name for IdentificationEnter a name for identification |
Num_inChoice | · | 3 | Number of InputsSelect a value between 2 and 9Written as 2 = 2, 3 = 3, 4 = 4, 5 = 5, 6 = 6, 7 = 7, 8 = 8, 9 = 9 |
TypeChoice | · | AND | Boolean Function:Select AND, OR or XORWritten as AND, OR, XOR |
disnumChoice | · | YES | Display Connection Numbers ?Selecting yes will display the connection numbersWritten as NO (No), YES (Yes) |
Inverters
| Parameter | Unit | Default | Description |
|---|---|---|---|
Inv1Choice | · | NO | Invert Input 1Written as YES (Yes), NO (No) |
Inv2Choice | · | NO | Invert Input 2Written as YES (Yes), NO (No) |
Inv3Choice | · | NO | Invert Input 3Written as YES (Yes), NO (No)Used when Num_in>2 |
Inv4Choice | · | NO | Invert Input 4Written as YES (Yes), NO (No)Used when Num_in>3 |
Inv5Choice | · | NO | Invert Input 5Written as YES (Yes), NO (No)Used when Num_in>4 |
Inv6Choice | · | NO | Invert Input 6Written as YES (Yes), NO (No)Used when Num_in>5 |
Inv7Choice | · | NO | Invert Input 7Written as YES (Yes), NO (No)Used when Num_in>6 |
Inv8Choice | · | NO | Invert Input 8Written as YES (Yes), NO (No)Used when Num_in>7 |
Inv9Choice | · | NO | Invert Input 9Written as YES (Yes), NO (No)Used when Num_in>8 |