I used the timesthree.c S-Function in minimal Simulink model (see attachment, remove zip ending) mytest.slx.zip Summary: both rtwsfcnfmi and grtfmi targets require the S-function source to be in the ...