From: Walter Roberson on 23 Jun 2010 10:37 Hooman wrote: > I am closely following the discussion that's going on between you too, > but unfortunately I don't get most of it. Can you point me to some > documentation regarding these types of things? Specifically, sending > and receiving data through TCP or UDP and the blocks that should be > used in a Simulink model to achieve this. Do you have to use a toolbox > or blockset for that? Sorry, I do not use Simulink. There is a toolbox that has TCP and UDP, but you can also use the tcpudpip Matlab File Exchange contribution. I haven't use Matlab for TCP or UDP myself; my background happens to include networking work so I know the theory but not so much of how Matlab implements it.
From: Karan on 23 Jun 2010 13:34 Walter Roberson <roberson(a)hushmail.com> wrote in message <s_oUn.65012$h57.18770(a)newsfe22.iad>... > Hooman wrote: > > > I am closely following the discussion that's going on between you too, > > but unfortunately I don't get most of it. Can you point me to some > > documentation regarding these types of things? Specifically, sending > > and receiving data through TCP or UDP and the blocks that should be > > used in a Simulink model to achieve this. Do you have to use a toolbox > > or blockset for that? > > Sorry, I do not use Simulink. > > There is a toolbox that has TCP and UDP, but you can also use the > tcpudpip Matlab File Exchange contribution. > > I haven't use Matlab for TCP or UDP myself; my background happens to > include networking work so I know the theory but not so much of how > Matlab implements it. Hey, So there are two ways you can send data to remote machine. Like Walter said, using command line or there are Simulink blocks that can be used. In Simulink go to Instrument Control Toolbox, you will find block to send and receive data over UDP and TCP/IP. Use UDP - Read posts before to know why, Walter explained it quite well ! So with UDP blocks, you can only send final results like Data, Numbers or Graph. If you want to send string to remote machine use command line. http://www.mathworks.nl/access/helpdesk/help/toolbox/instrument/f16-60757.html Look at Example: Communicating Between Two Hosts.
From: Walter Roberson on 23 Jun 2010 13:57 Karan wrote: > So with UDP blocks, you can only send final results like Data, Numbers > or Graph. > > If you want to send string to remote machine use command line. > > http://www.mathworks.nl/access/helpdesk/help/toolbox/instrument/f16-60757.html > > Look at Example: Communicating Between Two Hosts. You can send anything you want between machines with UDP -- as far as UDP is concerned, it is all just a string of bytes. One small trick to be aware of is that in Matlab char() is generally two bytes not one (because Matlab supports Unicode).
From: Ankit Desai on 23 Jun 2010 14:13 Walter Roberson <roberson(a)hushmail.com> wrote in message <hvti2s$nrs$1(a)canopus.cc.umanitoba.ca>... > Karan wrote: > > > So with UDP blocks, you can only send final results like Data, Numbers > > or Graph. > > > > If you want to send string to remote machine use command line. > > > > http://www.mathworks.nl/access/helpdesk/help/toolbox/instrument/f16-60757.html > > > > Look at Example: Communicating Between Two Hosts. > > You can send anything you want between machines with UDP -- as far as UDP is > concerned, it is all just a string of bytes. > > One small trick to be aware of is that in Matlab char() is generally two bytes > not one (because Matlab supports Unicode). Hello, There are many threads that talk about similar stuff. Walter, your description was spot on. Kudos to you for that. For others who want to see simplified version of the same using UDP via Instrument Control Toolbox do check: http://www.mathworks.com/matlabcentral/newsreader/view_thread/165759 Hope that helps, -Ankit
First
|
Prev
|
Pages: 1 2 3 4 Prev: Ga optimization code needs to correct Next: export figure to PDF/EPS messes colors |