How to limit operating element size of array in Simulink

2 ビュー (過去 30 日間)
INSUB MOON
INSUB MOON 2020 年 3 月 26 日
コメント済み: INSUB MOON 2020 年 3 月 26 日
Hi,
I am trying to make a reference Simulink model for different projects.
One of difference between each pjoject is operating size of array.
eg. Project A : using 12 elements(Max) / Project B : using 10 elements / Project C: 8 elements....
I want to change the operating range for each project with max(12) array on reference model, to optimize operating speed.
How can I change the operating element size of array with parameter?
I want to avoid changing array size for each project for compatibility with other modules.
Thank you in advance.
  2 件のコメント
Birdman
Birdman 2020 年 3 月 26 日
Can you share your Simulink model?
INSUB MOON
INSUB MOON 2020 年 3 月 26 日
Sorry, file uploading is restricted in my enviromnent.

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

採用された回答

Jonas
Jonas 2020 年 3 月 26 日
The difficulty with referenced models is that they should be reusable inside other models with the exact same input and output interface. That's why it is not possible to simply connect an array of 10 elements when the referenced model expects 12.
I would try to fix the input of that array to the largest it can possibly be (12 elements) and then make sure your model can cope with the fact that for another project you provide it 10 elements + two zero's.
  1 件のコメント
INSUB MOON
INSUB MOON 2020 年 3 月 26 日
Thanks your comments, I'd better looking for not calculation with zero values to reduce operating time.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreate Large-Scale Model Components についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by