Load initial state in multirate systems
Mostra commenti meno recenti
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.
Risposte (1)
Kaustubha Govind
il 19 Ott 2011
0 voti
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 Commenti
Philipp
il 19 Ott 2011
Kaustubha Govind
il 19 Ott 2011
Phillip: Is that block implemented in terms of basic Simulink blocks? Which is the block that corresponds to the state OutBuff?
Categorie
Scopri di più su Event Functions in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!