필터 지우기
필터 지우기

Simulation of more than one subsystem at different simulation times

조회 수: 2 (최근 30일)
Simone Leon
Simone Leon 2011년 7월 10일
I need some help. I am not very experienced in Simulink and I have this problem. I have a simulation basically composed of two parts:
1. part 1: Data being generated and sent to the workspace
2. part 2: embedded matlab function and differential equations that lead to the result.
The problem is that in 2nd part embedded matlab function need to evaluate data from Part 1.
Each part must be simulated at two different simulation times in order to get the desired result
I don't know how to make the 2nd part of simulation start some time later (when the data from Part 1 was sent to the workspace). The 2nd Part must start its simulation at a different time.
I hope I explained it clear. If not I will try to explain better.
Thank you very much for the responses.
  댓글 수: 1
Kaustubha Govind
Kaustubha Govind 2011년 7월 11일
Do you mean that you want Part 1 to finish logging data to the workspace, and start Part 2 only after Part 1 has finished execution? If so, why not have two different models - run the first one to log the data first and then use those as inputs in the second one? You can write a MATLAB script to control their execution.
Or did you mean that you need the two parts to run simultaneously, but at different sample times?

댓글을 달려면 로그인하십시오.

답변 (1개)

Fangjun Jiang
Fangjun Jiang 2011년 7월 10일
You can put your second part in an Enabled Subsystem block, or a triggered subsystem block.

카테고리

Help CenterFile Exchange에서 Large-Scale Modeling에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by