How to generate a user-defined pulse input from excel at simulink stateflow
조회 수: 8 (최근 30일)
이전 댓글 표시
Hi there,
I'm using stateflow in the simulink to do some modeling work. Basically, I wanna use some pulse signal to trigger the event in certain conditions. Followings are some simple model I developed.


I wonder how can I generate a pulse based on the input of excel file, for example the figure below:

Thanks in advance,
Feng
댓글 수: 0
답변 (2개)
Mundrathi Venugopal
2019년 2월 19일
You can take a signal builder block and import the excel file into the signal builder from its options.
Your pulse input to be specified must be represented in excel as follows.
e.g. time column followed by number of data columns(i.e, number of signals) in one sheet (i.e, one group in signal builder)
time value
0 0
2 0
2 1
8 1
8 0
10 0
i.e, you specified a pulse from time 2 ~8 and elsewhere it is 0.
We can generate this pulse signal from Chart using temporal instructions also if We wanted to.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Sources에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!




