0

I want to run two simulink model in parallel in such a way that they have same simulation time at any instant. Both model have same fixed step size (Fundamental sample time). Both models have different configuration parameter. Is there any way to do it?

1
  • I have opened matlab twice and started simulating models but at any instance simulation time for both models are not same. How to make it same? Commented Dec 1, 2015 at 8:29

2 Answers 2

2

I would put both models in a top-level model as referenced models, e.g.:

enter image description here

This will ensure that both models have the exact same simulation time at any instant. More on model referencing in the Simulink documentation.

Sign up to request clarification or add additional context in comments.

8 Comments

When you are putting two models in top level model as refrenced models, their configuration parameter should be same. But My requirement says that models have diff configuration parameter e.g Hardware Implementation parameter is different.
@Ranjan That's not true. You need to use configsets and attach the relevant configset to each referenced model. See Simulink Model Referencing Requirements in the doc for more details.
Hi @am304 I attached corresponding configsets to the model then tried ruuning them But I am getting below error of Hardware parameter mismatch (I used TI hardware for one model and Generic for others). Error in Model block 'Ranjan_Test/Subsystem': the hardware settings must match between the parent model 'Ranjan_Test' and the referenced model 'Subsystem'. These values can be changed on the 'Hardware Implementation' page of the Configuration Parameters dialog.
@Ranjan Yes, one of the requirements in the doc I mentioned in my previous comments says "Values must be the same for top and referenced models" for Hardware Implementation. Have you read the doc?
Yes I read it, that means I can't implement what I wrote above in my query in your suggested way?
|
1

If you need to run two paraller simulations you can check this Matlab site: http://www.mathworks.com/help/simulink/ug/running-parallel-simulations.html. Matlab have many guides for their users.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.