diff options
author | n4hy <n4hy@221aa14e-8319-0410-a670-987f0aec2ac5> | 2008-07-04 01:26:58 +0000 |
---|---|---|
committer | n4hy <n4hy@221aa14e-8319-0410-a670-987f0aec2ac5> | 2008-07-04 01:26:58 +0000 |
commit | ae0ca251c8384b97ef1ba69a13c02227a57eaa54 (patch) | |
tree | b6c309a320c12f8798878461b83b110e9a6d2578 /gr-msdd6000/src/python_test/halt.py | |
parent | 20615905cd0bf22772740d132be439bcf7ec4d8d (diff) |
cleaning up and putting much better code in. Step 1 of 2
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@8778 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gr-msdd6000/src/python_test/halt.py')
-rw-r--r-- | gr-msdd6000/src/python_test/halt.py | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/gr-msdd6000/src/python_test/halt.py b/gr-msdd6000/src/python_test/halt.py new file mode 100644 index 0000000000..0285f78172 --- /dev/null +++ b/gr-msdd6000/src/python_test/halt.py @@ -0,0 +1,40 @@ +#!/usr/bin/python + +from socket import * +import string +import time +import struct; +import random; +import array; +import cmath; +from numpy import *; +from numpy.fft import *; +from pylab import *; + +myport = random.randint(1025,65535); +filename = "output.dat"; + +msdd_port = 10001 +msdd_host = "10.45.4.43" + +buf = 100000; + +my_udp_addr = ('',10001); +my_udp_addr = ('10.45.1.229 ',10001); + +UDPSock = socket(AF_INET,SOCK_DGRAM); +UDPSock.bind(my_udp_addr); + +halt_data = struct.pack("<II", 0x04, 0x00); +halt_data = struct.pack("<II", 0x04, 0x00); + +data = halt_data; + +UDPSock.sendto(data, (msdd_host, msdd_port)); + +print "sent" + +UDPSock.close(); + + + |