Code generation from a model made with single precision level 2 s-functions with single precision parameters
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Radu Dan
am 11 Jun. 2019
Kommentiert: Radu Dan
am 13 Jun. 2019
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 Kommentare
Akzeptierte Antwort
rachel hybart
am 12 Jun. 2019
It would be easiest to go with option 1 if possible.
I am currently trying to write a TLC file for a Level 2 S function, and it is a pain.
If it will not affect the outcomes and performance, I would change it back to double.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Simulink Coder finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!