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!