MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [求助] matlab udp怎么用 急啊 (https://www.labfans.com/bbs/showthread.php?t=3630)

wjabcjw 2008-06-17 10:51

[求助] matlab udp怎么用 急啊
 
我在同一台电脑上这样用的,可是收不到
提示:
Warning: The specified amount of data was not returned within the Timeout period.

ans =

Empty matrix: 1-by-0

高手指点啊
u1 = udp('192.168.6.6',3333,'LocalPort',3332)
fopen(u1)
pause(1);
fwrite(u1,'Ready for data transfer.')
fclose(u1);
delete(u1);
clear u1;


u2 = udp('192.168.6.6',3332,'LocalPort',3333)
fopen(u2)
fread(u2)
fclose(u2);
delete(u2);
clear u2;


所有时间均为北京时间。现在的时间是 03:09

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.