time delay in s function
Show older comments
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 Comments
Kaustubha Govind
on 21 Jun 2012
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
on 22 Jun 2012
Accepted Answer
More Answers (0)
Categories
Find more on Simulink Coder in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!