How to set Parameters of Block "custcode/System Outputs"
이전 댓글 표시
How can I set the Code for the block "custcode/System Outputs" programmatically? I receive an error "Size arguments must be real integers" when opening the block by double-click after running the following:
add_block('custcode/System Outputs','model/subsystem')
field = setfield(get_param('model/subsystem/systemOutput','RTWData'),'Top','test');
set_param('Copy_of_model_vergleich_atom/Subsystem1/test','RTWData',field);
댓글 수: 2
Anish Mitra
2016년 2월 22일
Would it be possible to share a sample model and code? Implementing the above commands on a basic 'Outport' block in Simulink (R2015b) does not throw the error.
Steffen Müller
2016년 2월 24일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Simulink에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!