フィルターのクリア

能否用constan​t模块作为输入,设定​simscape中的​Cylinder block中的参数

3 ビュー (過去 30 日間)
Steve Wang
Steve Wang 2022 年 11 月 23 日
我在matlab中使用get_para获得了Simscape中Cylinder block中的参数,然后用set_para设定了其参数值,例如
injector_stroke = 0.1;
set_param('.../Cylinder','stroke', num2str(injector_stroke));
之后通过matlab控制simulink,来进行仿真。
现在是否有一种方法,通过用constant模块作为输入,使用S函数等方法,来设定simscape中的Cylinder block中的参数。
我的目的是实现这种方法后,将constant模块做为动态链接库的输入,将整个simulink模型转换成动态链接库,和其他模型进行融合。

回答 (0 件)

カテゴリ

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

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!