How to create Battery (Table-Based, Instrumented) with Thermal Port through MATLAB script

3 ビュー (過去 30 日間)
Owain Parry
Owain Parry 2022 年 5 月 13 日
回答済み: Xiangchun 2022 年 7 月 18 日
I have a script that is used to create a large number of 'Battery (Table-Based)' blocks, using
"add_block('ee_lib/Sources/Battery (Table-Based)',Cell)".
I would like to include thermal effects in to the model, this is easily done through the GUI via the block-choices menu, is it possible to do this via a script?
Thanks

回答 (1 件)

Xiangchun
Xiangchun 2022 年 7 月 18 日
Hi Owain,
Try the following:
add_block( 'ee_lib/Sources/Battery (Table-Based)','test_model/batt_cell_block');
set_param('test_model/batt_cell_block','thermal_port','simscape.enum.thermaleffects.model');
Best wishes,
Xiangchun

カテゴリ

Help Center および File ExchangeSources についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by