RutgersMJ
RutgersMJ

Reputation: 11

Connecting different Simulink models on different computers

I want to run different models in different computers synchronously using real time Simulink. Is there any way that I can make a connection between two computers and transfer data in between them and run the simulations in parallel?

Upvotes: 1

Views: 1438

Answers (1)

am304
am304

Reputation: 13876

The only way I can think of is to use the UDP Send and UDP Receive blocks to transfer data between the two models. However, be aware that:

  1. These blocks are part of the DSP System Toolbox (there are equivalent ones in the Instrument Control Toolbox, not sure what the difference is between the two)
  2. Even with these blocks, it won't be "real-time". The only way to ensure hard real-time is to generate C code from a model and run it on a real-time platform. MATLAB/Simulink runs on non-real time O/S so can't be real-time. Having said that, if your model runs faster than real-time, you can slow it down to pseudo real-time. There are various utilities available to do that, see Slowing Down Simulink for more details.

There are also TCP/IP send and receive blocks in the Instrument Control Toolbox. These are more restrictive than their UDP counterparts, but ensure better integrity of the data transfer.

Upvotes: 3

Related Questions