From e9576e44ef8f0ad67d8cd8a4e025a0f8da0727f8 Mon Sep 17 00:00:00 2001 From: manojgudi Date: Mon, 7 Oct 2013 14:04:07 +0530 Subject: added gr-scimod block+CMake change | compiles fine --- gr-scigen/grc/CMakeLists.txt | 24 +++++++++++++ gr-scigen/grc/scigen.xml | 82 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 106 insertions(+) create mode 100644 gr-scigen/grc/CMakeLists.txt create mode 100644 gr-scigen/grc/scigen.xml (limited to 'gr-scigen/grc') diff --git a/gr-scigen/grc/CMakeLists.txt b/gr-scigen/grc/CMakeLists.txt new file mode 100644 index 000000000..ca8f65d18 --- /dev/null +++ b/gr-scigen/grc/CMakeLists.txt @@ -0,0 +1,24 @@ +# 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 + scigen.xml + DESTINATION ${GRC_BLOCKS_DIR} + COMPONENT "scigen_python" +) diff --git a/gr-scigen/grc/scigen.xml b/gr-scigen/grc/scigen.xml new file mode 100644 index 000000000..d8c7a25bf --- /dev/null +++ b/gr-scigen/grc/scigen.xml @@ -0,0 +1,82 @@ + + + + generic + scigen_generic + scigen + + import scigen + scigen.generic() +self.$(id).set_parameters($func_name, $window) + + + IO Type + type + enum + + + + + + + + + + + Num Inputs + num_inputs + 1 + int + + + + Vec Length + vlen + 1 + int + + + + Window + window + 1 + int + + + + Function Name + func_name + "" + string + + + + + $num_inputs > 0 + $vlen > 0 + + in + $(str($type).split('_')[0]) + $vlen + $num_inputs + + + out + $(str($type).split('_')[1]) + $vlen + + +Scilab Generic Block + +> Check if your scilab function requires multiple inputs +> Make sure you have same n_input_items when you have multiple inputs + + -- cgit