Set ports of circuit object
setports(
defines the node_pairs in an N-port cktobj
,nodepair_1,......,nodepair_n
)cktobj
as
ports using nodepair_1,......,nodepair_n
.
This syntax then assigns the ports default names. It also
defines the terminals of a cktobj
, taking the
terminal names from the port names. If any of the node pairs do
not exist, setports
creates it.
setports(
defines the node_pairs in an N-port cktobj
,nodepair_1,......,nodepair_n
,portnames
)cktobj
as
ports using nodepair_1,......,nodepair_n
.
After defining the ports, this syntax names them using
portnames
. The length of the
portnames
must equal to the number of
node_pairs in the circuit.