I have a model with a subsystem that inherits sample time. When I generate an S-function from this subsystem, the resulting S-function should inherit sample time as well. However, when I use this S-function in another model, it does not inherit its sample time. Instead, it uses the compiled sample time of the original subsystem.
MATLAB: Does the Real-Time Workshop 6.0 (R14) generated S-function not inherit sample times
buildcompiledsampletimeinheritinheritedrateright clickrtws-functionsamplesfunsfunctionsimulink codertimetimestransition
Related Question
- How to create a sample time independent S-function block from a subsystem in Simulink Coder 8.4 (R2013a)
- Does the generated S-function have incorrect sample times when generated from a subsystem using the Real-Time Workshop
- Does converting the subsystem to an S-function with Real-Time Workshop introduce an algebraic loop
- Does the function name change when I build the subsystem with Real-Time Workshop Embedded Coder
- How to recompile the manually modified generated-code from Real-Time Workshop 7.3 (R2009a)
- Do I receive an error when I try to generate a C++ S-function from a subsystem using right-click > Generate S-Function with MSVC 6.0 in Real-Time Workshop 6.5 (R2006b)
- Is the sample time incorrect in the generated code for a subsystem in the Real-Time Workshop 5.0 (R13)
- How to control the length of the S-function file names generated by Real-Time Workshop when using the S-function target
Best Answer