Re: [Discuss-gnuradio] How make a *.t block

2015-05-06 Thread marco Ribero
Tahnk you very much for your reply. I've tried different time with templates,but I was not able to obtain a result(cmake and make finish errors,but I suppose that swig crash,because python scripts are not able to access to any block written in C,also blocks without template).. At the end I've solv

Re: [Discuss-gnuradio] How make a *.t block

2015-05-05 Thread Marcus Müller
Hi Marco, .t is for template, and at build time, the full implementations of these blocks are generated, and then compiled. gr_modtool doesn't support that. However, the magic involved is not really of the overly complex kind: * CMake writes a python program to do the substitutions * In the CMake

[Discuss-gnuradio] How make a *.t block

2015-05-05 Thread marco Ribero
Looking inside gnuradio,I've found blocks like divide_XX where relative files have an extension .t (like divide_XX_impl.cc.t )..in this way,is possible to manage different types for the same block. How is posssible to create blocks like them? is necessary to use particular parameters in gr_modtools