how to load parameter using open_system()

1 visualizzazione (ultimi 30 giorni)
수민 안
수민 안 il 17 Feb 2022
Risposto: Fangjun Jiang il 17 Feb 2022
  • i want to know how to load parameter when i use 'open_system(" ")' to open simulink.
  • for example 'highway lane following' when i wirte open_system("HighwayLaneFollowingTestBench") all parameter are load.

Risposte (1)

Fangjun Jiang
Fangjun Jiang il 17 Feb 2022
open_system() only opens the Simulink model. It won't load parameters.
However, the Simulink model itself might have setup to load the parameters. You can set it up in model properties, callbacks, PreLoadFcn. Or the parameters can be saved in the model workspace. They will be loaded when the model is opened.

Categorie

Scopri di più su Simulink Environment Customization in Help Center e File Exchange

Tag

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by