Iterating s-function parameters with a For-Each subsystem

I am attempting to use an S-function inside a For-Each subsystem. The S-function block has 4 S-function parameters, and I want to iterate one of those parameters using the For-Each subsystem.
It seems this should be possible -
However, when I UpdateDiagram I get a message similar to this:
Parameter 'SFcnBlockParameter' of block 's-function_blockname' cannot reference partitioned mask parameter 'xxxx' of For Each subsystem 'sysname' because parameter 'SFcnBlockParameter' is not tunable.
The message is presented if the S-function block has a mask, and if doesn't.
I can't seem to find information on this SFcnBlockParameter anywhere... Is there something else that needs to be set in the s-function? Is there a Model Configuration Parameter that needs to be set?

답변 (1개)

Mark McBroom
Mark McBroom 2018년 3월 24일
편집: Mark McBroom 2018년 3월 24일

0 개 추천

Is the "Tunable" box checked in the block mask editor ?

댓글 수: 1

I've tried this with the s-function being both masked and unmasked; and yes, I've had that mask parameter tuneable if the S-function block was masked.
The for-each subsystem is also masked (to allow passing parameters in) and that parameter is tuneable, although I don't think that would have a bearing since I am not changing its value per se...it's the value that is divided for each 'for.'

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

카테고리

제품

질문:

2018년 3월 22일

편집:

2018년 3월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by