MATLAB: Is it possible to log the states of a block whose input signal is Simulink.StructType data

dataloggingsimulinkstructuretype

I have a model with an S-function that uses Simulink.StructType data. The S-Function is connected to a Unit Delay whose states are being logged. Why are the states of this block not getting logged when its input signal is StructType data?

Best Answer

The ability to log states for blocks which use Simulink.StructType data is not available in Simulink 7.1 (R2008a).
To work around this issue, use only base Simulink data types when logging states.