UDP channel between matlab and Eclipse
이전 댓글 표시
How can I set up a UDP channel between Matlab and Eclipse that send some matlab's output for Eclipse ? I should write a server in Matlab and a client in eclipse . the client will ask for some data and the server will send that data to client .
any ideas how to do this ? any examples? I'm not familiar with Matlab or socket programming at all , please help !
답변 (1개)
Walter Roberson
2012년 4월 10일
0 개 추천
You can use the udp() function of the Instrument Control Toolbox to set up the server. After that you use fread() or similar routines, and fwrite() or fprintf(). You might also end up setting up callbacks for automatic operation when data is received.
There is also a MATLAB File Exchange contribution tcpudpip that can be used instead of the Instrument Control Toolbox.
댓글 수: 4
aida
2012년 4월 11일
Walter Roberson
2012년 4월 11일
I believe there are Simulink function blocks for TCP and UDP as part of the Instrument Control Toolbox. Or there is
http://www.mathworks.com/matlabcentral/fileexchange/15762
aida
2012년 4월 13일
Walter Roberson
2012년 4월 13일
I don't know enough about eclipse to answer that, but text seems likely to be the answer.
카테고리
도움말 센터 및 File Exchange에서 Application Deployment에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!