In Simulink, I am modelling a MIMO system. One section involves a large set of impulse responses : P inputs, Q outputs, and all possible (P -> Q pair) impulse responses are known. Normally, I could simply implement P x Q FIR blocks, combine their outputs appropriately and everything would be fine.
However, there are two complications :
- I need to run the model, then modify P and/or Q, then run the model again. Multiple times, changing P and/or Q each time. And the process of successively running multiple experiments needs to be automated.
- The model will ultimately run on an outboard FPGA-based device (Speedgoat / dSpace / etc) with limited processing capacity. It is therefore important to avoid unnecessary calculations. Otherwise I could simply implement the maximum number of channels, and fill some of them with zeros if they are not being used during a particular experiment.
I do not know how to deal with both of these problems at once, and have not managed to find any clues online.
A similar problem occurs elsewhere in the same model, with vector-array addition blocks in which the numbers of inputs and outputs need to be variable.
Thank you for any advice !