MATLAB: Am I unable to build a working S-function from a subsystem containing a DFlip-Flop using the S-function Target in the Real-Time Workshop

buildddflip-flopdirecterrorfeedthroughflipflipflopflopmissingoutputrealrtws-functiontimeworkshop

Why am I unable to build a working S-function from a subsystem containing a DFlip-Flop using the S-function Target in the Real-Time Workshop?
I have a simple subsystem from which I am trying to generate an S-function using the S-function Target in the Real-Time Workshop. However, I do not receive any output from the S-functions generated as long as I leave a DFlip-Flop in my subsystem.

Best Answer

This bug has been fixed in Release 14 Service Pack 3 (R14SP3). For previous product releases, read below for any possible workarounds:
This is a bug in the Real-Time Workshop in how code is generated for the DFlip-Flop block from the Simulink extras sub-library.
There are currently no known workarounds.