Simulink Coder with user-defined functions: data store read block vs global declaration
1 view (last 30 days)
Show older comments
Hello, I'm using Simulink Coder to generate c-code from my Simulink model. I'm making use of user-defined m-functions and data stores. To read/write to those data-stores in m-functions I've two options: -"data-store read/write" blocks, passing then data as input/output to function; -declare the data store as "global" inside the m-function and setting its scope as "data-store memory";
Which are pros and cons of two approaches when looking at the generated c-code? Thanks in advance BR
Dave
0 Comments
Answers (0)
See Also
Categories
Find more on Computer Vision with Simulink in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!