Can I use global memory to pass data between two S-functions in Simulink?
Show older comments
I have two S-functions that need to share data. I have created a global pointer to the data in one, and I am trying to use the C specifier "extern" in the other so that I can use the same global pointer and only need to calculate my data once. But I can not compile the second S-function using the MEX function.
Answers (0)
Categories
Find more on Configure C/C++ S-Function Features 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!