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.

 채택된 답변

Kaustubha Govind
Kaustubha Govind 2013년 2월 13일

0 개 추천

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

댓글 수: 2

Jayawardan
Jayawardan 2013년 2월 19일
편집: Jayawardan 2013년 2월 19일
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).

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Event Functions에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by