MATLAB: Do I receive an error when converting the SystemBuild model to Simulink using SB2SL 2.6.1 (R14SP1)

add_blockdiscreteoffsetsb2slsimulinksystembuild

When I convert my SystemBuild model to Simulink using SB2SL, I receive the following error:
Error using ==> add_block
Offset time specified in 'untitled/input-1' is invalid. Offset must be less than discrete sample time.
I looked into the issue a bit more, and in some blocks in my SystemBuild model, I have the offset time equal to the sample time.

Best Answer

We have verified that there is a bug in SB2SL 2.6.1 (R14SP1) in the way that it handles converting blocks with offset time equal to the sample time. Since this behavior is not allowed in Simulink (offset time must be less than sample time), the error occurs.
To work around this issue, change the offset time in the SystemBuild model to sometime less than the sample time before conversion.