Difference of ssGetTaskTime and ssGetT in C-S-Function
显示 更早的评论
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
2013-9-17
0 个投票
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.
类别
在 帮助中心 和 File Exchange 中查找有关 Configure C/C++ S-Function Features 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!