Test custom source code with PIL simulation on S32K144 (NXP processor)

조회 수: 8 (최근 30일)
Filiberto Gastelum
Filiberto Gastelum 2023년 6월 2일
댓글: Raghava S N 2025년 4월 4일
I already have mi own code in C language and I want to test it on Simulink, but most of the examples I get in NXP community are using the Model based design tool. Such tool works for the generation of C code and testing it via MBDT. In my case I want to test my C code project using the PIL simulation.
Does any one know how to run PIL simulation including my C code in Simulink?
  댓글 수: 1
Raghava S N
Raghava S N 2025년 4월 4일
PIL and SIL are simulation workflows of Simulink for code validation and verification. These cannot be decoupled from Simulink. However, to include your custom code, you can create S-function blocks and include these blocks in a Simulink model and then run SIL/PIL simulations to test your code. For more information about S-functions, refer to the links below-
Hope that helps!

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Verification, Validation, and Test에 대해 자세히 알아보기

제품


릴리스

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by