Difference of ssGetTaskTime and ssGetT in C-S-Function

조회 수: 4 (최근 30일)
Sebastian Winter
Sebastian Winter 2013년 9월 17일
Hello,
I'm wondering about what the difference between ssGetTaskTime and ssGetT is. The help of ssGetTaskTime (<http://www.mathworks.de/de/help/simulink/sfg/ssgettasktime.html>) says that it returns the "current time of the current task".
But what is the current task? The whole simulation, the current call of e.g. mdlOutputs or maybe the current integration step?
I hope somebody can help me.
Best regards, Sebastian Winter

답변 (1개)

Kaustubha Govind
Kaustubha Govind 2013년 9월 17일
If you're not writing a multi-rate S-function, then ssGetT is what you need. Only if you are writing an S-function that has multiple sample-times, you can use ssGetTaskTime in combination with ssIsSampleHit as demonstrated in the example here.

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by