How to instantiate an array of simulink block ?

I'm trying to model multiple channels (hundreds) in Simulink. I've a library block for a channel. Now, how do I get hundred instances of the same channel (of-course, at different center frequencies). Center frequency is an input to the library block.

 Akzeptierte Antwort

Kaustubha Govind
Kaustubha Govind am 13 Feb. 2013

0 Stimmen

Try the For Each subsystem where the input is an array of 100 center frequencies.

2 Kommentare

Jayawardan
Jayawardan am 19 Feb. 2013
Bearbeitet: Jayawardan am 19 Feb. 2013
Hi, this is what I was precisely looking for. Thank you. Can you also tell me, what is the variable for the index (index of each subsystem), to be used inside the For Each subsystem ? I'm tying to pass parameters by creating a mask. As the block I'm using doesn't have inputs. It accepts only parameters.
Unfortunately, it is currently not possible to iterate over parameters in a For Each subsystem - if possible, you should attempt to convert the parameter to an input (for example, a Gain block can be converted to a Multiply block, where the Gain value becomes an input instead of a parameter).

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Produkte

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by