provide Input port data during simulation

조회 수: 1 (최근 30일)
Varun Nayyar
Varun Nayyar 2021년 7월 29일
답변: Fangjun Jiang 2021년 7월 29일
I have a top level simulink model which calls subsequent Simulink and state flow models. The top level basically has lot of input (mostly Boolean, unsigned integer) ports and lot of outputs. I want to simulate the model by giving some values in in-ports. Usually what I do is modify the inputs (as needed) by adding manaul switch with constant block at one input and run the simulation. The default value of others are taken as 0 and the simulation runs.
Is there a way to define all the inputs with their values in one file which the simulation can take up for simulation?
It is very difficult to modify the model like below for more inputs. I am using R2012b. Please suggiest some solution and example.

답변 (1개)

Fangjun Jiang
Fangjun Jiang 2021년 7월 29일

카테고리

Help CenterFile Exchange에서 Event Functions에 대해 자세히 알아보기

제품


릴리스

R2012b

Community Treasure Hunt

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

Start Hunting!

Translated by