[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss-gnuradio] Terminate the receiver
From: |
Brook Lin |
Subject: |
[Discuss-gnuradio] Terminate the receiver |
Date: |
Thu, 26 Feb 2009 19:18:14 -0800 (PST) |
Hi All,
I am working on the OFDM project. When I run sudo
./benchmark_ofdm_rx_video.py -f 450M -R A -v -d 32 --fft-length 128
--occupied-tones 100 --cp-length 32, I want to terminate the process if the
pktno>100. I tried:
def main():
........
def rx_callback(ok, payload):
global n_rcvd, n_right
n_rcvd += 1
(pktno,) = struct.unpack('!H', payload[0:2])
if ok:
n_right += 1
print "ok: %r \t pktno: %d \t n_rcvd: %d \t n_right: %d" % (ok,
pktno, n_rcvd, n_right)
if pktno > 250:
raise SystemExit(0)
......
However, it just stops to receive when pktno>100. The output is like:
......
ok: True pktno: 249 n_rcvd: 243 n_right: 243
ok: True pktno: 250 n_rcvd: 244 n_right: 244
ok: True pktno: 251 n_rcvd: 245 n_right: 245
Actrually, I want to terminate the process, and give a new parameter, say
sudo ./benchmark_ofdm_rx_video.py -f 460M -R A -v -d 32 --fft-length 128
--occupied-tones 100 --cp-length 32. How can I achieve it?
Thanks,
Brook
--
View this message in context:
http://www.nabble.com/Terminate-the-receiver-tp22238872p22238872.html
Sent from the GnuRadio mailing list archive at Nabble.com.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Discuss-gnuradio] Terminate the receiver,
Brook Lin <=