Will multiple instances of a C++ S-function in Simulink sharing the same memory pool cause issues with static variables?
I have written an S-function with a C++ class with static attributes. Given how static variables share a common memory space across instances, if I have multiple copies of the S-function, will changes to the static attributes affect the rest of the S-function instances?
How do I create a separate memory space for each S-Function?I have written an S-function with a C++ class with static attributes. Given how static variables share a common memory space across instances, if I have multiple copies of the S-function, will changes to the static attributes affect the rest of the S-function instances?
How do I create a separate memory space for each S-Function? I have written an S-function with a C++ class with static attributes. Given how static variables share a common memory space across instances, if I have multiple copies of the S-function, will changes to the static attributes affect the rest of the S-function instances?
How do I create a separate memory space for each S-Function? static, attribute, class, cpp, sfunction, workvector MATLAB Answers — New Questions