time delay in s function
显示 更早的评论
hello everyone
for my simulink model i need a variable time delay, therefore i tested it by generated a s function out of it because i need the whole model as a s function. by comparing the two results i got something very strange: the generated s function provides me an amplified and phase delayed signal. does someone know the reason why this is happening? how can this problem be solved?
kind regards
2 个评论
Kaustubha Govind
2012-6-21
Are you saying that the results from the generated code did not match those from simulation? How about if the compare the results with the model in "Normal" simulation mode and "Accelerator" mode? The Accelerator mode is similar to generating an S-function for the model and running it.
andreas
2012-6-22
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Simulink Coder 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!