Re: [Discuss-gnuradio] how to write a block

2014-03-05 Thread Marcus Müller
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi BZS,

just use gr_modtool to generate a block of the same type
(sync/hier/general/...) and then modify the include/blockname.h to
inherit from the file you want.
You will also have to use
set(GR_REQUIRED_COMPONENTS RUNTIME BLOCKS)
in the top-directory CMakeLists.txt (if the base class is in
gnuradio::blocks, otherwise replace BLOCKS by that module).

Problem is, that inheriting from the in-tree classes won't help you
much in terms of functionality. Class structure of OOTs as well as
in-tree modules is usually (let's assume we're talking about a block
called bzt_block):

bzt_block:  Specified only in include/bzt_block.h. Most methods are
purely virtual. Does not do anything, but specifies an interface to
use, and an shared_pointer factory (make) that returns a shared
pointer to an instance of a subclass

bzt_block_impl: subclass of bzt_block. Declared in
lib/bzt_block_impl.h, defined in lib/bzt_block_imp.cc. Has all the
methods. This class is usually hidden from "outside the module", and
is only accessed as an instance of the bzt_block base class.


Greetings,
Marcus

On 05.03.2014 02:25, 猪猪头 wrote:
> hi, how to use the gr_modtoolto  write a block inherent from a
> in_tree_block,such as inherent from stream_to _vector BZS
> 
> 
> 
> ___ Discuss-gnuradio
> mailing list Discuss-gnuradio@gnu.org 
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTFuyDAAoJEBQ6EdjyzlHtOj4IALtvNH5kfPq7/4VNRdnyN36y
IO64/bkIpkYD0G3LlWIKw56eh584/wXVTyNwvY+jwhdF3kk/vdWp309Y099OzUOk
KCYJYKr7C6cK9XrjarHf1kgIu6cLJkyBgJ+k2Ni0IAFcB8ftlA2s8p4i4EjbD1d0
DkXt2kOj3NZk3PHnO9bXShGlB25XKNJlrR4kwrDW8Lio3vRKlgA8r0ud94eZnz2w
lcXRjzPrp5pSouQ6tz4E2iYmWye0vwR7fK2wbRYTDj3Cpzsa+j7MxsBHNGiOg3tB
hPaWHIs97WtgV+LNgkhgboNqN85UOyzOI5dRpPU+cJKcCmzZtG557plkYRSIMK4=
=mXdS
-END PGP SIGNATURE-

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] GSOC 14 project "Vector Network Analyzer"

2014-03-05 Thread MITUL VEKARIYA
Hi,
Thanks for reply.
I want to measure phase between reference signal and signal coming from
DUT(Device Under Test). It may possible that due to non-linear
characteristic of the device, there are changes in frequency and amplitude
of signal. In this case the method you mentioned will give correct phase?

Thanks
Mitul Vekariya


On Wed, Mar 5, 2014 at 7:46 AM, zhenhua han  wrote:

> Hi,
>
> > How can we measure phase between two sine waves using FPGA?
>
> Supposing the two sine waves have the same frequency.
> For two discrete complex signals, v1 and v2. we can compute the phase
> difference as follow.
>
> v3 = v1 * conj(v2)
> phase diff = arctan(imag(v3) , real(v3))
>
> (conj() means conjugate)
>
> Best,
> Zhenhua
>
>
>
> 2014-03-05 1:36 GMT+08:00 MITUL VEKARIYA <10bec...@nirmauni.ac.in>:
>
>> Hi
>> I am Mitul Vekariya  - final year student of
>> Electronics and Communication (ECE) branch at Nirma University, India.
>> I am very interested in mentioned 
>> project
>> .
>> I like digital signal processing, Embedded Linux, Digital Communication
>> and RF designing.
>> I didn't work on any USRP devices, but I have experience of FPGA
>> programming using VHDL and LabVIEW. I am familiar with SDR fundamentals and
>> GNURadio.
>>
>>
>> --
>>
>> Regarding Project, I've found one good document 
>> from
>> agilent.
>>
>> Summary of what I understood from that document:
>> 1) Using usrp b210 I can generate pure tone sine wave as test signal
>> 2) I will connect DUT ( device under test ) with external components to
>> the usrp  and measure transmitted and reflected signal
>> 3) The amplitude and phase of the received signal will lead to different
>> parameters
>>
>> How can we measure phase between two sine waves using FPGA? The method of
>> zero crossing is advised or not?
>> Please give you inputs on this project.
>>
>> Thanks
>> Mitul Vekariya
>> Institute of Technology
>> Nirma University
>> India
>>
>> ___
>> Discuss-gnuradio mailing list
>> Discuss-gnuradio@gnu.org
>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>
>>
>
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] GSOC 14 project "Vector Network Analyzer"

2014-03-05 Thread zhenhua han
Taking the average of all datas may works :)
Airprobe uses this method to calculate the phase difference.

Best,
Zhenhua


2014-03-05 19:09 GMT+08:00 MITUL VEKARIYA <10bec...@nirmauni.ac.in>:

> Hi,
> Thanks for reply.
> I want to measure phase between reference signal and signal coming from
> DUT(Device Under Test). It may possible that due to non-linear
> characteristic of the device, there are changes in frequency and amplitude
> of signal. In this case the method you mentioned will give correct phase?
>
> Thanks
> Mitul Vekariya
>
>
> On Wed, Mar 5, 2014 at 7:46 AM, zhenhua han  wrote:
>
>> Hi,
>>
>> > How can we measure phase between two sine waves using FPGA?
>>
>> Supposing the two sine waves have the same frequency.
>> For two discrete complex signals, v1 and v2. we can compute the phase
>> difference as follow.
>>
>> v3 = v1 * conj(v2)
>> phase diff = arctan(imag(v3) , real(v3))
>>
>> (conj() means conjugate)
>>
>> Best,
>> Zhenhua
>>
>>
>>
>> 2014-03-05 1:36 GMT+08:00 MITUL VEKARIYA <10bec...@nirmauni.ac.in>:
>>
>>> Hi
>>> I am Mitul Vekariya  - final year student
>>> of Electronics and Communication (ECE) branch at Nirma University, India.
>>> I am very interested in mentioned 
>>> project
>>> .
>>> I like digital signal processing, Embedded Linux, Digital Communication
>>> and RF designing.
>>> I didn't work on any USRP devices, but I have experience of FPGA
>>> programming using VHDL and LabVIEW. I am familiar with SDR fundamentals and
>>> GNURadio.
>>>
>>>
>>> --
>>>
>>> Regarding Project, I've found one good document 
>>> from
>>> agilent.
>>>
>>> Summary of what I understood from that document:
>>> 1) Using usrp b210 I can generate pure tone sine wave as test signal
>>> 2) I will connect DUT ( device under test ) with external components to
>>> the usrp  and measure transmitted and reflected signal
>>> 3) The amplitude and phase of the received signal will lead to different
>>> parameters
>>>
>>> How can we measure phase between two sine waves using FPGA? The method
>>> of zero crossing is advised or not?
>>> Please give you inputs on this project.
>>>
>>> Thanks
>>> Mitul Vekariya
>>> Institute of Technology
>>> Nirma University
>>> India
>>>
>>> ___
>>> Discuss-gnuradio mailing list
>>> Discuss-gnuradio@gnu.org
>>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>>
>>>
>>
>
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Error in "Constellation Decoder" block

2014-03-05 Thread Azza Ben Mosbah
Tom,


Thank you for the help. But, even that didn't work.

I tried a different approach. I configured the "Constellation Object" block
with the* symbol map *and the *constellation points*. Then, I called it in
the argument of the "Constellation Decoder" block. And it worked.

I am still wondering what is the right way to define a*
'digital_constellation_sptr'
*type in the "Constellation Decoder" argument without passing by the
"Constellation
Object" block.


Regards,
Azza




On Tue, Mar 4, 2014 at 5:16 PM, Tom Rondeau  wrote:

> On Tue, Mar 4, 2014 at 4:17 PM, Azza Ben Mosbah
>  wrote:
> > Hi All,
> >
> > I am manipulating GNU Radio Companion.
> > While using the "Constellation Decoder" block, I have put
> > digital.constellation_qpsk as a "Constellation Object" argument. But, I
> have
> > found an error when I have executed the flow graph:
> >
> > Traceback (most recent call last):
> >   File "/users/anb10/metrics/error_rate.py", line 342, in 
> > tb = error_rate()
> >   File "/users/anb10/metrics/error_rate.py", line 225, in __init__
> > self.digital_constellation_decoder_cb_0 =
> > digital.constellation_decoder_cb(digital.constellation_qpsk)
> >   File
> > "/usr/lib64/python2.6/site-packages/gnuradio/digital/digital_swig.py",
> line
> > 3096, in constellation_decoder_cb
> > return _digital_swig.constellation_decoder_cb(*args, **kwargs)
> > TypeError: in method 'constellation_decoder_cb', argument 1 of type
> > 'digital_constellation_sptr'
> >
> > I don't know what went wrong. I have even tried
> > digital.psk.psk_constellation(m=4,mod_code='gray'),
> > digital.constellation_8psk and
> > digital.psk.psk_constellation(m=8,mod_code='gray') as a "Constellation
> > Object" argument.
> >
> > So, what is the proper way to define the argument (Constellation Object)
> in
> > the "Constellation Decoder" block?
> >
> > I hope you can give me some ideas. Any help is appreciated. Thank you.
> >
> > Regards,
> > Azza
>
> Azza,
>
> Check out the documentation page:
>
> http://gnuradio.org/doc/doxygen/classgr_1_1digital_1_1constellation__decoder__cb.html
>
> It's not entirely clear (unless you know to look for it). You want to
> pass the constellation object using the base() parameter to get to the
> parent class.  Basically, you'd call it:
>
> digital.constellation_decoder_cb(digital.constellation_qpsk.base())
>
> Tom
>
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] Not understanding the HRPT receiver

2014-03-05 Thread Pablo Fernández Alonso
Hi,

I downloaded the usrp_rx_hrpt receiver from gr-noaa repository and I don't
understand the scheme. If someone could help me I would really appreciate
it.

Regards,

Pablo.
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] SDR FM Transmitters

2014-03-05 Thread Stefan Gofferje
Hi,

recently, there's lot's of low power FM transmitters on eBay. Looks like
there was some change in the US allowing low power stations...
Anyways, I now stumbled over an SDR version
(http://www.ebay.com/itm/261391237801) and was wondering if anybody had
a look at one of those already or maybe even got one to work with GR.
One of those with a Jack- or icecast-based input interface would make an
awesome low power - low cost school, university or neighborhood FM station.

-S

-- 
 (o_   Stefan Gofferje| SCLT, MCP, CCSA
 //\   Reg'd Linux User #247167   | VCP #2263
 V_/_  Heckler & Koch - the original point and click interface




smime.p7s
Description: S/MIME Cryptographic Signature
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] GSoC - Integration of GNU Radio into Eclipse

2014-03-05 Thread Кирилл Снежко
Hi everybody!

My name is Kirill Snezhko and i am a student of Bauman Moscow State
Technical University and an exchange student in Hochschule Bonn-Rhein-Sieg.
I am very interested in this topic - Integration of GNU Radio into Eclipse (
http://gnuradio.org/redmine/projects/gnuradio/wiki/GSoC#Integration-of-GNU-Radio-into-Eclipse-first-proposed-2012
).

I am comfortable in programming using Java, Python, C/C++.
For beginners it is not very easy to start using GNU Radio. I would like to
change this opinion.

Can anyone please tell me how to start working on this?

Thank you,
Kirill Snezhko
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] GSoC - Integration of GNU Radio into Eclipse

2014-03-05 Thread Martin Braun

On 05.03.2014 16:42, Кирилл Снежко wrote:

Hi everybody!

My name is Kirill Snezhko and i am a student of Bauman Moscow State
Technical University and an exchange student in Hochschule
Bonn-Rhein-Sieg. I am very interested in this topic - Integration of
GNU Radio into
Eclipse(http://gnuradio.org/redmine/projects/gnuradio/wiki/GSoC#Integration-of-GNU-Radio-into-Eclipse-first-proposed-2012).

 I am comfortable in programming using Java, Python, C/C++. For
beginners it is not very easy to start using GNU Radio. I would like
 to change this opinion.

Can anyone please tell me how to start working on this?


Kirill,

you chose a topic we suggested two years ago. However, I like your idea 
and your wish to make GNU Radio more accessible.


As with all the other students, head to the wiki and read all the wiki 
pages on GSoC. You then need to start working on a proposal (see the 
wiki). I'm assuming you know how to work on Eclipse -- because here, few 
people do.


Post your proposal to this thread once your done. We'll give feedback.

As written on the wiki, we can't promise finding a mentor for this 
project. It depends on your proposal, really.


M

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] GSOC 14 project "Vector Network Analyzer"

2014-03-05 Thread Martin Braun

On 04.03.2014 18:36, MITUL VEKARIYA wrote:

Hi
I am Mitul Vekariya  - final year student of
Electronics and Communication (ECE) branch at Nirma University, India.
I am very interested in mentioned project
.
I like digital signal processing, Embedded Linux, Digital Communication
and RF designing.
I didn't work on any USRP devices, but I have experience of FPGA
programming using VHDL and LabVIEW. I am familiar with SDR fundamentals
and GNURadio.


Mitul,

look at the emails we sent out to the other GSoC applicants (go to the 
mailing list archive if necessary). You'll need to start working on a 
proposal. Also, for this project, you'll need to make sure we know you 
know what you're doing from a signal processing perspective.


M



--

Regarding Project, I've found one good document
from
agilent.

Summary of what I understood from that document:
1) Using usrp b210 I can generate pure tone sine wave as test signal
2) I will connect DUT ( device under test ) with external components to
the usrp  and measure transmitted and reflected signal
3) The amplitude and phase of the received signal will lead to different
parameters

How can we measure phase between two sine waves using FPGA? The method
of zero crossing is advised or not?
Please give you inputs on this project.

Thanks
Mitul Vekariya
Institute of Technology
Nirma University
India


___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio




___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Rayleigh fading simulator

2014-03-05 Thread Richard Clarke
Hi Nasi,

when I checked the fading models supplied in GNU Radio 3.7 the other week
they seemed to be generating nasty glitches in their output. You could
instead take a look at 'my' custom block for doing simple single path
configurable doppler Rayleigh fading. The output of this has been
statistically validated against the theoretical Rayleigh distribution. I
can provide further details of the validations that have been done if
required. There is a version of the block for both GNURadio 3.6 and 3.7
API's. This block works fine when instantiated singly, however if you try
and build a multipath fading model out of it by instantiating more than one
of these blocks (with delays) at the python level then the whole thing
tends to seg fault, for as yet undetermined reasons.

You are welcome to give it a try however.

Here is the link to the GNU Radio 3.7 version of the block,
https://github.com/hawk2050/gr-rccBlocks

Feedback welcome

Cheers
Richard


On 3 March 2014 06:25, Nasi  wrote:

> Martin,
>
> it is so simple, I try to explain again:
>
> my question is how you add Doppler to the channel (the code)?
>
> Different people add it in a different way like using FIR or IIR filters.
> So, I am wondering if you used IIR filter or FIR. If you know of course,
> how you coded it?
>
>
>
> Воскресенье, 2 марта 2014, 15:26 +01:00 от Martin Braun <
> martin.br...@ettus.com>:
>
>   On 03/01/2014 04:35 PM, Nasi wrote:
> > Helo all,
> >
> > I need your help for simulation of the Rayleigh fading.
> > I know that I can use GNURADIO channel models, but I need to know how
> > they simulated.
> > For example I am looking into the 'fading_model_impl.cc' in channel
> > models of GNURADIO.
> > Can someone tell me how this is simulated?
>
> Can you specify what you want to do? I don't understand the question.
> If you connect this block to your signal, it will "simulate" the channel.
>
> > I heard some people also developed it on their own, but I am not sure if
> > that is available and supported by you.
>
> Developed their own what? Channels?
> You can configure these channels to different types of scenarios.
>
> M
>
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>
>
> --
> NE
>
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>


-- 
*SCOTT ADAMS: Normal people believe that if it ain't broke, don't fix it.
Engineers believe that if it ain't broke, it doesn't have enough features
yet.*
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] Problem with undefined symbol in new block created by gr_modtool in 3.7.2

2014-03-05 Thread George Sklivanitis
Hello all,

I am dealing with the problem of undefined symbol when trying to execute a
python script for testing my new custom block created in GNU Radio 3.7.2.
I used gr_modtool for creating the new block and also followed the
instructions posted at

http://gnuradio.org/redmine/projects/gnuradio/wiki/OutOfTreeModulesConfig

for correctly configuring it but the problem still holds.

Any ideas?

Thanks,
-George

-- 
Sklivanitis Georgios
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Summit on SDR : Update

2014-03-05 Thread sumitstop
Update : 

1. I will be doing demonstrations of FunCube Dongle with GNU Radio and some
other windows based applications. You can come and watch before purchasing
this little demon :) 

2. Demonstration with some basic applications of USRP and GNU Radio





--
View this message in context: 
http://gnuradio.4.n7.nabble.com/Summit-on-SDR-tp46573p46718.html
Sent from the GnuRadio mailing list archive at Nabble.com.

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Problem with undefined symbol in new block created by gr_modtool in 3.7.2

2014-03-05 Thread Michael Berman
What is the "undefined symbol"?  This could be something not linked
properly inside the CMake files.

Michael


On Wed, Mar 5, 2014 at 11:57 AM, George Sklivanitis <
george.sklivani...@gmail.com> wrote:

> Hello all,
>
> I am dealing with the problem of undefined symbol when trying to execute a
> python script for testing my new custom block created in GNU Radio 3.7.2.
> I used gr_modtool for creating the new block and also followed the
> instructions posted at
>
> http://gnuradio.org/redmine/projects/gnuradio/wiki/OutOfTreeModulesConfig
>
> for correctly configuring it but the problem still holds.
>
> Any ideas?
>
> Thanks,
> -George
>
> --
> Sklivanitis Georgios
>
>
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] Creating OOT module

2014-03-05 Thread Арсений Соболев

Hello everyone!

Met a problem, cannot create OOT module. Red manuals, wiki, howto... 

In wiki says, that gr_modtool is included in distribut of GNURadio, but I have 
not found it there. I download it from ftp, but, again, problem. I do 
everything as said in wiki. 

gr_modtool newmod howto - works without problem,  creating  derectory and 
files. Change derectory to created, as said in wiki, then:

gr-howto % gr_modtool add -t general square_ff - here is problem. It says, that 
gr_modtool can`t finde  GNURadio files.

Using last version of GNURadio, Ubuntu 12.04. Everything do as said in manuals.

Is wiki about OOT correct? 

Only gr_modtool allows to create new OOT module?

Sorry for such formulation of a questions, don`t now, how to ask it other way.

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Problem with undefined symbol in new block created by gr_modtool in 3.7.2

2014-03-05 Thread Marcus Müller
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Hi George,
This is a little unspecific. Most probably you have a problem similar to the 
fftw- related problem of activecat, but that's only guessing... Please heed 
http://gnuradio.org/redmine/projects/gnuradio/wiki/ReportingErrors when 
reporting errors.
Greetings,
Marcus

On March 5, 2014 8:57:46 PM CET, George Sklivanitis 
 wrote:
>Hello all,
>
>I am dealing with the problem of undefined symbol when trying to
>execute a
>python script for testing my new custom block created in GNU Radio
>3.7.2.
>I used gr_modtool for creating the new block and also followed the
>instructions posted at
>
>http://gnuradio.org/redmine/projects/gnuradio/wiki/OutOfTreeModulesConfig
>
>for correctly configuring it but the problem still holds.
>
>Any ideas?
>
>Thanks,
>-George
>
>--
>Sklivanitis Georgios
>
>
>
>
>___
>Discuss-gnuradio mailing list
>Discuss-gnuradio@gnu.org
>https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

- --
Sent from my Android device with K-9 Mail. Please excuse my brevity.
-BEGIN PGP SIGNATURE-
Version: APG v1.0.9

iQFABAEBCAAqBQJTF4c7IxxNYXJjdXMgTfxsbGVyIDxtYXJjdXNAaG9zdGFsaWEu
ZGU+AAoJEBKNLRrpJvfojQoH/2a609iWLTsywtozQ+FcZkuQT6uCy13vX3n4b5k3
rTvy9QP3uHuHQkiRZHDbZoJ+mZ9kFOf6NeG20RGdf8i4yCB1AZ8F7uvvdi7CebXT
sRQxoQE+8Vz5VS+faAStAOK3+tArdRGZOU2v3gTYXGCvATaeM3A+rxsNQ7LKPwM8
sI5KZ3xgvgikkObbFuo00MOaLA7tHzMttXxWjU5riXann1l1eOyGIzM1j0XO1gAD
imofs0DfXHB4cE0Gi43E1gjjeqEW034dLZAS7w/c/Gq85Z0Ni+z1a35kS5UYvYhQ
ndeEMqrLQv4ghCRnHR93ob+8YRlqMedVjDDeKQdjEh0D2jY=
=27ny
-END PGP SIGNATURE-


___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Problem with undefined symbol in new block created by gr_modtool in 3.7.2

2014-03-05 Thread Nowlan, Sean
The first place I'd look is in your_block.h. Did you remember to declare any 
public member functions to be pure virtual in that file, and then declare your 
(non-virtual) functions in your_block_impl.h? If you forgot to declare pure 
virtual functions, i.e., "virtual return_type your_block(args_list) = 0;" in 
your_block.h, it will compile but you will get the undefined symbol at runtime.

This probably a common pitfall and it might be worth making a note in the wiki 
for OutOfTreeModules. I'll add that.

Architects of gr_modtool... can you add an autogen comment in *.h files 
reminding the user to declare pure virtual functions? I think users who don't 
deeply understand OO and particularly its  C++ syntax would benefit from this 
reminder. I think it's a common paradigm to use other examples to fill in the 
"guts" of gr_modtool generated C++ code, but things like this are easy to miss.

Sean

-Original Message-
From: discuss-gnuradio-bounces+sean.nowlan=gtri.gatech@gnu.org 
[mailto:discuss-gnuradio-bounces+sean.nowlan=gtri.gatech@gnu.org] On Behalf 
Of Marcus Müller
Sent: Wednesday, March 05, 2014 3:21 PM
To: George Sklivanitis; GNURadio Discussion List
Subject: Re: [Discuss-gnuradio] Problem with undefined symbol in new block 
created by gr_modtool in 3.7.2

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Hi George,
This is a little unspecific. Most probably you have a problem similar to the 
fftw- related problem of activecat, but that's only guessing... Please heed 
http://gnuradio.org/redmine/projects/gnuradio/wiki/ReportingErrors when 
reporting errors.
Greetings,
Marcus

On March 5, 2014 8:57:46 PM CET, George Sklivanitis 
 wrote:
>Hello all,
>
>I am dealing with the problem of undefined symbol when trying to 
>execute a python script for testing my new custom block created in GNU 
>Radio 3.7.2.
>I used gr_modtool for creating the new block and also followed the 
>instructions posted at
>
>http://gnuradio.org/redmine/projects/gnuradio/wiki/OutOfTreeModulesConf
>ig
>
>for correctly configuring it but the problem still holds.
>
>Any ideas?
>
>Thanks,
>-George
>
>--
>Sklivanitis Georgios
>
>
>---
>-
>
>___
>Discuss-gnuradio mailing list
>Discuss-gnuradio@gnu.org
>https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

- --
Sent from my Android device with K-9 Mail. Please excuse my brevity.
-BEGIN PGP SIGNATURE-
Version: APG v1.0.9

iQFABAEBCAAqBQJTF4c7IxxNYXJjdXMgTfxsbGVyIDxtYXJjdXNAaG9zdGFsaWEu
ZGU+AAoJEBKNLRrpJvfojQoH/2a609iWLTsywtozQ+FcZkuQT6uCy13vX3n4b5k3
rTvy9QP3uHuHQkiRZHDbZoJ+mZ9kFOf6NeG20RGdf8i4yCB1AZ8F7uvvdi7CebXT
sRQxoQE+8Vz5VS+faAStAOK3+tArdRGZOU2v3gTYXGCvATaeM3A+rxsNQ7LKPwM8
sI5KZ3xgvgikkObbFuo00MOaLA7tHzMttXxWjU5riXann1l1eOyGIzM1j0XO1gAD
imofs0DfXHB4cE0Gi43E1gjjeqEW034dLZAS7w/c/Gq85Z0Ni+z1a35kS5UYvYhQ
ndeEMqrLQv4ghCRnHR93ob+8YRlqMedVjDDeKQdjEh0D2jY=
=27ny
-END PGP SIGNATURE-


___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Problem with undefined symbol in new block created by gr_modtool in 3.7.2

2014-03-05 Thread Nowlan, Sean
Ah, nevermind about the wiki edit. The use of pure virtual functions is already 
discussed in 
http://gnuradio.org/redmine/projects/gnuradio/wiki/BlocksCodingGuide . Still, 
the gr_modtool addition may be useful.


-Original Message-
From: discuss-gnuradio-bounces+sean.nowlan=gtri.gatech@gnu.org 
[mailto:discuss-gnuradio-bounces+sean.nowlan=gtri.gatech@gnu.org] On Behalf 
Of Nowlan, Sean
Sent: Wednesday, March 05, 2014 4:45 PM
To: Marcus Müller; George Sklivanitis; GNURadio Discussion List
Subject: Re: [Discuss-gnuradio] Problem with undefined symbol in new block 
created by gr_modtool in 3.7.2

The first place I'd look is in your_block.h. Did you remember to declare any 
public member functions to be pure virtual in that file, and then declare your 
(non-virtual) functions in your_block_impl.h? If you forgot to declare pure 
virtual functions, i.e., "virtual return_type your_block(args_list) = 0;" in 
your_block.h, it will compile but you will get the undefined symbol at runtime.

This probably a common pitfall and it might be worth making a note in the wiki 
for OutOfTreeModules. I'll add that.

Architects of gr_modtool... can you add an autogen comment in *.h files 
reminding the user to declare pure virtual functions? I think users who don't 
deeply understand OO and particularly its  C++ syntax would benefit from this 
reminder. I think it's a common paradigm to use other examples to fill in the 
"guts" of gr_modtool generated C++ code, but things like this are easy to miss.

Sean

-Original Message-
From: discuss-gnuradio-bounces+sean.nowlan=gtri.gatech@gnu.org 
[mailto:discuss-gnuradio-bounces+sean.nowlan=gtri.gatech@gnu.org] On Behalf 
Of Marcus Müller
Sent: Wednesday, March 05, 2014 3:21 PM
To: George Sklivanitis; GNURadio Discussion List
Subject: Re: [Discuss-gnuradio] Problem with undefined symbol in new block 
created by gr_modtool in 3.7.2

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Hi George,
This is a little unspecific. Most probably you have a problem similar to the 
fftw- related problem of activecat, but that's only guessing... Please heed 
http://gnuradio.org/redmine/projects/gnuradio/wiki/ReportingErrors when 
reporting errors.
Greetings,
Marcus

On March 5, 2014 8:57:46 PM CET, George Sklivanitis 
 wrote:
>Hello all,
>
>I am dealing with the problem of undefined symbol when trying to 
>execute a python script for testing my new custom block created in GNU 
>Radio 3.7.2.
>I used gr_modtool for creating the new block and also followed the 
>instructions posted at
>
>http://gnuradio.org/redmine/projects/gnuradio/wiki/OutOfTreeModulesConf
>ig
>
>for correctly configuring it but the problem still holds.
>
>Any ideas?
>
>Thanks,
>-George
>
>--
>Sklivanitis Georgios
>
>
>---
>-
>
>___
>Discuss-gnuradio mailing list
>Discuss-gnuradio@gnu.org
>https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

- --
Sent from my Android device with K-9 Mail. Please excuse my brevity.
-BEGIN PGP SIGNATURE-
Version: APG v1.0.9

iQFABAEBCAAqBQJTF4c7IxxNYXJjdXMgTfxsbGVyIDxtYXJjdXNAaG9zdGFsaWEu
ZGU+AAoJEBKNLRrpJvfojQoH/2a609iWLTsywtozQ+FcZkuQT6uCy13vX3n4b5k3
rTvy9QP3uHuHQkiRZHDbZoJ+mZ9kFOf6NeG20RGdf8i4yCB1AZ8F7uvvdi7CebXT
sRQxoQE+8Vz5VS+faAStAOK3+tArdRGZOU2v3gTYXGCvATaeM3A+rxsNQ7LKPwM8
sI5KZ3xgvgikkObbFuo00MOaLA7tHzMttXxWjU5riXann1l1eOyGIzM1j0XO1gAD
imofs0DfXHB4cE0Gi43E1gjjeqEW034dLZAS7w/c/Gq85Z0Ni+z1a35kS5UYvYhQ
ndeEMqrLQv4ghCRnHR93ob+8YRlqMedVjDDeKQdjEh0D2jY=
=27ny
-END PGP SIGNATURE-


___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] gr-audio OSX fixes test branch (take 3)

2014-03-05 Thread Michael Dickens
I just pushed the latest, and, maybe, final, changes to my gr-audio OSX test 
branch:
< https://github.com/michaelld/gnuradio/tree/fix_gr_audio_osx >

The latest changes move the osx_impl functions into gr::audio::osx, use them 
correctly, and install the osx_impl.h header (with the other audio headers) but 
iff OSX audio is enabled.  If OSX audio is not enabled, then this header will 
not be installed (but the other audio headers still will be) and gr::audio:osx 
will not exist or be populated.  It is up to the using project to verify that 
 exists ...

Patch file is at < 
https://dl.dropboxusercontent.com/u/16655336/gr-audio-osx-wip-2014-03-05.diff > 
for those wanting to try it out with directions from prior emails. - MLD


___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Problem with undefined symbol in new block created by gr_modtool in 3.7.2

2014-03-05 Thread George
Thanks everyone. 
In order to be more specific regarding the future readers of this post, I am 
using Ubuntu 12.04 and GNU Radio v3.7.2. 
I am using the embedded gr_modtool in order to create a custom signal 
processing block from scratch. 
My block does not use FFT.
Finally, the problem was solved by just ignoring the implementation header file 
and only include the public header file in the /include/nameofBlock .

Thanks,
-George
-
George Sklivanitis


On Mar 5, 2014, at 4:49 PM, Nowlan, Sean  wrote:

> Ah, nevermind about the wiki edit. The use of pure virtual functions is 
> already discussed in 
> http://gnuradio.org/redmine/projects/gnuradio/wiki/BlocksCodingGuide . Still, 
> the gr_modtool addition may be useful.
> 
> 
> -Original Message-
> From: discuss-gnuradio-bounces+sean.nowlan=gtri.gatech@gnu.org 
> [mailto:discuss-gnuradio-bounces+sean.nowlan=gtri.gatech@gnu.org] On 
> Behalf Of Nowlan, Sean
> Sent: Wednesday, March 05, 2014 4:45 PM
> To: Marcus Müller; George Sklivanitis; GNURadio Discussion List
> Subject: Re: [Discuss-gnuradio] Problem with undefined symbol in new block 
> created by gr_modtool in 3.7.2
> 
> The first place I'd look is in your_block.h. Did you remember to declare any 
> public member functions to be pure virtual in that file, and then declare 
> your (non-virtual) functions in your_block_impl.h? If you forgot to declare 
> pure virtual functions, i.e., "virtual return_type your_block(args_list) = 
> 0;" in your_block.h, it will compile but you will get the undefined symbol at 
> runtime.
> 
> This probably a common pitfall and it might be worth making a note in the 
> wiki for OutOfTreeModules. I'll add that.
> 
> Architects of gr_modtool... can you add an autogen comment in *.h files 
> reminding the user to declare pure virtual functions? I think users who don't 
> deeply understand OO and particularly its  C++ syntax would benefit from this 
> reminder. I think it's a common paradigm to use other examples to fill in the 
> "guts" of gr_modtool generated C++ code, but things like this are easy to 
> miss.
> 
> Sean
> 
> -Original Message-
> From: discuss-gnuradio-bounces+sean.nowlan=gtri.gatech@gnu.org 
> [mailto:discuss-gnuradio-bounces+sean.nowlan=gtri.gatech@gnu.org] On 
> Behalf Of Marcus Müller
> Sent: Wednesday, March 05, 2014 3:21 PM
> To: George Sklivanitis; GNURadio Discussion List
> Subject: Re: [Discuss-gnuradio] Problem with undefined symbol in new block 
> created by gr_modtool in 3.7.2
> 
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
> 
> Hi George,
> This is a little unspecific. Most probably you have a problem similar to the 
> fftw- related problem of activecat, but that's only guessing... Please heed 
> http://gnuradio.org/redmine/projects/gnuradio/wiki/ReportingErrors when 
> reporting errors.
> Greetings,
> Marcus
> 
> On March 5, 2014 8:57:46 PM CET, George Sklivanitis 
>  wrote:
>> Hello all,
>> 
>> I am dealing with the problem of undefined symbol when trying to 
>> execute a python script for testing my new custom block created in GNU 
>> Radio 3.7.2.
>> I used gr_modtool for creating the new block and also followed the 
>> instructions posted at
>> 
>> http://gnuradio.org/redmine/projects/gnuradio/wiki/OutOfTreeModulesConf
>> ig
>> 
>> for correctly configuring it but the problem still holds.
>> 
>> Any ideas?
>> 
>> Thanks,
>> -George
>> 
>> --
>> Sklivanitis Georgios
>> 
>> 
>> ---
>> -
>> 
>> ___
>> Discuss-gnuradio mailing list
>> Discuss-gnuradio@gnu.org
>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 
> - --
> Sent from my Android device with K-9 Mail. Please excuse my brevity.
> -BEGIN PGP SIGNATURE-
> Version: APG v1.0.9
> 
> iQFABAEBCAAqBQJTF4c7IxxNYXJjdXMgTfxsbGVyIDxtYXJjdXNAaG9zdGFsaWEu
> ZGU+AAoJEBKNLRrpJvfojQoH/2a609iWLTsywtozQ+FcZkuQT6uCy13vX3n4b5k3
> rTvy9QP3uHuHQkiRZHDbZoJ+mZ9kFOf6NeG20RGdf8i4yCB1AZ8F7uvvdi7CebXT
> sRQxoQE+8Vz5VS+faAStAOK3+tArdRGZOU2v3gTYXGCvATaeM3A+rxsNQ7LKPwM8
> sI5KZ3xgvgikkObbFuo00MOaLA7tHzMttXxWjU5riXann1l1eOyGIzM1j0XO1gAD
> imofs0DfXHB4cE0Gi43E1gjjeqEW034dLZAS7w/c/Gq85Z0Ni+z1a35kS5UYvYhQ
> ndeEMqrLQv4ghCRnHR93ob+8YRlqMedVjDDeKQdjEh0D2jY=
> =27ny
> -END PGP SIGNATURE-
> 
> 
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] gr-audio OSX fixes test branch (take 3)

2014-03-05 Thread Johnathan Corgan
On 03/05/2014 01:54 PM, Michael Dickens wrote:
> I just pushed the latest, and, maybe, final, changes to my gr-audio
> OSX test branch: <
> https://github.com/michaelld/gnuradio/tree/fix_gr_audio_osx >

This is great stuff.  We're ready to cut a 3.7.2.2 and 3.7.3 release, as
well as a new DVD based on it, so I'm happy to hear it is almost done.

-- 
Johnathan Corgan, Corgan Labs
SDR Training and Development Services
http://corganlabs.com
<>

signature.asc
Description: OpenPGP digital signature
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] [VOLK] Working Group reminder and invitation

2014-03-05 Thread West, Nathan
On Tue, Mar 4, 2014 at 1:58 PM, West, Nathan
 wrote:
> All,
>
> Based on the G+ responses there should be a pretty good turn out for
> the VOLK working group call tomorrow. This is partially a reminder (in
> case those G+ reminders aren't enough) and an invitation for GSoC
> students interested in projects related to VOLK in any way.
>
> On the agenda I've got time at the very *end* of the call to discuss
> GSoC related things.
>
> After the call I'll post a link to meeting notes.
>
> Nathan
>
> Event link: https://plus.google.com/u/0/events/ch3jrjcvp7mdiqelpismfieg3n0

Meeting notes (with link to video) are at
http://gnuradio.org/redmine/projects/gnuradio/wiki/Call20140306

Nathan

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] gr_modtool

2014-03-05 Thread ??????????????
hi??
 i use gr_modtool to add  a new block in an exist module,it apper this :


No GNU Radio module found in the given directory. Quitting.


what shoud i do to solve it 
thanks,
BZS___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] self.set_min_noutput_items() is not a valid python command in gnuradio ?

2014-03-05 Thread Activecat
Dear Sir,

In c++ we have:  set_min_noutput_items()
What is it equivalent syntax in python ?

I try this:
  self.set_min_noutput_items()

Error message:
  AttributeError: 'quadrator_upconverter_python1' object has no attribute
'set_min_noutput_items'

Note:
The self.set_output_multiple() in python seems accepted, is it functional
..?

Regards,
Activecat
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] gr_modtool

2014-03-05 Thread Marcus Müller

Hi BZS!

Your question is very vague. Please do make sure to include what you actually 
did (in commands, where you executed them, where your module comes from...) and 
what you've tried to solve your problem yourself, otherwise we will a) don't 
know what's the problem and b) feel like we're actually solving problems that 
you, with a little more trying, could have solved yourself ;).

Our guide on reporting errors is: 
http://gnuradio.org/redmine/projects/gnuradio/wiki/ReportingErrors
Please adhere to that!

Greetings,
Marcus

On 03/06/2014 02:46 AM, ??? wrote:

hi,
 i use gr_modtool to add  a new block in an exist module,it apper this :

No GNU Radio module found in the given directory. Quitting.

what shoud i do to solve it
thanks,
BZS


___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Creating OOT module

2014-03-05 Thread Marcus Müller

Hi ???,

gr_modtool is usually included in the distribution, because it must fit to your 
GR version.
If you can't find it you a) have a *very* old version of GNU Radio or b) it 
wasn't installed correctly, but if you say you did it by the wiki, then it 
should be fine... strange.
so: how did you install GNU Radio, and what does "gnuradio-config-info -v" say?

Posting the vebatim error that gr_modtool throws would possibly help, too.

Because you asked other questions, just a few short answers :) :
> Is wiki about OOT correct?
http://gnuradio.org/redmine/projects/gnuradio/wiki/OutOfTreeModules
Is correct :)

>Only gr_modtool allows to create new OOT module?
Technically, you can create OOT modules however you like, figure out how to set 
up a build system, figure out how to install files, find libraries etc...

But I don't know anyone who doesn't use gr_modtool. It just makes things so 
much easier and fail-safe. What it basically does is copy a OOT module template 
and do a few intelligent things like filling in your module name.
When you later want to add blocks, it has mechanisms to add them so that they 
automatically are integrated into the build process, etc.

And: When one experiences problems, one can go and ask the community, and they 
will understand the problem, because they understand how the OOT module is 
structured.

Greetings,
Marcus


On 03/05/2014 09:41 PM, ??? ??? wrote:


Hello everyone!

Met a problem, cannot create OOT module. Red manuals, wiki, howto...

In wiki says, that gr_modtool is included in distribut of GNURadio, but I have 
not found it there. I download it from ftp, but, again, problem. I do 
everything as said in wiki.

gr_modtool newmod howto - works without problem, creating derectory and files. 
Change derectory to created, as said in wiki, then:

gr-howto % gr_modtool add -t general square_ff - here is problem. It says, that 
gr_modtool can`t finde GNURadio files.

Using last version of GNURadio, Ubuntu 12.04. Everything do as said in manuals.

Is wiki about OOT correct?

Only gr_modtool allows to create new OOT module?

Sorry for such formulation of a questions, don`t now, how to ask it other way.



___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio