Re: how to insert if...else logic between 2 blocks

2020-12-05 Thread Fabian Schwartau
t shows "Param - >> Code(_source_code): Can't interpret source code: non-default argument >> follows default argument (, line 16)" >> how to deal with this? >> >> >> <http://aka.ms/weboutlook> >> ---------------- >> *From:* Discuss-gnuradio

Re: how to insert if...else logic between 2 blocks

2020-12-04 Thread james jordan
iscuss-gnuradio@gnu.org Subject: Re: how to insert if...else logic between 2 blocks Hi James, I cannot tell where you got that init function from, but you are passing 3 arguments to it (ignoring self). The first one has a default argument (1850e6), but the following don't. That's not allowed i

Re: how to insert if...else logic between 2 blocks

2020-12-04 Thread james jordan
hwartau Sent: Friday, December 4, 2020 7:14 PM To: discuss-gnuradio@gnu.org Subject: Re: how to insert if...else logic between 2 blocks Hi James, three options I can see: 1) Quick& Dirty: Implement both algorithms in parallel and use the Peak Detector block to generate a 0 or 1 depending on yo

Re: how to insert if...else logic between 2 blocks

2020-12-04 Thread Fabian Schwartau
--- > *From:* Discuss-gnuradio > on > behalf of Fabian Schwartau > *Sent:* Friday, December 4, 2020 7:14 PM > *To:* discuss-gnuradio@gnu.org > *Subject:* Re: how to insert if...else logic between 2 blocks >   > Hi James, > > three options I can s

Re: how to insert if...else logic between 2 blocks

2020-12-04 Thread Fabian Schwartau
Hi James, three options I can see: 1) Quick& Dirty: Implement both algorithms in parallel and use the Peak Detector block to generate a 0 or 1 depending on your condition. Then invert the condition, multiply the outputs of the two algorithms with the two condition outputs and add them. 2) Dependin