Last change
on this file was
951,
checked in by chunter, 16 years ago
|
adding matperf
|
-
Property svn:executable set to
*
|
File size:
528 bytes
|
Rev | Line | |
---|
[951] | 1 | function MatperfClinet_EndExp(address,lport) |
---|
| 2 | |
---|
| 3 | udp = pnet('udpsocket',3333); |
---|
| 4 | done = 4; |
---|
| 5 | pnet(udp,'write',done); |
---|
| 6 | pnet(udp,'writepacket',char(address),lport); |
---|
| 7 | pnet(udp,'setreadtimeout',10); |
---|
| 8 | len = pnet(udp,'readpacket'); |
---|
| 9 | if len >0, |
---|
| 10 | data = pnet(udp,'read',1000,'double'); |
---|
| 11 | if data == 4, |
---|
| 12 | disp('server awknowledged complete experiment signal'); |
---|
| 13 | disp('Completing the client process'); |
---|
| 14 | else |
---|
| 15 | disp('fix the code EndExp.m'); |
---|
| 16 | end |
---|
| 17 | else |
---|
| 18 | disp('fix the code... server is not corresponding'); |
---|
| 19 | end |
---|
| 20 | |
---|
| 21 | return |
---|
Note: See
TracBrowser
for help on using the repository browser.