How do i insert a set of parameters in simulink?

3 ビュー (過去 30 日間)
Marc
Marc 2024 年 11 月 26 日
回答済み: Oliver Jaehrig 2024 年 11 月 27 日
I have parameter sets that serve as input variables for my dynamic simulation in Simulink. There are about 20 parameters in total. That is why I do not want to import them individually into Simulink. The aim of the simulation is to analyze and display the effects of changed data/parameters.
Each changed parameter set should be an object of a class and organized in a Matlab initialization file.
My approach:
I save all parameters in a structural array. I load these into the workspace. In Simulink, these parameters should then be further processed with a Matlab function. I define my struct as parameter data as the type. The error message "Invalid setting for parameter "Datatype" appears.
Does my approach make sense? Or is there a different way?

採用された回答

Oliver Jaehrig
Oliver Jaehrig 2024 年 11 月 27 日
This is likely caused by an incorrect Type setting of the Parameter.
Please try resetting it to inherit the type and see if the issue is gone.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeModel, Block, and Port Callbacks についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by