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/controls_dsim.xml | 138 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 138 insertions(+) create mode 100644 gr-controls/grc/controls_dsim.xml (limited to 'gr-controls/grc/controls_dsim.xml') 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 + + + out + $(str($type).split('_')[1]) + $vlen + + + +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