TCP-UDP-IP

所属分类:matlab编程
开发工具:matlab
文件大小:193KB
下载次数:265
上传日期:2013-01-03 16:34:30
上 传 者w00184483
说明:  用MATLAB编写了Internet中TCP/UDP连接,模拟了可靠的TCP连接和快速的UDP连接过程,可直接使用。
(Written using MATLAB Internet TCP/UDP connection, analog reliable TCP connection and fast UDP connection process, can be used directly.)

文件列表:
TCP UDP IP\Contents.m (1350, 2003-07-22)
TCP UDP IP\GNU_General_Public_License.txt (18077, 2003-09-16)
TCP UDP IP\license.txt (1592, 2003-09-16)
TCP UDP IP\pnet.c (46546, 2003-09-16)
TCP UDP IP\pnet.dll (73728, 2003-09-16)
TCP UDP IP\pnet.m (11588, 2002-04-23)
TCP UDP IP\pnet.mexglx (89663, 2003-09-16)
TCP UDP IP\pnet.mexsol (32144, 2003-09-16)
TCP UDP IP\pnet.mexw32 (24576, 2008-03-06)
TCP UDP IP\pnet_getvar.m (2834, 2003-09-16)
TCP UDP IP\pnet_putvar.m (2721, 2003-09-16)
TCP UDP IP\pnet_remote.m (12572, 2003-09-16)
TCP UDP IP\popmail_demo.m (2617, 2002-02-07)
TCP UDP IP\tcpip\Contents.m (3834, 2001-05-18)
TCP UDP IP\tcpip\popmail_demo.m (2867, 2000-10-07)
TCP UDP IP\tcpip\tcpipmex.c (29697, 2001-04-02)
TCP UDP IP\tcpip\tcpipmex.dll (41472, 2001-01-03)
TCP UDP IP\tcpip\tcpipmex.m (164, 2000-12-14)
TCP UDP IP\tcpip\tcpipmex.mexglx (18795, 2000-12-07)
TCP UDP IP\tcpip\tcpipmex.mexlx (17671, 2000-12-13)
TCP UDP IP\tcpip\tcpipmex.mexsol (19768, 2000-12-13)
TCP UDP IP\tcpip\tcpip_calc_server.m (1157, 2001-05-17)
TCP UDP IP\tcpip\tcpip_close.m (425, 2000-10-07)
TCP UDP IP\tcpip\tcpip_feval.m (349, 2001-01-04)
TCP UDP IP\tcpip\tcpip_feval_end.m (332, 2001-01-04)
TCP UDP IP\tcpip\tcpip_feval_server.m (915, 2001-01-04)
TCP UDP IP\tcpip\tcpip_getfile.m (1090, 2001-10-22)
TCP UDP IP\tcpip\tcpip_getvar.m (389, 2001-01-04)
TCP UDP IP\tcpip\tcpip_listen.m (337, 2000-11-21)
TCP UDP IP\tcpip\tcpip_open.m (503, 2000-10-07)
TCP UDP IP\tcpip\tcpip_read.m (2245, 2001-01-25)
TCP UDP IP\tcpip\tcpip_readln.m (644, 2001-08-31)
TCP UDP IP\tcpip\tcpip_sendfile.m (709, 2001-10-23)
TCP UDP IP\tcpip\tcpip_sendvar.m (408, 2001-01-04)
TCP UDP IP\tcpip\tcpip_servopen.m (1337, 2001-05-18)
TCP UDP IP\tcpip\tcpip_servsocket.m (319, 2000-11-21)
TCP UDP IP\tcpip\tcpip_status.m (610, 2001-01-04)
TCP UDP IP\tcpip\tcpip_test.m (1514, 2001-01-04)
TCP UDP IP\tcpip\tcpip_viewbuff.m (363, 2001-01-25)
TCP UDP IP\tcpip\tcpip_write.m (2551, 2000-10-07)
... ...

This two is demo ripped from a demo solotion for a real application. The DAQ simulator: As I do not have a DAQ system, I made a simple DAQ simulator. The script sim_daq.m simulates a daq system and sends some data packets with sinus wave data in UDP packets. Start it in its own MATLAB window on the same computer or an other one start it with for an example: sim_daq('localhost',3001,3002) It will send 16-bit data with "Network" byte order. You may change it to "Intel" byte order if thats more correct. If transmisstion speed it to fast. then will the network or reciving application loss packets. You can adjust delay with the pause(xxx) comands. you will read out different average transmission speeds from this. I fill the initial 2-byte position with 16-bit "id" number for the transmission. DAQ Reciver: First of all I switched over to use only pnet comunication and no matlabs own UDP. You can run it like this: [data_matrix,id_list]=new_transmit_and_get('localhost',3002,3001); plot(data_matrix); You will se the sinus waves plotted if you receive from the sim_daq application. You may change the byte order if im wrong about the byteorder your daq system use....

近期下载者

相关文件


收藏者