WARNING: This server is unstable and will be retired in the next days. If you want to keep this forum available, please request immediately a migration on the Nabble Support forum. Forums that don't receive any migration request will be deleted forever.

 « Return to Thread: GRC noise source seems to give same output regardless of seed

Re: GRC noise source seems to give same output regardless of seed

by Tom Rondeau-2 :: Rate this Message:

| View in Thread

On Tue, Mar 13, 2012 at 10:24 AM, Damian Bevan <deebs67@...> wrote:
Hi Tom,

Thanks for the prompt and helpful advice. I have now tried changing the seeds on the two noise blocks to different negative values (-42 and -99), and it does indeed appear to have resolved the problem. Or having one positive (+42) and one negative (-99) also solved the problem.

I think you are right that this should be in the documentation. At the moment the documentation is very misleading, in that a) The default seed in the GRC block is 42, which is a great number, but unfortunately is positive, and b) the documentation when you click on the block says "noise_source_c(gr_noise_type_t type, float ampl, long seed = 3021) -> gr_noise_source_c_sptr", which again hints at a positive seed (i.e. of +3021).

Cheers, and thanks again.

Damian.

Damian,
Thanks for getting back to me on this. I'm going to change the documentation to explain it.

And I'm going to change the default values to 0 instead of 42/3201 since 0's as good as either of those. I don't want to set it negative, though, since that would change the output behavior of the block and someone might be relying on this for consistency in their measurements or something.

Tom



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

 « Return to Thread: GRC noise source seems to give same output regardless of seed