Line 2... |
Line 2... |
2 |
##################################################
|
2 |
##################################################
|
3 |
# Gnuradio Python Flow Graph
|
3 |
# Gnuradio Python Flow Graph
|
4 |
# Title: MLAB ADC Grabber
|
4 |
# Title: MLAB ADC Grabber
|
5 |
# Author: Jakub Kakona
|
5 |
# Author: Jakub Kakona
|
6 |
# Description: Basic software for reading ADC data from ADCdual01A modules trought ML602 development board.
|
6 |
# Description: Basic software for reading ADC data from ADCdual01A modules trought ML602 development board.
|
7 |
# Generated: Mon Jun 2 15:58:15 2014
|
7 |
# Generated: Wed Jul 23 17:43:43 2014
|
8 |
##################################################
|
8 |
##################################################
|
9 |
|
9 |
|
10 |
from datetime import datetime
|
10 |
from datetime import datetime
|
11 |
from gnuradio import blocks
|
11 |
from gnuradio import blocks
|
12 |
from gnuradio import eng_notation
|
12 |
from gnuradio import eng_notation
|
Line 33... |
Line 33... |
33 |
|
33 |
|
34 |
##################################################
|
34 |
##################################################
|
35 |
# Variables
|
35 |
# Variables
|
36 |
##################################################
|
36 |
##################################################
|
37 |
self.prefix = prefix = "/home/localuser/gnuradio/"
|
37 |
self.prefix = prefix = "/home/localuser/gnuradio/"
|
38 |
self.samp_rate = samp_rate = 5e6
|
38 |
self.samp_rate = samp_rate = 10e6
|
39 |
self.recfile = recfile = prefix + datetime.now().strftime("%Y.%m.%d.%H.%M.%S") + ".dat"
|
39 |
self.recfile = recfile = prefix + datetime.now().strftime("%Y.%m.%d.%H.%M.%S") + ".dat"
|
40 |
|
40 |
|
41 |
##################################################
|
41 |
##################################################
|
42 |
# Blocks
|
42 |
# Blocks
|
43 |
##################################################
|
43 |
##################################################
|
Line 240... |
Line 240... |
240 |
def get_samp_rate(self):
|
240 |
def get_samp_rate(self):
|
241 |
return self.samp_rate
|
241 |
return self.samp_rate
|
242 |
|
242 |
|
243 |
def set_samp_rate(self, samp_rate):
|
243 |
def set_samp_rate(self, samp_rate):
|
244 |
self.samp_rate = samp_rate
|
244 |
self.samp_rate = samp_rate
|
245 |
self.blocks_throttle_2.set_sample_rate(self.samp_rate/2)
|
- |
|
246 |
self.wxgui_scopesink2_1.set_sample_rate(self.samp_rate/2)
|
245 |
self.wxgui_scopesink2_1.set_sample_rate(self.samp_rate/2)
|
247 |
self.wxgui_waterfallsink2_0_0.set_sample_rate(self.samp_rate)
|
246 |
self.wxgui_waterfallsink2_0_0.set_sample_rate(self.samp_rate)
|
248 |
self.wxgui_scopesink2_0.set_sample_rate(self.samp_rate)
|
247 |
self.wxgui_scopesink2_0.set_sample_rate(self.samp_rate)
|
249 |
self.wxgui_waterfallsink2_0.set_sample_rate(self.samp_rate)
|
248 |
self.wxgui_waterfallsink2_0.set_sample_rate(self.samp_rate)
|
250 |
self.wxgui_fftsink2_0.set_sample_rate(self.samp_rate)
|
249 |
self.wxgui_fftsink2_0.set_sample_rate(self.samp_rate)
|
251 |
self.wxgui_fftsink2_1.set_sample_rate(self.samp_rate)
|
250 |
self.wxgui_fftsink2_1.set_sample_rate(self.samp_rate)
|
- |
|
251 |
self.blocks_throttle_2.set_sample_rate(self.samp_rate/2)
|
252 |
|
252 |
|
253 |
def get_recfile(self):
|
253 |
def get_recfile(self):
|
254 |
return self.recfile
|
254 |
return self.recfile
|
255 |
|
255 |
|
256 |
def set_recfile(self, recfile):
|
256 |
def set_recfile(self, recfile):
|