I have a custom C code, which I want to be used with S-function. After I build s-function, using S-function builder block, to create wrapper.c and .tlc files, I ran the model. The output is what I expected. After the model stopped, without changing anything, I click the run button again and the output of the model is different from the first time I ran the model.
MATLAB: Does subsequent/multiple runs produce different results when using S-function with the custom code in Simulink 8.0 (R2012b)
simulink
Best Answer