Borrar filtros
Borrar filtros

Generated code is not conforming with Simulation?

2 visualizaciones (últimos 30 días)
Vijith Natarajan
Vijith Natarajan el 12 de Mzo. de 2013
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 comentarios
TAB
TAB el 12 de Mzo. de 2013
Can you post a screen shot of your implementation and relevant part of generated code here ?
Vijith Natarajan
Vijith Natarajan el 15 de Mzo. de 2013
it's working now, there is a data type mismatch problem in integrating the generated code with the existing C device driver..

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Simulink Coder en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by