For Programmers: Free Programming Magazines  


Home > Archive > Matlab > February 2007 > Re: communication and interfaces between 2 individual Simulinks









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: communication and interfaces between 2 individual Simulinks
Idin Motedayen-Aval

2007-02-28, 7:14 pm

Jason H wrote:
> Dear all,
>
> As part of my project (control systems related)requires, I need to
> build up a Plant in Simulink on a PC and a controller also in
> Simulink on another PC and then establish communication between this
> two blocks via Internet to send the output from Plant to the input of
>
> the controller and output of controller to the input of the Plant
> which forms a feedback loop through Internet.
>
> So my questions are:
>
> 1. Are there any ways to enable communication between 2 Simulink
> models running on different PCs?
>
> 2. What sort of software or programmes are needed for the
> construction of the interfaces which function like acquiring and
> sending data to one and another PCs?
>
> Thank you for all your coming responses.
>
> Cheers
>
> Jason Hu


Jason,
I have not done this myself, and someone else may have a better idea,
but what comes to my mind off-hand is to use the Instrument Control
Toolbox. This toolbox gives you a "Query Instrument" and a "To
Instrument" block that can be configured to use UDP or TCP/IP to
communicate between your Simulink model some other device. This other
device, conceivably, could be another Simulink model with a similar
block (in theory at least!).

Of course, you have to buffer up samples, create UDP or TCP/IP
packets... deal with network latency, etc. I'm not sure how all this
will affect your control loop (the latencies involved may render this
approach useless).

HTH,
Idin Motedayen-Aval
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com