Code generation from a model made with single precision level 2 s-functions with single precision parameters
이전 댓글 표시
Hello,
I have a simulation model made by use of single precision with few blocks made by level 2 cpp s-functions. The block parameters are structures with single elements. Everything works fine in simulation and now I would like to generate code for dSpace. The first issue I have encountered is:
parameters must be of type double or char if the S-function does not have TLC
That means now I have to options:
- Change my model back to support double parameters and convert the parameters in the s-function to single
- Make TLC for each s-function
Which option would you recommend?
Regards,
Radu
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Simulink Coder에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!