Make timeseries tuneable Rapid-accelerator

I want to run rapid accelerator whilst changing parameters of a model using setVariable. I have a struct of timeseries that is used as the input to the model via fromworkspace blocks and I want these to be tunable so I can run in accelerator mode. Unfortunately I cannot easily change to using inputs instead as this would require changes to library files I don't own.

回答 (1 件)

Will
Will 2026 年 1 月 29 日

0 投票

Wrap your timeseries struct in Simulink.Parameter and set the CoderInfo.StorageClass = 'SimulinkGlobal'.
Then, use this parameter object in your From Workspace blocks and change values between runs using setVariable.

1 件のコメント

Reuben
Reuben 2026 年 1 月 30 日
That was the first thing I tried. TimeSeries can't go be set as the value of the Simulink.Parameter objects:
"
Invalid value specified for parameter. Value must be a numeric array, fi object, enumerated value, structure whose fields contain valid
values, string scalar, or an expression.
"

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeProgrammatic Model Editing についてさらに検索

タグ

質問済み:

2026 年 1 月 27 日

コメント済み:

2026 年 1 月 30 日

Community Treasure Hunt

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

Start Hunting!

Translated by