Hi:
    I think I found the problem. In my version of the GRC, there is a parameter 
Type in the  gr_probe_mpsk_snr block,
then I can choose it for the signal_mean,noise_variance and snr.So I think the 
block output the value of the type which
I set. If I set the type as snr, the block will output the value of calculated 
snr. So I think I do not use the probe_function
block.
    But I still have a problem.In the block, there is a parameter alpha for the 
calculation of the snr. What should I follow to
set the value of this parameter? Can anyone help me about this ?
   Thank you in advance.

Inter.
   
From: [email protected]
To: [email protected]; [email protected]
Subject: RE: [Discuss-gnuradio] How to use the SNR block in the GRC
Date: Fri, 8 Apr 2011 18:20:59 +0800
CC: 








hi josh:

Thank you for your last e-mail.I am sorry I did not mention the version of GRC 
I used,and it is 3.2.2(GNU Radio is 3.3.3).
And I found the probe_function block as you said.I use a scope block to connect 
to the probe_function block to see the output
of the blcok.I also  put the bpsk modulated data input this block,and put the 
output of the block to a file_sink. 

I use the ID of the gr_probe_mpsk_snr block as the parameter Block ID of the 
probe_function block, then set the parameter
 Function name as the name of the functions in the gr_probe_mpsk_snr block such 
as signal_mean(), snr().But there is an 
error " 'gr_hier_block2_sptr' object has no attribute 'signal_mean' "in the 
flow graph .Why did it happen? Did I set some parameters wrong? 

Can you give me a example flow graph (not the one in the 
digital-bertfolder)about the gr_probe_mpsk_snr and probe_function?

Thank you

inter

> Date: Thu, 7 Apr 2011 11:33:23 -0500
> From: [email protected]
> To: [email protected]
> Subject: Re: [Discuss-gnuradio] How to use the SNR block in the GRC
> 
> 
> 
> On 04/07/2011 05:18 AM, intermilan wrote:
> > 
> > Hi all:
> >     I found these is a block gr_probe_mpsk_snr in the grc which is used to 
> > measure the snr of the bpsk or qpsk signals. But I
> > do not know how to use this block.In my flow graph, I put the bpsk 
> > modulated data input this block,and put the output of the block to a 
> > file_sink.
> > But there is nothing in that file.So I hope someone can tell me how to use 
> > this block.
> > Thanks in advance.
> > inter
> >              
> 
> 
> I dont know what version your using. But I reworked how the probe blocks
> work since the last release, so here is how it works in the current master:
> 
> Attach a probe block to your signal. Notice in the probe block docs,
> that the available functions are listed. Use the function probe block to
> read that function periodically and to write the value into a variable.
> 
> To display the result, just use the ID from the function probe in the
> value parameter for the appropriate graphical widget.
> 
> -Josh
>                       
> > 
> > 
> > 
> > _______________________________________________
> > Discuss-gnuradio mailing list
> > [email protected]
> > http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 
> _______________________________________________
> Discuss-gnuradio mailing list
> [email protected]
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
                                          

_______________________________________________
Discuss-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio                          
          
_______________________________________________
Discuss-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to