Simulink.B​lockDiagra​m.getIniti​alStates and Configuration Set References

조회 수: 1 (최근 30일)
Greg
Greg 2014년 4월 30일
댓글: craq 2016년 6월 9일
Does setting up a Simulink model to use a configuration set completely preclude the possibility of using Simulink.BlockDiagram.getInitialStates() to interrogate the model? When I try on this simple model, I get the error:
Error using getInitialState (line 20)
A configuration set reference does not allow writing to parameters in the source configuration set
Error in sl (line 16)
[varargout{1:nargout}]=feval(varargin{:});
Error in Simulink.BlockDiagram.getInitialState (line 27)
I've attached my simple example model. Running in R2013b at the moment. Get the same problem in Linux and Windows environments.
(By the way... since you introduced this new '.slx' model format back like two years ago, you might think about upgrading the Answers forum to allow uploads of .slx files...)
  댓글 수: 1
craq
craq 2016년 6월 9일
I get the same error message for this command:
set_param(bdroot, 'PostCodeGenCommand', 'myFunc(a,b)')

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Multicore Processor Targets에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by