Why do I receive an error when converting my SystemBuild model to Simulink using SB2SL 2.6.1 (R14SP1)?
1 view (last 30 days)
Show older comments
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.
Accepted Answer
MathWorks Support Team
on 27 Jun 2009
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.
0 Comments
More Answers (0)
See Also
Categories
Find more on Programmatic Model Editing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!