No changes between revisions
/Designs/Tools/Oscilloscope/SW/PC_side/gnuradio/ARM_QTgui.grc |
---|
0,0 → 1,211 |
<?xml version='1.0' encoding='ASCII'?> |
<flow_graph> |
<timestamp>Sat Nov 12 20:35:22 2011</timestamp> |
<block> |
<key>options</key> |
<param> |
<key>id</key> |
<value>top_block</value> |
</param> |
<param> |
<key>_enabled</key> |
<value>True</value> |
</param> |
<param> |
<key>title</key> |
<value></value> |
</param> |
<param> |
<key>author</key> |
<value></value> |
</param> |
<param> |
<key>description</key> |
<value></value> |
</param> |
<param> |
<key>window_size</key> |
<value>1280, 1024</value> |
</param> |
<param> |
<key>generate_options</key> |
<value>qt_gui</value> |
</param> |
<param> |
<key>category</key> |
<value>Custom</value> |
</param> |
<param> |
<key>run_options</key> |
<value>prompt</value> |
</param> |
<param> |
<key>run</key> |
<value>True</value> |
</param> |
<param> |
<key>realtime_scheduling</key> |
<value></value> |
</param> |
<param> |
<key>_coordinate</key> |
<value>(10, 10)</value> |
</param> |
<param> |
<key>_rotation</key> |
<value>0</value> |
</param> |
</block> |
<block> |
<key>variable</key> |
<param> |
<key>id</key> |
<value>samp_rate</value> |
</param> |
<param> |
<key>_enabled</key> |
<value>True</value> |
</param> |
<param> |
<key>value</key> |
<value>250000</value> |
</param> |
<param> |
<key>_coordinate</key> |
<value>(14, 171)</value> |
</param> |
<param> |
<key>_rotation</key> |
<value>0</value> |
</param> |
</block> |
<block> |
<key>gr_file_source</key> |
<param> |
<key>id</key> |
<value>gr_file_source_0</value> |
</param> |
<param> |
<key>_enabled</key> |
<value>True</value> |
</param> |
<param> |
<key>file</key> |
<value>/dev/ttyUSB0</value> |
</param> |
<param> |
<key>type</key> |
<value>short</value> |
</param> |
<param> |
<key>repeat</key> |
<value>True</value> |
</param> |
<param> |
<key>vlen</key> |
<value>1</value> |
</param> |
<param> |
<key>_coordinate</key> |
<value>(71, 385)</value> |
</param> |
<param> |
<key>_rotation</key> |
<value>0</value> |
</param> |
</block> |
<block> |
<key>gr_short_to_float</key> |
<param> |
<key>id</key> |
<value>gr_short_to_float_0</value> |
</param> |
<param> |
<key>_enabled</key> |
<value>True</value> |
</param> |
<param> |
<key>_coordinate</key> |
<value>(397, 317)</value> |
</param> |
<param> |
<key>_rotation</key> |
<value>0</value> |
</param> |
</block> |
<block> |
<key>qtgui_sink_x</key> |
<param> |
<key>id</key> |
<value>qtgui_sink_x_0</value> |
</param> |
<param> |
<key>_enabled</key> |
<value>True</value> |
</param> |
<param> |
<key>type</key> |
<value>float</value> |
</param> |
<param> |
<key>name</key> |
<value>QT GUI Plot</value> |
</param> |
<param> |
<key>fftsize</key> |
<value>1024</value> |
</param> |
<param> |
<key>wintype</key> |
<value>firdes.WIN_BLACKMAN_hARRIS</value> |
</param> |
<param> |
<key>fc</key> |
<value>0</value> |
</param> |
<param> |
<key>bw</key> |
<value>samp_rate</value> |
</param> |
<param> |
<key>plotfreq</key> |
<value>True</value> |
</param> |
<param> |
<key>plotwaterfall</key> |
<value>True</value> |
</param> |
<param> |
<key>plottime</key> |
<value>True</value> |
</param> |
<param> |
<key>plotconst</key> |
<value>True</value> |
</param> |
<param> |
<key>gui_hint</key> |
<value></value> |
</param> |
<param> |
<key>_coordinate</key> |
<value>(664, 226)</value> |
</param> |
<param> |
<key>_rotation</key> |
<value>0</value> |
</param> |
</block> |
<connection> |
<source_block_id>gr_file_source_0</source_block_id> |
<sink_block_id>gr_short_to_float_0</sink_block_id> |
<source_key>0</source_key> |
<sink_key>0</sink_key> |
</connection> |
<connection> |
<source_block_id>gr_short_to_float_0</source_block_id> |
<sink_block_id>qtgui_sink_x_0</sink_block_id> |
<source_key>0</source_key> |
<sink_key>0</sink_key> |
</connection> |
</flow_graph> |
/Designs/Tools/Oscilloscope/SW/PC_side/gnuradio/ARM_WX_scope.grc |
---|
0,0 → 1,223 |
<?xml version='1.0' encoding='ASCII'?> |
<flow_graph> |
<timestamp>Sat Nov 12 20:32:46 2011</timestamp> |
<block> |
<key>options</key> |
<param> |
<key>id</key> |
<value>top_block</value> |
</param> |
<param> |
<key>_enabled</key> |
<value>True</value> |
</param> |
<param> |
<key>title</key> |
<value></value> |
</param> |
<param> |
<key>author</key> |
<value></value> |
</param> |
<param> |
<key>description</key> |
<value></value> |
</param> |
<param> |
<key>window_size</key> |
<value>1280, 1024</value> |
</param> |
<param> |
<key>generate_options</key> |
<value>wx_gui</value> |
</param> |
<param> |
<key>category</key> |
<value>Custom</value> |
</param> |
<param> |
<key>run_options</key> |
<value>prompt</value> |
</param> |
<param> |
<key>run</key> |
<value>True</value> |
</param> |
<param> |
<key>realtime_scheduling</key> |
<value></value> |
</param> |
<param> |
<key>_coordinate</key> |
<value>(10, 10)</value> |
</param> |
<param> |
<key>_rotation</key> |
<value>0</value> |
</param> |
</block> |
<block> |
<key>variable</key> |
<param> |
<key>id</key> |
<value>samp_rate</value> |
</param> |
<param> |
<key>_enabled</key> |
<value>True</value> |
</param> |
<param> |
<key>value</key> |
<value>250000</value> |
</param> |
<param> |
<key>_coordinate</key> |
<value>(10, 170)</value> |
</param> |
<param> |
<key>_rotation</key> |
<value>0</value> |
</param> |
</block> |
<block> |
<key>gr_file_source</key> |
<param> |
<key>id</key> |
<value>gr_file_source_0</value> |
</param> |
<param> |
<key>_enabled</key> |
<value>True</value> |
</param> |
<param> |
<key>file</key> |
<value>/dev/ttyUSB0</value> |
</param> |
<param> |
<key>type</key> |
<value>short</value> |
</param> |
<param> |
<key>repeat</key> |
<value>True</value> |
</param> |
<param> |
<key>vlen</key> |
<value>1</value> |
</param> |
<param> |
<key>_coordinate</key> |
<value>(72, 385)</value> |
</param> |
<param> |
<key>_rotation</key> |
<value>0</value> |
</param> |
</block> |
<block> |
<key>gr_short_to_float</key> |
<param> |
<key>id</key> |
<value>gr_short_to_float_0</value> |
</param> |
<param> |
<key>_enabled</key> |
<value>True</value> |
</param> |
<param> |
<key>_coordinate</key> |
<value>(383, 350)</value> |
</param> |
<param> |
<key>_rotation</key> |
<value>0</value> |
</param> |
</block> |
<block> |
<key>wxgui_scopesink2</key> |
<param> |
<key>id</key> |
<value>wxgui_scopesink2_0</value> |
</param> |
<param> |
<key>_enabled</key> |
<value>True</value> |
</param> |
<param> |
<key>type</key> |
<value>float</value> |
</param> |
<param> |
<key>title</key> |
<value>Scope Plot</value> |
</param> |
<param> |
<key>samp_rate</key> |
<value>samp_rate</value> |
</param> |
<param> |
<key>v_scale</key> |
<value>0</value> |
</param> |
<param> |
<key>v_offset</key> |
<value>0</value> |
</param> |
<param> |
<key>t_scale</key> |
<value>0</value> |
</param> |
<param> |
<key>ac_couple</key> |
<value>False</value> |
</param> |
<param> |
<key>xy_mode</key> |
<value>False</value> |
</param> |
<param> |
<key>num_inputs</key> |
<value>1</value> |
</param> |
<param> |
<key>win_size</key> |
<value></value> |
</param> |
<param> |
<key>grid_pos</key> |
<value></value> |
</param> |
<param> |
<key>notebook</key> |
<value></value> |
</param> |
<param> |
<key>trig_mode</key> |
<value>gr.gr_TRIG_MODE_AUTO</value> |
</param> |
<param> |
<key>y_axis_label</key> |
<value>Counts</value> |
</param> |
<param> |
<key>_coordinate</key> |
<value>(671, 292)</value> |
</param> |
<param> |
<key>_rotation</key> |
<value>0</value> |
</param> |
</block> |
<connection> |
<source_block_id>gr_file_source_0</source_block_id> |
<sink_block_id>gr_short_to_float_0</sink_block_id> |
<source_key>0</source_key> |
<sink_key>0</sink_key> |
</connection> |
<connection> |
<source_block_id>gr_short_to_float_0</source_block_id> |
<sink_block_id>wxgui_scopesink2_0</sink_block_id> |
<source_key>0</source_key> |
<sink_key>0</sink_key> |
</connection> |
</flow_graph> |
/Designs/Tools/Oscilloscope/SW/PC_side/gnuradio/setup_serial.sh |
---|
0,0 → 1,4 |
#!/bin/bash |
stty -F /dev/ttyUSB0 igncr -echo onocr icrnl speed 1000000 |
#stty -F /dev/ttyUSB0 3000000 |
Property changes: |
Added: svn:executable |
+* |
\ No newline at end of property |
/Designs/Tools/Oscilloscope/SW/PC_side/gnuradio/top_block.py |
---|
0,0 → 1,84 |
#!/usr/bin/env python |
################################################## |
# Gnuradio Python Flow Graph |
# Title: Top Block |
# Generated: Sat Nov 12 20:35:22 2011 |
################################################## |
from PyQt4 import Qt |
from gnuradio import eng_notation |
from gnuradio import gr |
from gnuradio.eng_option import eng_option |
from gnuradio.gr import firdes |
from gnuradio.qtgui import qtgui |
from optparse import OptionParser |
import sip |
import sys |
class top_block(gr.top_block, Qt.QWidget): |
def __init__(self): |
gr.top_block.__init__(self, "Top Block") |
Qt.QWidget.__init__(self) |
self.setWindowTitle("Top Block") |
self.setWindowIcon(Qt.QIcon.fromTheme('gnuradio-grc')) |
self.top_scroll_layout = Qt.QVBoxLayout() |
self.setLayout(self.top_scroll_layout) |
self.top_scroll = Qt.QScrollArea() |
self.top_scroll.setFrameStyle(Qt.QFrame.NoFrame) |
self.top_scroll_layout.addWidget(self.top_scroll) |
self.top_scroll.setWidgetResizable(True) |
self.top_widget = Qt.QWidget() |
self.top_scroll.setWidget(self.top_widget) |
self.top_layout = Qt.QVBoxLayout(self.top_widget) |
self.top_grid_layout = Qt.QGridLayout() |
self.top_layout.addLayout(self.top_grid_layout) |
################################################## |
# Variables |
################################################## |
self.samp_rate = samp_rate = 250000 |
################################################## |
# Blocks |
################################################## |
self.qtgui_sink_x_0 = qtgui.sink_f( |
1024, #fftsize |
firdes.WIN_BLACKMAN_hARRIS, #wintype |
0, #fc |
samp_rate, #bw |
"QT GUI Plot", #name |
True, #plotfreq |
True, #plotwaterfall |
True, #plottime |
True, #plotconst |
) |
self._qtgui_sink_x_0_win = sip.wrapinstance(self.qtgui_sink_x_0.pyqwidget(), Qt.QWidget) |
self.top_layout.addWidget(self._qtgui_sink_x_0_win) |
self.gr_short_to_float_0 = gr.short_to_float() |
self.gr_file_source_0 = gr.file_source(gr.sizeof_short*1, "/dev/ttyUSB0", True) |
################################################## |
# Connections |
################################################## |
self.connect((self.gr_file_source_0, 0), (self.gr_short_to_float_0, 0)) |
self.connect((self.gr_short_to_float_0, 0), (self.qtgui_sink_x_0, 0)) |
def get_samp_rate(self): |
return self.samp_rate |
def set_samp_rate(self, samp_rate): |
self.samp_rate = samp_rate |
self.qtgui_sink_x_0.set_frequency_range(0, self.samp_rate) |
if __name__ == '__main__': |
parser = OptionParser(option_class=eng_option, usage="%prog: [options]") |
(options, args) = parser.parse_args() |
qapp = Qt.QApplication(sys.argv) |
tb = top_block() |
tb.start() |
tb.show() |
qapp.exec_() |
tb.stop() |
Property changes: |
Added: svn:executable |
+* |
\ No newline at end of property |