summaryrefslogtreecommitdiff
path: root/gr-input
diff options
context:
space:
mode:
Diffstat (limited to 'gr-input')
-rw-r--r--gr-input/grc/CMakeLists.txt24
-rw-r--r--gr-input/grc/Calculation_Calculator.xml25
-rw-r--r--gr-input/grc/Calculation_Roots.xml34
-rw-r--r--gr-input/grc/Transfer_function_Denominator.xml49
-rw-r--r--gr-input/grc/Transfer_function_Numerator.xml48
-rw-r--r--gr-input/grc/Transfer_function_Response.xml80
6 files changed, 256 insertions, 4 deletions
diff --git a/gr-input/grc/CMakeLists.txt b/gr-input/grc/CMakeLists.txt
index 10bc2d8ad..1b604feb2 100644
--- a/gr-input/grc/CMakeLists.txt
+++ b/gr-input/grc/CMakeLists.txt
@@ -30,26 +30,42 @@ install(FILES
)
install(FILES
- Transfer_Function_Numerator.xml
+ Transfer_function_Numerator.xml
DESTINATION ${GRC_BLOCKS_DIR}
COMPONENT "input_python"
)
+
+
install(FILES
- Transfer_Function_Denominator.xml
+ Transfer_function_Denominator.xml
DESTINATION ${GRC_BLOCKS_DIR}
COMPONENT "input_python"
)
+
install(FILES
- Calculation_Calculator.xml
+ Transfer_function_Denominator.xml
+ DESTINATION ${GRC_BLOCKS_DIR}
+ COMPONENT "input_python"
+)
+
+install(FILES
+ Transfer_function_Response.xml
+ DESTINATION ${GRC_BLOCKS_DIR}
+ COMPONENT "input_python"
+)
+
+install(FILES
+ Calculation_Roots.xml
DESTINATION ${GRC_BLOCKS_DIR}
COMPONENT "input_python"
)
install(FILES
- Transfer_Function_Transfer_Function.xml
+ Calculation_Calculator.xml
DESTINATION ${GRC_BLOCKS_DIR}
COMPONENT "input_python"
)
+
diff --git a/gr-input/grc/Calculation_Calculator.xml b/gr-input/grc/Calculation_Calculator.xml
index 4a29b896e..070712f57 100644
--- a/gr-input/grc/Calculation_Calculator.xml
+++ b/gr-input/grc/Calculation_Calculator.xml
@@ -37,4 +37,29 @@ self.$(id).set_parameters($Exp,$num_inputs)</make>
<name>out</name>
<type>float</type>
</source>
+
+<doc>
+
+Variable names must be a0,a1,a2 and so on.
+
+You can use maximum 10 variables per block.
+
+Example to add 5 variables:
+
+"a0+a1+a2+a3+a4"
+
+To perform Exponential(power) calculations on operators use the following:
+
+a0**a1
+
+To perform calculations like sqrt, log or exp use the following:
+
+sqrt(a4)
+
+log(a2)
+
+exp(a8)
+
+</doc>
+
</block>
diff --git a/gr-input/grc/Calculation_Roots.xml b/gr-input/grc/Calculation_Roots.xml
new file mode 100644
index 000000000..9871cad5a
--- /dev/null
+++ b/gr-input/grc/Calculation_Roots.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0"?>
+<block>
+ <name>Roots</name>
+ <key>Calculation_Roots</key>
+ <category>Calculation</category>
+ <import>import gnuradio.input.Roots</import>
+ <make>gnuradio.input.Roots.Roots($order)</make>
+
+<param>
+ <name>Order of transfer function</name>
+ <key>order</key>
+ <value>samp_rate</value>
+ <type>real</type>
+
+</param>
+
+ <sink>
+ <name>in</name>
+ <type>float</type>
+ </sink>
+<!--
+ <sink>
+ <name>in1</name>
+ <type>float</type>
+ <nports>4</nports>
+ </sink> -->
+
+
+ <source>
+ <name>out</name>
+ <type>float</type>
+ <nports>2*$order</nports>
+ </source>
+</block>
diff --git a/gr-input/grc/Transfer_function_Denominator.xml b/gr-input/grc/Transfer_function_Denominator.xml
new file mode 100644
index 000000000..2ba936580
--- /dev/null
+++ b/gr-input/grc/Transfer_function_Denominator.xml
@@ -0,0 +1,49 @@
+<?xml version="1.0"?>
+<block>
+ <name>Denominator</name>
+ <key>Transfer_function_Denominator</key>
+ <category>Transfer_function</category>
+ <import>import gnuradio.input.Denominator</import>
+ <make>gnuradio.input.Denominator.Denominator($num_inputs)</make>
+
+<param>
+<name>Order of Transfer Function</name>
+<key>num_inputs</key>
+<value>1</value>
+<type>int</type>
+</param>
+
+ <sink>
+ <name>in0</name>
+ <type>float</type>
+ <nports>1+$num_inputs</nports>
+ </sink>
+<!--
+ <sink>
+ <name>in1</name>
+ <type>float</type>
+ <nports>4</nports>
+ </sink> -->
+
+
+ <source>
+ <name>out</name>
+ <type>float</type>
+ </source>
+
+<doc>
+
+This will take the coefficient values for the Denominator.
+
+in00 = value of the coefficient of s^0
+
+in01 = value of the coefficient of s^1
+
+in02 = value of the coefficient of s^2
+
+and so on..
+
+</doc>
+
+
+</block>
diff --git a/gr-input/grc/Transfer_function_Numerator.xml b/gr-input/grc/Transfer_function_Numerator.xml
new file mode 100644
index 000000000..1ad34f316
--- /dev/null
+++ b/gr-input/grc/Transfer_function_Numerator.xml
@@ -0,0 +1,48 @@
+<?xml version="1.0"?>
+<block>
+ <name>Numerator</name>
+ <key>Transfer_function_Numerator</key>
+ <category>Transfer_function</category>
+ <import>import gnuradio.input.Numerator</import>
+ <make>gnuradio.input.Numerator.Numerator($num_inputs)</make>
+
+<param>
+<name>Order of Transfer Function</name>
+<key>num_inputs</key>
+<value>1</value>
+<type>int</type>
+</param>
+
+ <sink>
+ <name>in0</name>
+ <type>float</type>
+ <nports>1+$num_inputs</nports>
+ </sink>
+<!--
+ <sink>
+ <name>in1</name>
+ <type>float</type>
+ <nports>4</nports>
+ </sink> -->
+
+
+ <source>
+ <name>out</name>
+ <type>float</type>
+ </source>
+
+<doc>
+
+This will take the coefficient values for the numerator.
+
+in00 = value of the coefficient of s^0
+
+in01 = value of the coefficient of s^1
+
+in02 = value of the coefficient of s^2
+
+and so on..
+
+</doc>
+
+</block>
diff --git a/gr-input/grc/Transfer_function_Response.xml b/gr-input/grc/Transfer_function_Response.xml
new file mode 100644
index 000000000..cb08a4c2a
--- /dev/null
+++ b/gr-input/grc/Transfer_function_Response.xml
@@ -0,0 +1,80 @@
+<?xml version="1.0"?>
+<block>
+ <name>Response</name>
+ <key>Transfer_function_Response</key>
+ <category>Transfer_function</category>
+ <import>import gnuradio.input.Response</import>
+ <make>gnuradio.input.Response.Response($order,$itype,$tstart,$tstop,$tstep)</make>
+
+<param>
+ <name>Order of transfer function</name>
+ <key>order</key>
+ <value>1</value>
+ <type>real</type>
+
+</param>
+
+
+ <param>
+ <name>Input Types</name>
+ <key>itype</key>
+ <type>enum</type>
+ <option><name>Impulse</name><key>11</key></option>
+ <option><name>Step</name><key>12</key></option>
+ <option><name>Ramp</name><key>13</key></option>
+ </param>
+
+ <param>
+<name>tstart</name>
+<key>tstart</key>
+<value>0</value>
+<type>real</type>
+</param>
+
+<param>
+<name>tstop</name>
+<key>tstop</key>
+<value>0</value>
+<type>real</type>
+</param>
+
+<param>
+<name>tstep</name>
+<key>tstep</key>
+<value>0</value>
+<type>real</type>
+</param>
+
+
+ <sink>
+ <name>in</name>
+ <type>float</type>
+ <nports>2</nports>
+ </sink>
+<!--
+ <sink>
+ <name>in1</name>
+ <type>float</type>
+ <nports>4</nports>
+ </sink> -->
+
+
+ <source>
+ <name>out</name>
+ <type>float</type>
+ </source>
+
+<doc>
+
+This block can perfrom three types of system responses.
+
+Step, Ramp and Impulse.
+
+in0 = Numerator Equation
+
+in1 = Denominator Equation
+
+</doc>
+
+
+</block>