필터 지우기
필터 지우기

Generated code is not conforming with Simulation?

조회 수: 2 (최근 30일)
Vijith Natarajan
Vijith Natarajan 2013년 3월 12일
Hi, I am using a interpolation prelookup table in my model. from my stateflow chart i am calling the interpolation block as a simulink function.. it worked well and the simulation was perfect. when i generated C code and use it in the controller. i found that the interpolatoin output is always zero in the generated c code . the input going to interpolation is perfect ( i checked it)..
1. while the simulation is perfect, why there is a problem in generated code?
any help would be really appreciated......
thanks vijith
  댓글 수: 2
TAB
TAB 2013년 3월 12일
Can you post a screen shot of your implementation and relevant part of generated code here ?
Vijith Natarajan
Vijith Natarajan 2013년 3월 15일
it's working now, there is a data type mismatch problem in integrating the generated code with the existing C device driver..

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by