필터 지우기
필터 지우기

problem with if/else if block

조회 수: 1 (최근 30일)
Christine
Christine 2019년 9월 20일
댓글: Urmila Rajpurohith 2019년 11월 14일
Hello,
I will try to be as clear as possible: I have a problem with if/else if block and maybe it comes from sampling time that I've never used before...
Here's a subsystem B:
subsystem.png
this subsystem is inside a bigger one A
FRB and HDB are coming from outside of A, from excel spreadsheet, with sampling time 3600
Tb1 enters into B, coming from A itself, so no condition of sampling applied
Inside B I have :
if_elseif_block.png
when I plot TB1, it comes as it should (confronting with the plot where Tb1 is generated), but when I go into the if block:
if_block.png
and I plot again TB1, I have a different graph, constant as if it was "maintaining" the value for 3600s since signals HDB and FRB comes from the worksheet with this sampling time...
I know nothing about sampling time and I really don't know how to deal with that.
My excel sheet is very big and I have data every hour (3600s) that is why I put this sampling time, nowhere in my model I have put this condition but Ii think that everywhere these data will be in use, I will encounter this problem.
Thank you for any help/advice/comment
Christine
  댓글 수: 2
Ankit
Ankit 2019년 9월 22일
could you also attached the plots where you are seeing the difference?
Urmila Rajpurohith
Urmila Rajpurohith 2019년 11월 14일
Hi Christine,
Are you still facing the issue?
If Yes can you attach the model and input data.

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

답변 (0개)

카테고리

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

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by