S Function with 0 output ports - callbacks mdlOutputs and mdlGetTimeOfNextVarHit never called

My S function C program works fine when there are S function blocks with nonzero output ports. But for 0 output ports if I set ssSetNumOutputPorts(S,0), the callbacks such as mdlOutputs and mdlGetTimeOfNextVarHit are never get called. Is this the right behavior? Or am I doing something wrong?
Thanks in advance.

Answers (0)

This question is closed.

Products

Asked:

on 23 Nov 2017

Closed:

on 23 Nov 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!