[Discuss-gnuradio] It must be defined inside the context of a function !

2014-01-15 Thread Activecat
Dear Sir, Below code will produce compilation error: 'input_sizes' does not name a type. This is because input_sizes must be assigned inside a context of a function in c++, right ? std::vectorint input_sizes; input_sizes.push_back(sizeof(float)); input_sizes.push_back(sizeof(double));

Re: [Discuss-gnuradio] It must be defined inside the context of a function !

2014-01-16 Thread Activecat
Regards. On Thu, Jan 16, 2014 at 4:14 PM, Marcus Müller mar...@hostalia.de wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Activecat, you're right. Method calls (or function calls in general) such us push_back can only take place in functions. That's why constructors exist! Please

[Discuss-gnuradio] wxWidgets

2014-01-18 Thread Activecat
Dear Sir, I am learning wxWidgets in order to use it with gnuradio. I find that WX GUI FFT Sink and WX GUI Scope Sink are programmed in python, not C++. Is this true? If yes, then I may just learn wxPython first. Please advise, thanks. Regards, activecat

[Discuss-gnuradio] gr_modtool makexml fails for block coded in python

2014-01-18 Thread Activecat
in lib/: None found. Question: Does gr_modtool makexml work with block coded in python ? Regards, activecat ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

[Discuss-gnuradio] constructor of block is not private

2014-01-22 Thread Activecat
Dear Sir, From the documentation, the constructor of user-defined block is often private. But how come it is defined as public, refer below code. This is a typical code generated by gr_modtool: Filename: byte_source_impl.h /* -*- c++ -*- */#ifndef INCLUDED_HOWTO_BYTE_SOURCE_IMPL_H#define

Re: [Discuss-gnuradio] constructor of block is not private

2014-01-23 Thread Activecat
to private rather than leaving it in public ? Please advise, thanks. activecat On Thu, Jan 23, 2014 at 3:07 PM, Marcus Müller mar...@hostalia.de wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Activecat, the _impl classes are usually not instantiated by themselves; in fact

[Discuss-gnuradio] External library for low pass filtering

2014-01-25 Thread Activecat
, dspfilterscpp, etc. ? Thank you very much. Regards, Activecat ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

[Discuss-gnuradio] Sine wave of only 3 cycles

2014-01-30 Thread Activecat
Dear Sir, A block of Signal Source (Sine) generates sine wave continuously. How to make it just generates 3 wave-cycle and then stop generating immediately. At the end of the flow-graph there is a File Sink. This captures data for offline processing. Regards, active...@gmail.com

Re: [Discuss-gnuradio] Sine wave of only 3 cycles

2014-01-30 Thread Activecat
Dear Sirs, Thank you very much. The head block solve my problem precisely. Note: The flow graph consists of some other blocks at the middle. Regards, activecat. On Thu, Jan 30, 2014 at 8:18 PM, Marcus Müller mar...@hostalia.de wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Also

[Discuss-gnuradio] QT GUI Time Sink Attribute Error

2014-01-30 Thread Activecat
'top_layout' Done Please advise, thanks. Regards, activecat ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Re: [Discuss-gnuradio] Sine wave of only 3 cycles

2014-01-30 Thread Activecat
stream? Regards, activecat On Thu, Jan 30, 2014 at 9:47 PM, Activecat active...@gmail.com wrote: Dear Sirs, Thank you very much. The head block solve my problem precisely. Note: The flow graph consists of some other blocks at the middle. Regards, activecat. On Thu, Jan 30, 2014 at 8:18

Re: [Discuss-gnuradio] wxGUI libraries in the GRC

2014-01-30 Thread Activecat
series (eg. N210), make sure your PC has gigabit ethernet port (Fast ethernet does not work if you connect USRP N210 directly to your PC) Regards, activecat On Fri, Jan 31, 2014 at 7:48 AM, Yarlagadda, Anusha (337G) anusha.yarlaga...@jpl.nasa.gov wrote: I just noticed I don't have QT FFT

Re: [Discuss-gnuradio] QT GUI Time Sink Attribute Error

2014-01-30 Thread Activecat
Dear Nick, I see, it is a value for Generate Options within the Options block. I get it, thanks. Regards, activecat On Fri, Jan 31, 2014 at 12:02 PM, Nick Foster bistrom...@gmail.com wrote: Upper left corner of your GRC flowgraph. Where it says Generate Options. Change that to QT GUI

[Discuss-gnuradio] Unable to stop the flow graph after calling stop()

2014-02-01 Thread Activecat
... Question: How to stop the flow graph when this-d_complete == true ? Below is my code in file: lib/integer_source_impl.cc #include gr_io_signature.h #include integer_source_impl.h namespace gr { namespace activecat { integer_source::sptr integer_source::make(const std::vector int data

Re: [Discuss-gnuradio] Stop GRC flow graph after defined time

2014-02-01 Thread Activecat
Dear Josh, Your method below doesn't work on GNU Radio v3.6.5.1 In this case, how to stop the flow graph in v3.6.5.1 ..? Thanks regards, activecat Subject: Re: [Discuss-gnuradio] Stop GRC flow graph after defined time Date: Wed, 29 Sep 2010 08:33:49 -0700 User-agent: Mozilla/5.0 (X11; U

Re: [Discuss-gnuradio] Stop GRC flow graph after defined time

2014-02-01 Thread Activecat
it returns 0, the sceduler will still continue to call the source block's work() method repeatly. 3). Under what scenario we will need to use the stop() method ? (In python script we see stop() method quit often, but it seems never needed in c++ code) Thanks. activecat Note: This flow graph doesn't

Re: [Discuss-gnuradio] undocumented SBX behavior

2014-02-02 Thread Activecat
Dear Marcus, At the receiver USRP, does the SBX daughtercard have any mechanism of phase-lock-loop (PLL) ? I guess the daughtercard should have it because PLL is essential for quadrature downconversion. Please advise, thanks. Regards, activecat On Sat, Jan 11, 2014 at 1:19 PM, Marcus Leech

Re: [Discuss-gnuradio] Stop GRC flow graph after defined time

2014-02-02 Thread Activecat
::sync_block. Why should sink block be categorised as sync block? Sync block is defined as block that has the same number of input items and output items, but sink block doesn't fulfill this condition (sink block has no output). Regards, activecat Note: My flow graph is very simple. It consists of only two

Re: [Discuss-gnuradio] Design_core_framework

2014-02-06 Thread Activecat
yes, refer http://gnuradio.org/doc/doxygen/index.html On Thu, Feb 6, 2014 at 8:26 PM, Siva Krishna svkrishn...@gmail.com wrote: Hi, I want to know about the design of gnu-radio. Any documents related to that?. Thanks and Regards, Siva Krishna

[Discuss-gnuradio] How to specify a complex number in block: vector_source ?

2014-02-07 Thread Activecat
, activecat ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Re: [Discuss-gnuradio] How to specify a complex number in block: vector_source ?

2014-02-07 Thread Activecat
Dear Marcus, Thanks, it accepts ( complex(1,2), complex(3,4), complex(5,6) ). The other two are not accepted, message: name 'j' is not defined. Nevertheless, that is good enough. Thanks. Regards, activecat On Sat, Feb 8, 2014 at 2:38 PM, Marcus Müller mar...@hostalia.de wrote: -BEGIN

Re: [Discuss-gnuradio] How to specify a complex number in block: vector_source ?

2014-02-08 Thread Activecat
, Activecat wrote: Dear Marcus, Thanks, it accepts ( complex(1,2), complex(3,4), complex(5,6) ). The other two are not accepted, message: name 'j' is not defined. Nevertheless, that is good enough. Thanks. Regards, activecat On Sat, Feb 8, 2014 at 2:38 PM, Marcus Müller mar

[Discuss-gnuradio] gr_modtool makexml bugs

2014-02-08 Thread Activecat
Dear guru, This happens intermittently. Is this a bug? Command: gr_modtool makexml integer_sink2 Output: as below Regards, activecat $ gr_modtool makexml integer_sink2 GNU Radio module name identified: activecat Warning: This is an experimental feature. Don't expect any magic. Searching

Re: [Discuss-gnuradio] gr_modtool makexml bugs

2014-02-09 Thread Activecat
Dear Martin, Let's refer related files as attached, thanks. List of attached files: integer_source.h integer_source_impl.h integer_source_impl.cc error_message (text file) Regards, activecat On Mon, Feb 10, 2014 at 1:19 AM, Martin Braun martin.br...@ettus.comwrote: On 08.02.2014 23

[Discuss-gnuradio] How to get t (time) to calculate output = sin ( 2 * PI * freq * t ) ?

2014-02-10 Thread Activecat
* sin( 2 * PI * wave_freq * t ) } I know we there is a built-in Signal Source block, but I write this to illustrate what I need to do. Regards, activecat ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo

[Discuss-gnuradio] on the fly set_output_multiple()

2014-02-20 Thread Activecat
Any solution to this? The objective is to create an interpolator block that its interpolation factor could be changed on the fly. Thanks in advance. Regards, Activecat ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman

Re: [Discuss-gnuradio] on the fly set_output_multiple()

2014-02-20 Thread Activecat
() with noutput_items equals a value less than 3. This solves the problems ! Question: Does this function work on the fly?set_min_noutput_items() Thank you very much. Regards, Activecat On Fri, Feb 21, 2014 at 3:31 AM, Martin Braun martin.br...@ettus.comwrote: On 02/20/2014 01:46 PM, Activecat wrote: I

Re: [Discuss-gnuradio] Unable to stop the flow graph after calling stop()

2014-03-03 Thread Activecat
the constructor) Please advise, thanks. Regards, Activecat On Mon, Mar 3, 2014 at 5:25 PM, Marcus Müller mar...@hostalia.de wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Activecat, the constructor of a block must have been called before the block has been connect()ed; so there's

Re: [Discuss-gnuradio] Unable to stop the flow graph after calling stop()

2014-03-03 Thread Activecat
Dear gurus, I got it, thank you very much ! Regards, Activecat On Mon, Mar 3, 2014 at 9:11 PM, Martin Braun martin.br...@ettus.com wrote: On 03/03/2014 12:37 PM, Marcus Müller wrote: Hi Activecat, as Miklos wrote: Let your Constructor throw an exception. For a little detail

[Discuss-gnuradio] FFTW3 runtime error

2014-03-03 Thread Activecat
activecat File /usr/local/lib/python2.7/dist-packages/activecat/__init__.py, line 45, in module from activecat_swig import * File /usr/local/lib/python2.7/dist-packages/activecat/activecat_swig.py, line 26, in module _activecat_swig = swig_import_helper

Re: [Discuss-gnuradio] FFTW3 runtime error

2014-03-03 Thread Activecat
The implementation header file is as below: #ifndef INCLUDED_ACTIVECAT_FFT1_IMPL_H #define INCLUDED_ACTIVECAT_FFT1_IMPL_H #include activecat/fft1.h #include fftw3.h namespace gr { namespace activecat { class fft1_impl : public fft1 { private: int d_N; int

Re: [Discuss-gnuradio] FFTW3 runtime error

2014-03-04 Thread Activecat
Dear Marcus, Thank you very much. As according to your guideline, the runtime error has been solved. With some minor modification to the work() function, now the flow graph executes without any error. Cheers, Activecat On Tue, Mar 4, 2014 at 6:02 PM, Marcus Müller mar...@hostalia.de wrote

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

2014-03-05 Thread Activecat
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] self.set_min_noutput_items() is not a valid python command in gnuradio ?

2014-03-06 Thread Activecat
change on the fly. The questions are: 1). Can we use this to change setting on the fly: set_min_noutput_items() 2). Is there any better workaround for this? Regards, Activecat On Thu, Mar 6, 2014 at 11:36 PM, Tom Rondeau t...@trondeau.com wrote: On Thu, Mar 6, 2014 at 2:12 AM, Activecat

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

2014-03-07 Thread Activecat
(which is 800), if the set_output_multiple() doesn't work on the fly. If there is no better workaround, we have to stick to this trick at the moment. Regards, Activecat On Fri, Mar 7, 2014 at 6:00 PM, Marcus Müller mar...@hostalia.de wrote: Hi Activecat, to answer question 1): grepping

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

2014-03-07 Thread Activecat
); set_min_noutput_items( d_iFactor ); } } Regards, Activecat On Sat, Mar 8, 2014 at 10:50 AM, Marcus Müller mar...@hostalia.de wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Activecat, On 08.03.2014 03:34, Activecat wrote: Dear Marcus, 1). The line 299 of gnuradio-runtime/lib

[Discuss-gnuradio] Graph plotting using wxPython

2014-03-07 Thread Activecat
correctly? (I am new to wxPython) Thanks regards, Activecat Python code of the block: [code] #!/usr/bin/env python # -*- coding: utf-8 -*- import numpy from gnuradio import gr import wx class plotter1(gr.sync_block): def __init__(self, title

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

2014-03-08 Thread Activecat
doesn't produce correct output when d_iFactor changes on the fly. BTW I thought it is redundant to do this change, because as long as set_min_noutput_items(d_iFactor) works on the fly, the scheduler will not ask for less than iFactor samples. Correct..? Regards, Activecat On Sat, Mar 8, 2014

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

2014-03-08 Thread Activecat
Dear Marcus, Meanwhile, as you had advised, I had tried to see the parameters that forecast() and general_work() are called with. Refer below verbose message. When the flow chart started, the initial values are samp_rate=32k, change_rate=64; hence d_iFactor = 32k/64 = 500. At line 24 the

[Discuss-gnuradio] Should return the number of input or the number of output?

2014-03-08 Thread Activecat
by gr_modtool has the work() function return the number of output items (noutput_items). It sounds contradict. Is there any error happening? Regards, Activecat ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo

Re: [Discuss-gnuradio] Should return the number of input or the number of output?

2014-03-10 Thread Activecat
On 03/09/2014 04:58 AM, Activecat wrote: Dear Sir, A python sink block created by gr_modtool has below work() function, it returns the number of input items. def work(self, input_items, output_items): in0 = input_items[0] # +signal processing here

Re: [Discuss-gnuradio] Should return the number of input or the number of output?

2014-03-10 Thread Activecat
Dear Martin, Apparently the consistency of code across different source files is more emphasized than its clarity in individual file. Nevertheless that is clear now, thanks. Regards, Activecat On Mon, Mar 10, 2014 at 9:18 PM, Martin Braun martin.br...@ettus.comwrote: OK, I admit I

Re: [Discuss-gnuradio] Python block, itemsize mismatch

2014-03-10 Thread Activecat
float -numpy.float32 gr_complex -numpy.complex64 int-numpy.int32 Regards, Activecat ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org

Re: [Discuss-gnuradio] Transmit from RF1, receive from RF2

2014-03-10 Thread Activecat
-the-subdevice-to-use http://files.ettus.com/uhd_docs/manual/html/dboards.html Regards, Activecat ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Re: [Discuss-gnuradio] Should return the number of input or the number of output?

2014-03-11 Thread Activecat
Yes I agree with you all. Everything are now clear and readable. Thank you very much. Regards, Activecat On Tue, Mar 11, 2014 at 5:08 PM, Marcus Müller mar...@hostalia.de wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Well, it's basically the idea of not writing a special case

Re: [Discuss-gnuradio] looping with work() function

2014-03-11 Thread Activecat
examples of what you are trying to accomplish. Regards, Activecat ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Re: [Discuss-gnuradio] looping with work() function

2014-03-11 Thread Activecat
? If yes then I am able to help you. Let's clarify your requirements first. Regards, Activecat ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Re: [Discuss-gnuradio] looping with work() function

2014-03-11 Thread Activecat
formula. Now I am still in the midst of trying to understand your requirements correctly. Meanwhile, please do not top-post. Refer http://gnuradio.org/redmine/projects/gnuradio/wiki/ReportingErrors#How-should-I-format-my-message Regards, Activecat

Re: [Discuss-gnuradio] looping with work() function

2014-03-13 Thread Activecat
, Mar 13, 2014 at 1:42 PM, Sumedha Goyal sumedha1...@gmail.com wrote: Hi Activecat, This is true that I am trying to accomplish the same task that you have mentioned . But the difference is: 1. I pass a threshold value to my test_demo block from the top_block(Example: top_block(options, 0.4

Re: [Discuss-gnuradio] Failure of sending square wave over USRPs (back-to-back)

2014-03-14 Thread Activecat
Dear Sylvain, On Fri, Mar 14, 2014 at 2:17 PM, Sylvain Munaut 246...@gmail.com wrote: First thing, square waves have infinite bandwidth, the DAC can't generate them properly, the ADC can't capture them properly and they'll be modified by the IF filters. The effect of that is to round off the

Re: [Discuss-gnuradio] Failure of sending square wave over USRPs (back-to-back)

2014-03-14 Thread Activecat
Dear Johnathan, On Fri, Mar 14, 2014 at 2:21 PM, Johnathan Corgan johnat...@corganlabs.com wrote: On 03/13/2014 09:32 PM, Activecat wrote: I try to send square wave from one USRP to another. The received signal at the receiver USRP is very different from what was being sent. This is just

Re: [Discuss-gnuradio] Failure of sending square wave over USRPs (back-to-back)

2014-03-14 Thread Activecat
, then this flow graph must be able to adjust the local oscillator of the SBX daughtercard, via softare. Does gnuradio flow graph have this capability? Regards, Activecat ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org

Re: [Discuss-gnuradio] Failure of sending square wave over USRPs (back-to-back)

2014-03-14 Thread Activecat
be transmitted through antenna. A physical antenna can only transmit real signal, not complex-based signal. Please clarify, thanks. Regards, Activecat That is what SDR is all about--the signals are represented as complex-baseband (i/Q) format for processing by computer algorithms. The SBX

Re: [Discuss-gnuradio] Failure of sending square wave over USRPs (back-to-back)

2014-03-15 Thread Activecat
Dear Marcus, Please avoid adding more confusions rather than clarities. The term upconversion and downconversion are common terms used in the radio engineering industry, but may not be common among other technical folks. In radio engineering industry, there are more than 1 type of

Re: [Discuss-gnuradio] Failure of sending square wave over USRPs (back-to-back)

2014-03-15 Thread Activecat
On Sat, Mar 15, 2014 at 11:14 AM, Marcus D. Leech mle...@ripnet.com wrote: The SBX does analog downconversion, nothing more. It knows nothing about the incoming signal, and doesn't demodulate it in any way. That is what SDR is all about--the signals are represented as complex-baseband (i/Q)

Re: [Discuss-gnuradio] Failure of sending square wave over USRPs (back-to-back)

2014-03-15 Thread Activecat
On Sat, Mar 15, 2014 at 4:05 PM, Sylvain Munaut 246...@gmail.com wrote: There are no documentation of what SBX performs on incoming or outgoing signals. https://www.ettus.com/product/details/SBX IMHO Ettus is among the brands where there is the _least_ surprises just because the exact

Re: [Discuss-gnuradio] Failure of sending square wave over USRPs (back-to-back)

2014-03-15 Thread Activecat
On Sat, Mar 15, 2014 at 5:14 PM, Sylvain Munaut 246...@gmail.com wrote: You may refer to previous conversations. Do you agree with him that a simple quadrature downconverter doesn't need to care about clock drift because it just simply downconverter and nothing more? Yes ... Cheers,

Re: [Discuss-gnuradio] Failure of sending square wave over USRPs (back-to-back)

2014-03-15 Thread Activecat
and offense arisen. Thank you very much. Regards, Activecat ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Re: [Discuss-gnuradio] Failure of sending square wave over USRPs (back-to-back)

2014-03-15 Thread Activecat
I have found the answers. http://nutaq.com/en/blog/multi-channel-synchronization-fpga-based-daq-systems http://nutaq.com/en/blog/brief-overview-frequency-synchronization-ofdm On the Nutaq platforms (ZeptoSDR, PicoSDR) you can control VCXO voltage DAC from GNU Radio (and from FPGA user logic) to

[Discuss-gnuradio] flowgraph reading keystrokes during execution

2014-03-25 Thread Activecat
Dear Sir, I am thinking of building simple chat application using gnuradio. PC#1 connecting to USRP#1, will send text message to PC#2 via USRP#2. The question is, how to get the user keystrokes from the flowgraph at PC#1 ? I am building the flowgraphs using GRC (Companion). I guess I need to use

[Discuss-gnuradio] std::cin inside work()

2014-03-26 Thread Activecat
Dear sir, Why below custom block doesn't work..? int console1_impl::work( int noutput_items, gr_vector_const_void_star input_items, gr_vector_void_star output_items) { int *out = (int *) output_items[0]; int x;

Re: [Discuss-gnuradio] std::cin inside work()

2014-03-26 Thread Activecat
Thank you very much. On Wed, Mar 26, 2014 at 5:43 PM, Martin Braun martin.br...@ettus.com wrote: On 03/26/2014 09:17 AM, Activecat wrote: Dear sir, Why below custom block doesn't work..? Activecat, first, don't ask open questions like this. How do you know it's not working? What did you

Re: [Discuss-gnuradio] flowgraph reading keystrokes during execution

2014-03-26 Thread Activecat
Thank you. On Wed, Mar 26, 2014 at 5:54 PM, Martin Braun martin.br...@ettus.com wrote: On 03/26/2014 04:26 AM, Activecat wrote: Dear Sir, I am thinking of building simple chat application using gnuradio. PC#1 connecting to USRP#1, will send text message to PC#2 via USRP#2. The question

Re: [Discuss-gnuradio] GRC vs python flow-graph by hand

2014-04-12 Thread Activecat
/unlock), integration with Python libraries and so on. On Sat, Apr 12, 2014 at 9:25 PM, Activecat active...@gmail.com wrote: Dear Sir, As an amateur I use GRC to create flow-graphs, but I see many other users create their flow-graphs in python by hand. In what kind of cases the flow graphs must

Re: [Discuss-gnuradio] GRC vs python flow-graph by hand

2014-04-14 Thread Activecat
: On Sun, Apr 13, 2014 at 1:10 AM, Activecat active...@gmail.com wrote: It seems that in normal usage the GRC is able to accomplish most of the tasks without modifying the python flow-graph by hand... Generally, we move away from GRC when we require a lot of logic and control to set up

Re: [Discuss-gnuradio] GRC vs python flow-graph by hand

2014-04-14 Thread Activecat
On Mon, Apr 14, 2014 at 10:04 PM, Tom Rondeau t...@trondeau.com wrote: On Sun, Apr 13, 2014 at 1:10 AM, Activecat active...@gmail.com wrote: It seems that in normal usage the GRC is able to accomplish most of the tasks without modifying the python flow-graph by hand... Generally, we move

Re: [Discuss-gnuradio] Waveform after AM demodulation looks weird

2014-04-28 Thread Activecat
When I looked into the attached graphical flowgraph in the first email, the signal was multiplied by zero (constant multiplier) before feeding into file sink and audio sink. In this case what you get was probably amplified noise. Was it zero or something else? On Fri, Apr 25, 2014 at 11:54 PM,

Re: [Discuss-gnuradio] Testing

2014-04-30 Thread Activecat
You should attached the files where you put the std::cout. The std::cout should be in the work() function. On Wed, Apr 30, 2014 at 11:07 AM, Sara Chérif saracheri...@gmail.comwrote: I am testing some blocks to understand the synchronization in ofdm . I edited c++ files put std::cout for all

[Discuss-gnuradio] matplotlib runtime error

2014-05-02 Thread Activecat
in self.__out_indexes], File /usr/local/lib/python2.7/dist-packages/activecat/image_sink1.py, line 72, in work self.axes1.figure.canvas.draw() #pyplot.draw() File /usr/lib/pymodules/python2.7/matplotlib/backends/backend_tkagg.py, line 349, in draw tkagg.blit(self._tkphoto, self.renderer

Re: [Discuss-gnuradio] Testing

2014-05-02 Thread Activecat
On Fri, May 2, 2014 at 5:57 PM, Sara Chérif saracheri...@gmail.com wrote: Here is the file . I wrote std::cout in the work() , why I don't see the output from this file on terminal after rebuilding ?! It seems like the work() function is not called at all by the scheduler. Probably the ofdm

Re: [Discuss-gnuradio] Should return the number of input or the number of output?

2014-05-03 Thread Activecat
Part of this question has been partially discussed, as below. On Mon, Mar 10, 2014 at 9:18 PM, Martin Braun martin.br...@ettus.comwrote: OK, I admit I was unclear. Let's try from scratch: - The return function from work() or general_work() is the amount of items that were *produced*. Says,

Re: [Discuss-gnuradio] Should return the number of input or the number of output?

2014-05-04 Thread Activecat
On Sun, May 4, 2014 at 4:39 PM, Marcus Müller marcus.muel...@ettus.comwrote: Hi Activecat, it's a sink. As Martin said, keep it a sync block. Overriding forecast doesn't even make sense; why should the scheduler ask the block I'd like to have 2000 output items from you, how much input do you

Re: [Discuss-gnuradio] Should return the number of input or the number of output?

2014-05-04 Thread Activecat
On Mon, May 5, 2014 at 3:45 AM, Marcus Müller marcus.muel...@ettus.comwrote: Hi Activecat, On 04.05.2014 12:32, Activecat wrote: This sink block needs to produce an 8-bit integer from every 9 elements it receives. Ok, this explains where the mutual confusion stems from: A sink block

Re: [Discuss-gnuradio] Python chaos

2014-05-05 Thread activecat
Tom Rondeau-2 wrote Plus, PyQWT has stopped development and has even stated that they will not support QWT6, which is a shame and will eventually cause us and anyone else trying to use PyQWT real issues in the future. I've been looking for an alternative to it. Will this affect gnuradio

[Discuss-gnuradio] apps/ directory

2014-05-07 Thread Activecat
Refer http://gnuradio.org/redmine/projects/gnuradio/wiki/OutOfTreeModules#Structure-of-a-module The apps/ subdir contains any complete applications (both for GRC and standalone executables) which are installed to the system alongside with the blocks. Question: I intend to store my flow-graphs in

Re: [Discuss-gnuradio] convert old Gnu Radio applications

2014-05-07 Thread Activecat
On Wed, May 7, 2014 at 5:08 PM, 王先达 wangxianda920...@163.com wrote: Hello Sylvain Thank you very much. But another question i want to ask.Where can i find the document of function and class which are in the new api?These document can provide all

Re: [Discuss-gnuradio] matplotlib runtime error

2014-05-08 Thread Activecat
On Fri, May 2, 2014 at 8:56 PM, Tom Rondeau t...@trondeau.com wrote: On Fri, May 2, 2014 at 8:49 AM, Marcus Müller marcus.muel...@ettus.comwrote: Hi Activecat, typical GUI problem; background is that X applications are inherently hard to multithread, which basically requires graphical

Re: [Discuss-gnuradio] I have a trouble with new types in python!

2014-05-08 Thread Activecat
On Thu, May 8, 2014 at 12:53 AM, Mostafa Alizadeh m.alizade...@gmail.comwrote: Hi Marcus, I actually have a deep, really deep, problem with data types As you see I have a preprocessor definition which is 32 bit number. I wanna pass it to the make!!! how could I? If I use the gnuradio

Re: [Discuss-gnuradio] I have a trouble with new types in python!

2014-05-08 Thread Activecat
On Thu, May 8, 2014 at 8:24 PM, Mostafa Alizadeh m.alizade...@gmail.comwrote: Activecat your right, I finally got what you said. Types in Python are so different than that of c++. For example, Python doesn't care the data is int or usigned int ! Pls stay on the list so that others know your

Re: [Discuss-gnuradio] I have a trouble with new types in python!

2014-05-08 Thread Activecat
On Thu, May 8, 2014 at 9:33 PM, Tom Rondeau t...@trondeau.com wrote: On Thu, May 8, 2014 at 8:48 AM, Marcus Müller marcus.muel...@ettus.comwrote: Hi Activecat, On 08.05.2014 14:14, Activecat wrote: Anyone correct me if I am wrong. In xml file we use the Python data types. well, kind

Re: [Discuss-gnuradio] saving raw data after correct frame reception

2014-05-08 Thread Activecat
On Tue, Apr 22, 2014 at 4:20 PM, Nemanja Savic vlasi...@gmail.com wrote: hi all guys, I would like to be able to store raw data into file after correct frame reception. For this reason I suppose there should be a block that buffers raw data and wait for the trigger to store into file. The

Re: [Discuss-gnuradio] saving raw data after correct frame reception

2014-05-08 Thread Activecat
On Thu, May 8, 2014 at 11:29 PM, Nemanja Savic vlasi...@gmail.com wrote: Ah, it has just came to my mind the following idea: a block with history value of few miliseconds connected directly to usrp source. The history can provide me previous data, but I would like to hear if something like

Re: [Discuss-gnuradio] how to manage time!

2014-05-09 Thread Activecat
Pls stay on the list. On Fri, May 9, 2014 at 2:28 PM, Mostafa Alizadeh m.alizade...@gmail.comwrote: Hi Activecat I didn't get what you mean by (1). I want to add an USRP sink to my flowgraph and this is not a simulation only. The reason why I want to control the rate of samples

Re: [Discuss-gnuradio] how to manage time!

2014-05-09 Thread Activecat
Collector block output rate = 200kbps Below is the collector_impl.cc: namespace gr { namespace activecat { // make quad_up2::sptr quad_up2::make( float rate1, float rate2 ) { return gnuradio::get_initial_sptr (new quad_up2_impl(rate1

Re: [Discuss-gnuradio] how to manage time!

2014-05-09 Thread Activecat
On Fri, May 9, 2014 at 2:14 PM, Mostafa Alizadeh m.alizade...@gmail.comwrote: Hi Marcus, I actually want to implement a transmitter. So in this transmitter different data streams come from different sources with different rates (or sample rates). I feel this was actually the same problem,

Re: [Discuss-gnuradio] how to manage time!

2014-05-10 Thread Activecat
On Sat, May 10, 2014 at 3:38 PM, Mostafa Alizadeh m.alizade...@gmail.comwrote: Dear Activecat, To be honest, I'm still confused!! :) Mostafa, Marcus and I have done our best to help you. All the best. ___ Discuss-gnuradio mailing list Discuss

[Discuss-gnuradio] gr_modtool enable

2014-05-13 Thread Activecat
Gurus, We have gr_modtool disable ABC to disable the ABC custom block. But how to enable it back? (There is no gr_modtool enable or equivalent). ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org

Re: [Discuss-gnuradio] gr_modtool enable

2014-05-13 Thread Activecat
On Tue, May 13, 2014 at 4:04 PM, Martin Braun martin.br...@ettus.comwrote: On 13.05.2014 08:21, Activecat wrote: We have gr_modtool disable ABC to disable the ABC custom block. But how to enable it back? (There is no gr_modtool enable or equivalent). Huh, I thought I'd put

[Discuss-gnuradio] Message Passing

2014-05-14 Thread Activecat
-activecat/apps/top_block.py message_source1_impl::send_message(): invoked message_source1_impl::send_message(): invoked message_source1_impl::send_message(): invoked message_source1_impl::send_message(): invoked message_source1_impl::send_message(): invoked

Re: [Discuss-gnuradio] Message Passing

2014-05-14 Thread Activecat
On Wed, May 14, 2014 at 4:26 PM, Martin Braun martin.br...@ettus.comwrote: On 14.05.2014 08:11, Activecat wrote: Dear gurus, I am learning gnuradio Message Passing feature, but couldn't get desirable result. The Message seems published successfully, but not subscribed by the Message

Re: [Discuss-gnuradio] Message Passing

2014-05-14 Thread Activecat
gnuradio.filter import firdes from grc_gnuradio import wxgui as grc_wxgui from optparse import OptionParser import activecat import wx class top_block(grc_wxgui.top_block_gui): def __init__(self): grc_wxgui.top_block_gui.__init__(self, title=Top Block) _icon_path = /usr/share/icons

Re: [Discuss-gnuradio] Message Passing

2014-05-14 Thread Activecat
On Wed, May 14, 2014 at 5:50 PM, Sylvain Munaut 246...@gmail.com wrote: Did you define the message port in the .grc XML file for your blocks ? Something like : sink nameportname/name typemessage/type optional1/optional /sink Then they should show as message port in the

Re: [Discuss-gnuradio] Message Passing

2014-05-14 Thread Activecat
On Wed, May 14, 2014 at 6:18 PM, Activecat active...@gmail.com wrote: On Wed, May 14, 2014 at 5:50 PM, Sylvain Munaut 246...@gmail.com wrote: Did you define the message port in the .grc XML file for your blocks ? Something like : sink nameportname/name typemessage/type

Re: [Discuss-gnuradio] Message Passing

2014-05-14 Thread Activecat
On Wed, May 14, 2014 at 6:49 PM, Koslowski, Sebastian (CEL) sebastian.koslow...@kit.edu wrote: On 05/14/2014 12:29 PM, Activecat wrote: I have then tested few combinations, it seems that a source block cannot have a message sink port. Is there such a restriction ..? Not that I know

Re: [Discuss-gnuradio] saving raw data after correct frame reception

2014-05-14 Thread Activecat
On Mon, May 12, 2014 at 2:45 AM, Mostafa Alizadeh m.alizade...@gmail.comwrote: Hi Nemanja, I think the best possible way is to connect the trigger to the block as a message. To to that, you need to write a file_sink block for yourself again, for instance named my_file_sink. The main

Re: [Discuss-gnuradio] saving raw data after correct frame reception

2014-05-15 Thread Activecat
On Thu, May 15, 2014 at 3:09 PM, Marcus Müller marcus.muel...@ettus.comwrote: Hi, sorry I didn't mention earlier: Unnecessary historical value increases CPU utilization. Is not inherently true, GNU Radio only ensures that buffer is not being freed up for overwriting later. So actually,

Re: [Discuss-gnuradio] Message Passing

2014-05-15 Thread Activecat
On Wed, May 14, 2014 at 10:25 PM, Tom Rondeau t...@trondeau.com wrote: On Wed, May 14, 2014 at 7:06 AM, Activecat active...@gmail.com wrote: On Wed, May 14, 2014 at 6:49 PM, Koslowski, Sebastian (CEL) sebastian.koslow...@kit.edu wrote: I retried by putting the definition of sink/sink

Re: [Discuss-gnuradio] low frequency in GRC

2014-05-17 Thread Activecat
On Fri, May 16, 2014 at 2:01 AM, Marcus Leech mle...@ripnet.com wrote: Gnu Radio is a streaming architecture. Sample-rate is actually almost-entirely meaningless within the flowgraph, and only really has meaning at the edges when interfacing to the real world. The only exception is the

Re: [Discuss-gnuradio] low frequency in GRC

2014-05-17 Thread Activecat
On Sat, May 17, 2014 at 9:53 PM, Tom Rondeau t...@trondeau.com wrote: So, yes and no on that. There's the information theoretic concept of sample rate, which is what you are talking about here. But underneath, we normalize all sample rates relative to 1. So it's the number of samples relative

Re: [Discuss-gnuradio] matplotlib runtime error

2014-05-18 Thread Activecat
On Mon, May 19, 2014 at 12:52 AM, Tom Rondeau t...@trondeau.com wrote: On Sun, May 18, 2014 at 9:00 AM, Marcus Müller marcus.muel...@ettus.comwrote: Hi, I think real-time and matplotlib kind of contradict in the first place - really, matplotlib's performance is terrible. As a rule, it's

  1   2   3   >