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.

 Respuesta aceptada

Kaustubha Govind
Kaustubha Govind el 13 de Feb. de 2013

0 votos

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

2 comentarios

Jayawardan
Jayawardan el 19 de Feb. de 2013
Editada: Jayawardan el 19 de Feb. de 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.
Kaustubha Govind
Kaustubha Govind el 22 de Feb. de 2013
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).

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by