diff options
author | Ashwini | 2015-03-10 17:25:45 +0530 |
---|---|---|
committer | Ashwini | 2015-03-10 17:25:45 +0530 |
commit | d00a8dd67dcdc3650f344396425933424813baba (patch) | |
tree | 7840d8a5a5f4681c49971615cc5b83fe0e70cec7 /gr-input/grc/ramp_source.xml | |
parent | 92326794e39e1753f5fcb20715c57ea0f537752e (diff) | |
download | gnuradio-d00a8dd67dcdc3650f344396425933424813baba.tar.gz gnuradio-d00a8dd67dcdc3650f344396425933424813baba.tar.bz2 gnuradio-d00a8dd67dcdc3650f344396425933424813baba.zip |
Plot sink added
Diffstat (limited to 'gr-input/grc/ramp_source.xml')
-rw-r--r-- | gr-input/grc/ramp_source.xml | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/gr-input/grc/ramp_source.xml b/gr-input/grc/ramp_source.xml new file mode 100644 index 000000000..5cba29ae7 --- /dev/null +++ b/gr-input/grc/ramp_source.xml @@ -0,0 +1,87 @@ +<?xml version="1.0"?> +<!-- +################################################### +## +CSIM Block: +## all types, 1 output, 2 to inf inputs +################################################### + --> +<block> + <name>Ramp Input</name> + <key>ramp</key> + <category>Sources</category> + + <import>from gnuradio.input import ramp_hierblock as ramp_hierblock</import> + <make>ramp_hierblock.HierBlock($S,$H_Off,$W_Off) + </make> + <param> + <name>IO Type</name> + <key>type</key> + <type>enum</type> + <option><name>F32_F32</name><key>f32_f32</key></option> + <option><name>S32_S32</name><key>s32_s32</key></option> + <option><name>S16_S16</name><key>s16_s16</key></option> + <option><name>S8_S8</name><key>s8_s8</key></option> + </param> + <param> + <name>Num Inputs</name> + <key>num_inputs</key> + <value>1</value> + <type>int</type> + </param> + <param> + <name>Vec Length</name> + <key>vlen</key> + <value>1</value> + <type>int</type> + </param> + + <!-- + Desimulation options + --> + <param> + <name>slope of ramp</name> + <key>S</key> + <value>1</value> + <type>real</type> + </param> + + <param> + <name>height of offset</name> + <key>H_Off</key> + <value>0</value> + <type>real</type> + </param> + + <param> + <name>width of offset</name> + <key>W_Off</key> + <value>0</value> + <type>real</type> + </param> + + <!-- + Check if number of inputs are greater than 0, and if vector length + is greater than 0. + --> + <check>$num_inputs > 0</check> + <check>$vlen > 0</check> + + <source> + <name>out</name> + <type>$(str($type).split('_')[1])</type> + <vlen>$vlen</vlen> + </source> + <doc> + +Ramp Input block : + +Slope of ramp is the slope of ramp user wants to generate. +Height of Offset is the height of step user wants to generate as initial signal. +Width of Offset is the length upto which user wants to see the generated offset be. + +Default slope of ramp is 1 unit. +Default height and width of offset is 1 unit. +</doc> +</block> + |