Difference of ssGetTaskTime and ssGetT in C-S-Function

4 vues (au cours des 30 derniers jours)
Sebastian Winter
Sebastian Winter le 17 Sep 2013
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

Réponses (1)

Kaustubha Govind
Kaustubha Govind le 17 Sep 2013
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.

Catégories

En savoir plus sur Simulink dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by