Load initial state in multirate systems
显示 更早的评论
Hallo,
ttbomk, Simulink does not offer a way to piecewise process large data sets that won't fit into the workspace. A workaround is to run simulink with a piece of the data, save last state of the model, start simulink with next piece of data and the final state from the last run as the initial state, as is proposed here: http://www.mathworks.it/matlabcentral/newsreader/view_thread/260837. I can make this work for single-rate models, but it fails for multirate systems. In my evaluation I found that the state of the 'OutBuff' of a multirate filter and thus the filter's output is different when processing the data piecewise compared to processing the data in one piece.
Any idea why this is the case?
Thanks for your help.
回答(1 个)
Kaustubha Govind
2011-10-19
0 个投票
Which block is that exactly? If it a block from the Simulink library, it is worth reporting this to MathWorks Tech Support so that SimState support for that block is fixed.
Also, I believe the "From File" block reads data one sample at a time - so this might potentially be a solution to the problem of not being able to fit your input data in the workspace. (The other suggestions on the newsgroup thread are also excellent)
2 个评论
Philipp
2011-10-19
Kaustubha Govind
2011-10-19
Phillip: Is that block implemented in terms of basic Simulink blocks? Which is the block that corresponds to the state OutBuff?
类别
在 帮助中心 和 File Exchange 中查找有关 Event Functions 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!