Robuta

https://nl.mathworks.com/help/simulink/sfg/ssgetoutputportsampletimeindex.html ssGetOutputPortSampleTimeIndex - Get sample time index of output port - MATLAB SimStruct that represents an S-Function block. get sampletime indexoutputportmatlab