Is it possible to create a user-defined block in Simulink (and, later, XCos) that accepts a variable number of signals (I anticipate working with mainly 12 signals but not necessarily that number of signals) and outputs the integral of all the signals? The signals will be a vector from a $Ax + Bu$ signal, where $x$ is a state vector and $u$ is usually a 1D unit step function.
This is an example with 3 signals http://airvigilante194.sdf.org/Scripts/deadbeatJeff.slx I would prefer not to split the signals, integrate each of them separately, then recombine them.
(Also, if someone knows a way to quantize all the signals without splitting, quantizing individually, then recombining, that'd be great, but that may be a post for another day.)
input : Port_1 — Integrand signal : real scalar or array
. $\endgroup$