MATLAB Answers

Simulink code generation for TI F28335

4 views (last 30 days)
mehrdad mirzaei
mehrdad mirzaei on 22 Dec 2019
Hey dears
I am going to generate code from a discrete simulink model but there is no same sample time in generated code in comparison with simulink simulation. I mean when I am running code on my hardware it appeared that it is running with a different sample time rahter than what i set in in simulink model.
So I just wanted to know if there is someone who faced this problem and fixed it before, to help me out on this issue.
looking forward to hearing your instructive answers.

  1 Comment

Venkatesh Chilapur
Venkatesh Chilapur on 30 Dec 2019
Hi,
Could you try toggling a discrete output and see if the toggle rate is inline with the sample rate in which the GPIO block is placed. This is easy and effective way to verify the working of sample time.
Regards,
Venkatesh C

Sign in to comment.

Answers (0)


Translated by