code execution time with embedded coder

I am trying to find out Code execution time for the model generated using Embedded coder for TI 28335 DSP. toggling the GPIO once during model execution and then finding out time period between two toggles does not really help as the time period between two toggles is always 0.2s. Is there any way we can implement Tick-tock kind of function in Matlab?
Ajay

답변 (1개)

Peeyush
Peeyush 2015년 3월 23일

0 개 추천

Hi Ajay,
You can initialize a timer function supported by TI 28335 processor in the model initialization callback of Simulink, then the exit callback should get the status of timer count. This would tell you the time taken to execute code on hardware.
Regards, Peeyush Pashine Engineer in MathWorks

카테고리

도움말 센터File Exchange에서 Deployment, Integration, and Supported Hardware에 대해 자세히 알아보기

질문:

2015년 2월 3일

답변:

2015년 3월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by