From e8b78233fa7f82d53d617af4a67666cb90b85585 Mon Sep 17 00:00:00 2001
From: manojgudi
Date: Tue, 8 Oct 2013 01:18:55 +0530
Subject: added gr-controls block | compiles fine
---
gr-controls/grc/CMakeLists.txt | 30 +++++++++
gr-controls/grc/controls_csim.xml | 132 ++++++++++++++++++++++++++++++++++++
gr-controls/grc/controls_dsim.xml | 138 ++++++++++++++++++++++++++++++++++++++
3 files changed, 300 insertions(+)
create mode 100644 gr-controls/grc/CMakeLists.txt
create mode 100644 gr-controls/grc/controls_csim.xml
create mode 100644 gr-controls/grc/controls_dsim.xml
(limited to 'gr-controls/grc')
diff --git a/gr-controls/grc/CMakeLists.txt b/gr-controls/grc/CMakeLists.txt
new file mode 100644
index 000000000..6433376fa
--- /dev/null
+++ b/gr-controls/grc/CMakeLists.txt
@@ -0,0 +1,30 @@
+# Copyright 2012 Free Software Foundation, Inc.
+#
+# This file is part of GNU Radio
+#
+# GNU Radio is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3, or (at your option)
+# any later version.
+#
+# GNU Radio is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GNU Radio; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 51 Franklin Street,
+# Boston, MA 02110-1301, USA.
+
+install(FILES
+ controls_dsim.xml
+ DESTINATION ${GRC_BLOCKS_DIR}
+ COMPONENT "controls_python"
+)
+
+install(FILES
+ controls_csim.xml
+ DESTINATION ${GRC_BLOCKS_DIR}
+ COMPONENT "controls_python"
+)
diff --git a/gr-controls/grc/controls_csim.xml b/gr-controls/grc/controls_csim.xml
new file mode 100644
index 000000000..0b2b38874
--- /dev/null
+++ b/gr-controls/grc/controls_csim.xml
@@ -0,0 +1,132 @@
+
+
+
+ csim
+ controls_csim
+ controls
+
+ from gnuradio import controls_csim
+ controls_csim.csim()
+self.$(id).set_parameters($P, $I, $D, $n0, $n1, $d0, $d1, $window)
+
+
+ IO Type
+ type
+ enum
+
+
+
+
+
+
+
+
+
+
+ Num Inputs
+ num_inputs
+ 1
+ int
+
+
+ Vec Length
+ vlen
+ 1
+ int
+
+
+
+
+ Controller Gain(P)
+ P
+ 0
+ real
+
+
+ Tau_I(I)
+ I
+ 0
+ real
+
+
+ Tau_D(D)
+ D
+ 0
+ real
+
+
+
+ n0
+ n0
+ 0
+ real
+
+
+
+ n1
+ n1
+ 0
+ real
+
+
+ d0
+ d0
+ 0
+ real
+
+
+
+ d1
+ d1
+ 0
+ real
+
+
+
+ window
+ window
+ 0
+ real
+
+
+
+
+ $num_inputs > 0
+ $vlen > 0
+
+ in
+ $(str($type).split('_')[0])
+ $vlen
+ $num_inputs
+
+
+
+
+Continuous time simulation
+
+out[i] = in0[i] + in1[i] + in2[i]
+
+The math block adds an arbitrary number of input streams element by element, \
+and produces and single output stream. Elements may be single numbers, \
+or vectors of numbers, depending upon the value of the vec length parameter.
+
+The preload parameter allows users to implement feedback loops with this math block. \
+For example, to enable a feedback of 1 on the 2nd port, set preload to [0, 0, 1]. \
+
+
+
diff --git a/gr-controls/grc/controls_dsim.xml b/gr-controls/grc/controls_dsim.xml
new file mode 100644
index 000000000..149f88186
--- /dev/null
+++ b/gr-controls/grc/controls_dsim.xml
@@ -0,0 +1,138 @@
+
+
+
+ dsim
+ controls_dsim
+ controls
+
+ from gnuradio import controls_dsim
+ controls_dsim.dsim()
+self.$(id).set_parameters($P, $I, $D, $n0, $n1, $step, $d0, $d1, $window)
+
+
+ IO Type
+ type
+ enum
+
+
+
+
+
+
+
+
+
+
+ Num Inputs
+ num_inputs
+ 1
+ int
+
+
+ Vec Length
+ vlen
+ 1
+ int
+
+
+
+
+ Controller Gain(P)
+ P
+ 0
+ real
+
+
+ Tau_I(I)
+ I
+ 0
+ real
+
+
+ Tau_D(D)
+ D
+ 0
+ real
+
+
+
+ n0
+ n0
+ 0
+ real
+
+
+
+ n1
+ n1
+ 0
+ real
+
+
+
+ step
+ step
+ 0
+ real
+
+
+
+ d0
+ d0
+ 0
+ real
+
+
+
+ d1
+ d1
+ 0
+ real
+
+
+
+ window
+ window
+ 0
+ real
+
+
+
+
+ $num_inputs > 0
+ $vlen > 0
+
+ in
+ $(str($type).split('_')[0])
+ $vlen
+ $num_inputs
+
+
+
+
+Discrete time simulation
+
+out[i] = in0[i] + in1[i] + in2[i]
+
+The math block adds an arbitrary number of input streams element by element, \
+and produces and single output stream. Elements may be single numbers, \
+or vectors of numbers, depending upon the value of the vec length parameter.
+
+The preload parameter allows users to implement feedback loops with this math block. \
+For example, to enable a feedback of 1 on the 2nd port, set preload to [0, 0, 1]. \
+
+
--
cgit