Dynamically changing sample time for discrete time integrator

조회 수: 7 (최근 30일)
Roger
Roger 2011년 6월 20일
Hello, I am programming a dynamic chemical process which has a changing contact time (which changes the dt in the dC/dt equation). I have used a discrete time integrator with a sample time set to the contact time and this works just as I want it to however as I want the flow rate through the process to be variable and this will change the sample time I need to set. *I want to be able to set the sample time to value calculated else where in the model that changes. Does anyone have any advice for things I could try or know that this is impossible so I can stop trying?
Any extra details needed I will provide happily.
  댓글 수: 1
Roger
Roger 2011년 6월 20일
I have found a work around which is if the contact time is A then simply use a continous integrator with feed from equation that has dC/dt = A * x (where x is the original function). This gives me the desired answer I was looking for but I am a little wary of using this technique as I just made it up and am not sure of limitations / consequences. Any pearls of wisdom?

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

채택된 답변

Guy Rouleau
Guy Rouleau 2011년 6월 21일
Set the sample time of the discrete time integrator to be inherited and place it inside a triggered subsystem. You will need to make a logic to trigger the triggered subsystem at the right time.
  댓글 수: 1
Roger
Roger 2011년 6월 22일
Thank you Guy. The help of the community is massively appreciated.

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

추가 답변 (0개)

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by