You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
w1 ===nothing&&error("The keyword argument `external_inputs` must be provided")
414
417
if unique
415
418
@check_unique u1 "Connected inputs not unique. If you want to connect several signals to the same input, use a summation node, e.g., named_ss(ss([1 1]), u=[:u1, :u2], y=:usum)"
416
419
@check_unique full.u "system inputs""To allow connecting a single input signal to several inputs with the same name, pass `unique = false`."
Create block connections using named inputs and outputs.
445
448
@@ -448,8 +451,8 @@ Addition and subtraction nodes are achieved by creating a linear combination nod
448
451
# Arguments:
449
452
- `systems`: A vector of named systems to be connected
450
453
- `connections`: a vector of pairs output => input, where each pair maps an output to an input. Each output must appear as an output in one of `systems`, and similarly each input must appear as an input in one of `systems`. All inputs must have unique names and so must all outputs, but an input may have the same name as an output. In the example below the connection `:uP => :uP` connects the output `:uP` of the `addP` block to `P`'s input `:uP`
451
-
- `w1`: external signals to be used as inputs in the constructed system. Use `(:)` to indicate all signals
452
-
- `z1`: outputs of the constructed system. Use `(:)` to indicate all signals
454
+
- `external_inputs`: external signals to be used as inputs in the constructed system. Use `(:)` to indicate all signals
455
+
- `external_outputs`: outputs of the constructed system. Use `(:)` to indicate all signals
453
456
- `verbose`: Issue warnings for signals that have no connection
454
457
- `unique`: If `true`, all input names must be unique. If `false`, a single external input signal may be connected to multiple input ports with the same name.
455
458
@@ -489,9 +492,9 @@ connections = [
489
492
:uC => :uC
490
493
:yR => :yR
491
494
]
492
-
w1 = [:uF] # External inputs
495
+
external_inputs = [:uF] # External inputs
493
496
494
-
G = connect([F, R, C, P, addP, addC], connections; w1)
497
+
G = connect([F, R, C, P, addP, addC], connections; external_inputs)
495
498
```
496
499
497
500
If an external input is to be connected to multiple points, use a `splitter` to split up the signal into a set of unique names which are then used in the connections.
0 commit comments