How to measure task execution time on F28379D target?

9 ビュー (過去 30 日間)
Yanis Benmohammed
Yanis Benmohammed 2018 年 6 月 11 日
コメント済み: Hafiz Ahmed 2018 年 11 月 30 日
Hi All,
I need some help to measure function execution times. I already tried the example "Real-Time Code Execution Profiling". On my model the configuration and the parameters are the same. Howeover, when I click Deploy To hardware the diagnostic viewer shows this warning:
" Code profiling instrumentation is not supported for standalone builds (Ctrl+B). You can run the executable, but no profiling data will be collected."
As follow :
I do not obtain any profiler report using the relative command on Matlab.
Please, did anyone have this problem and can help me?
Many thanks, Yanis.

採用された回答

Antonin
Antonin 2018 年 6 月 19 日
Bonjour Yanis,
R2016b was the first release to support the F28379D device. We added quite a few features later on. I would strongly suggest that you migrate to the latest release (R2018a) for the best experience with this device. Please contact your local MathWorks representative who will be happy to help you migrate. It's a no cost operation if you are under maintenance, which a lot of people are sometimes without knowing, check with your IT folks.
I hope it helps,
Thanks,
Antonin.
  3 件のコメント
Venkatesh Chilapur
Venkatesh Chilapur 2018 年 7 月 23 日
Please use f28377D.ccxml rather than f28379D.ccxml to get the profiling information.
Hafiz Ahmed
Hafiz Ahmed 2018 年 11 月 30 日
Hi Venkatesh,
I was having same problem as Cody Dillinger. Your answer solved my problem.
However the example given in f28377S_RTProfiler.slx uses system outputs block from simulink coder. Inside the system output block, a for loop is implemented and the RTProfiler can calculate the time taken by the for loop. What about any generic code implemented by simulink blocks only? I tried to check the execution time for this kind of example, but it didn't work for C2000.
I use dSPACE and they also use system outputs block to calculate the execution time of a subsystem. By using the following code in system Outputs
Subsystem Outputs Function Declaration Code
/* Start time measurement.*/
RTLIB_TIC_START();
Subsystem Outputs Function Exit Code
/* Read the elapsed time period. */
subsystem_exec_time = RTLIB_TIC_READ();
I am wondering is there any functionalities like tic toc used by dSPACE available for C2000 code generation or not?
Thanks.

サインインしてコメントする。

その他の回答 (2 件)

Venkatesh Chilapur
Venkatesh Chilapur 2018 年 6 月 11 日
Please mention the MATLAB version and attach the Model file if possible.
  1 件のコメント
Yanis Benmohammed
Yanis Benmohammed 2018 年 6 月 12 日
It's the Matlab 2016b.
I only want to measure ADC conversion time on Ti c2000 delfino F28379D.

サインインしてコメントする。


Venkatesh Chilapur
Venkatesh Chilapur 2018 年 6 月 12 日
This feature is not supported in MATLAB 2016b. Please consider upgrade to 2017a or later where this feature is introduced.

Community Treasure Hunt

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

Start Hunting!

Translated by