Can I use global memory to pass data between two S-functions in Simulink?

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)

Asked:

on 28 Oct 2013

Community Treasure Hunt

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

Start Hunting!