Appearance
Sum Double
Adds or subtracts 2 to 5 double inputs: out = Σ signₖ · inₖ, with each sign set to + or −. The number of input ports follows the Inputs setting, and the sign of each input is drawn next to its port. For the common two-input case, Add2 Double does the same with a smaller footprint. To add or subtract int signals such as counters, use Sum Int.
Category: Math
Ports
| Port | Kind | Signal | Notes |
|---|---|---|---|
in_1 | Control input | Real | |
in_2 | Control input | Real | |
in_3 | Control input | Real | Shown when Inputs is at least 3 |
in_4 | Control input | Real | Shown when Inputs is at least 4 |
in_5 | Control input | Real | Shown when Inputs is at least 5 |
out | Control output | Real |
Parameters
| Parameter | Type | Default | Units | Description | ID |
|---|---|---|---|---|---|
| Inputs | Choice: 2 / 3 / 4 / 5 | 2 | — | How many input ports the block has (2-5). | num_inputs |
| Sign 1 | Choice: + / − | + | — | Whether input 1 is added (+) or subtracted (−). | sign_1 |
| Sign 2 | Choice: + / − | + | — | Whether input 2 is added (+) or subtracted (−). | sign_2 |
| Sign 3 | Choice: + / − | + | — | Whether input 3 is added (+) or subtracted (−). | sign_3 |
| Sign 4 | Choice: + / − | + | — | Whether input 4 is added (+) or subtracted (−). | sign_4 |
| Sign 5 | Choice: + / − | + | — | Whether input 5 is added (+) or subtracted (−). | sign_5 |