Info

This question is closed. Reopen it to edit or answer.

generate code using Code replacement library on fixed point data types

1 view (last 30 days)
Hello,
I am trying to produce C code integrating to the output my own C functions. I have managed to generate code producing my C function via coder replacement library only for double (and int) types following the examples in Mathworks site. But the main purpose is to generate C code with fixed point types.
I am using fi objects to define the input parameter while for the specification of the C function in replacement library I use fixdt type with same signdness,word and fraction length. When the code is generated, my specified function is not generated. I tried also to use double input parameter and enable the conversion to fixed point but this failed too.
Could you please advise me how to use the code replacement library for fixed point code. Please find attached all the relative files.
Thanks in advance.

Answers (0)

Community Treasure Hunt

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

Start Hunting!