| 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
|