C

Asked • 06/26/19

Simulink: How to get a buffer size that can be changed in C code?

I'm using a buffer from DSP System Toolbox in my Simulink model and genereate C code with Embedded Coder. I would like to have some kind of a parameter or define for the buffer size in my generated c code, so I can change it in the c code afterwars. Something like a "#define BUFFER_SIZE 100" or any other definition that can be changed directly in c code. Thanks a lot!

1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.