I have written an S-function with a C++ class. The class has static attributes in it. If I have multiple copies of the S-function, will changes to the static attributes affect the rest of the S-function instances?
MATLAB: In Simulink, if I have a C++ S-function with classes containing static attributes, will multiple instances of the S-function cause problems between the static variables
attributecclasss-functionsimulinkstaticvectorwork
Related Question
- How to add C code that is called at the beginning and end of the Simulink model simulation using the S Function Builder block
- Code Generation: Static local variables
- How to access a single instance of the C++ object from several S-Functions in Simulink 7.1 (R2008a)
- Static variables in MATLAB
- Can’t I use builtin for classes that overload subsref
- Does Simulink Accelerator not use all TLC methods even if I use the SS_OPTION_USE_TLC_WITH_ACCELERATOR option in Real-Time Workshop 7.4 (R2009b)
- Static Text GUI
Best Answer