Using local solvers in Simulink
Show older comments
I am trying to use multiple solvers in Simulink, I use model referencing but it seems like simulink only allows to change the solvers of the top model and not the referenced models.
Does anybody know a way to use local solvers for each model reference ?
thank you for your time
Answers (3)
Sebastian Castro
on 6 Oct 2015
0 votes
You should be able to go into each of those models and access their configuration parameters separately. Is that not working? If so, why not?
- Sebastian
1 Comment
Sebastian Castro
on 6 Oct 2015
Ah yes, in that case you're on the right track. When you're setting up models for concurrent execution, they all share the same reference configuration set. In this case, you don't set the sample time in the same way. You want to use the following menus:
- Sebastian
4 Comments
Sebastian Castro
on 6 Oct 2015
First off: Please respond using comments and not a new answer. It's difficult to keep track of.
Secondly: Yes, Simulink itself will not execute on multiple cores. You can set up this concurrent execution to simulate the effects of multiple cores, but the multicore execution itself won't happen until you generate code.
To get actual multicore performance, you can do one of two things:
- Generate code from the configured model. This will give you a separate function for each different rate in the model. It is then up to you to use these generated functions and do the scheduling/multicore work yourself.
- Use Simulink Real-Time on a multicore machine, which will automatically assign each task to a separate core.
- Sebastian
Walten
on 9 Oct 2015
Walten
on 9 Oct 2015
mona aljeagdaf
on 7 Oct 2018
I have a problem choosing the type of solver in Simulink. Whenever I want to run the model does not work and ask me to change the type and variables of solver or ode and I have other frequently without reaching the solution please help
Categories
Find more on Multicore Processor Targets in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!