Re: Discuss-gnuradio Digest, Vol 255, Issue 4

2024-01-02 Thread Sreejith RK Nair
it worked perfectly.. Thank you so much...

On Tue, Jan 2, 2024 at 10:31 PM  wrote:

> Send Discuss-gnuradio mailing list submissions to
> discuss-gnuradio@gnu.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> or, via email, send a message with subject or body 'help' to
> discuss-gnuradio-requ...@gnu.org
>
> You can reach the person managing the list at
> discuss-gnuradio-ow...@gnu.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Discuss-gnuradio digest..."
>
>
> Today's Topics:
>
>1. Clipping and Renaming wavesink output file (Sreejith RK Nair)
>2. Re: Discuss-gnuradio Digest, Vol 255, Issue 3 (Jiya Johnson)
>3. Re: Clipping and Renaming wavesink output file (Jeff Long)
>4. Re: Doppler (Daniel Estévez)
>5. Re: Doppler (Daniel Estévez)
>6. "Windows Size" or "Canvas Size" in Options Block of GNU Radio
>   3.10.1.1 (ELIZEU FERREIRA XAVIER)
>7. Re: Doppler (Marcus D. Leech)
>
>
> ------
>
> Message: 1
> Date: Tue, 2 Jan 2024 08:46:37 +0530
> From: Sreejith RK Nair 
> To: discuss-gnuradio@gnu.org
> Subject: Clipping and Renaming wavesink output file
> Message-ID:
> <
> cakfesxdcqw5ofy32s+qfqtfd4pot3knfu2jqdov8y4hqdqb...@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi,
> I have created a FM receiver using GNU and the output is fed to an audio
> sink to listen live and to a wavefile sink to record. There was no option
> to edit the recording time in GUI, so I edited the python code to record
> and rename the file every 5 mins. But the problem is only the first file
> has data and other files are created but with no data.The code i've written
> for this as follows:
>  *def create_new_file(self):*
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *current_time = datetime.datetime.now()elapsed_time = current_time
> - self.start_timeif elapsed_time.total_seconds() >= REC_TIME_SEC:
>   self.blocks_wavfile_sink_0.close()filename =
> 'E:\\Record\\{}.mp3'.format(current_time.strftime("%Y%m%d_%H%M%S"))
> self.blocks_wavfile_sink_0 = blocks.wavfile_sink(filename, 1, 48000,
> 8)self.start_time = current_timedef
> check_and_create_file(self):current_time = datetime.datetime.now()
>   elapsed_time = current_time - self.start_timeif
> elapsed_time.total_seconds() >= REC_TIME_SEC:
> self.create_new_file()def work(self, input_items,
> output_items):current_time = datetime.datetime.now()
> elapsed_time = current_time - self.start_time
> self.total_items_written+=len(output_items[0])# Call
> create_new_file multiple times if enough time has elapsedif
> elapsed_time.total_seconds() >= REC_TIME_SEC:
> self.create_new_file()current_time = datetime.datetime.now()
> elapsed_time = current_time - self.start_time return
> len(output_items[0])*
> Thank you in advance..
> -- next part --
> An HTML attachment was scrubbed...
> URL: <
> https://lists.gnu.org/archive/html/discuss-gnuradio/attachments/20240102/83e76055/attachment.htm
> >
>
> --
>
> Message: 2
> Date: Tue, 2 Jan 2024 09:59:14 +0530
> From: Jiya Johnson 
> To: GNURadio Mailing List 
> Subject: Re: Discuss-gnuradio Digest, Vol 255, Issue 3
> Message-ID:
>  y0echmmcy01em1rkjvtpldm3t11...@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Greetings all,
> Let's say if I want to do it for Doppler frequency of 200KHz and Doppler
> rate 10KHz/s is it possible to do with USRP hardware simulations.
>
> On Tue, Jan 2, 2024 at 7:17 AM  wrote:
>
> > Send Discuss-gnuradio mailing list submissions to
> > discuss-gnuradio@gnu.org
> >
> > To subscribe or unsubscribe via the World Wide Web, visit
> > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> > or, via email, send a message with subject or body 'help' to
> > discuss-gnuradio-requ...@gnu.org
> >
> > You can reach the person managing the list at
> > discuss-gnuradio-ow...@gnu.org
> >
> > When replying, please edit your Subject line so it is more specific
> > than "Re: Contents of Discuss-gnuradio digest..."
> >
> >
> > Today's To

Clipping and Renaming wavesink output file

2024-01-01 Thread Sreejith RK Nair
Hi,
I have created a FM receiver using GNU and the output is fed to an audio
sink to listen live and to a wavefile sink to record. There was no option
to edit the recording time in GUI, so I edited the python code to record
and rename the file every 5 mins. But the problem is only the first file
has data and other files are created but with no data.The code i've written
for this as follows:
 *def create_new_file(self):*























*current_time = datetime.datetime.now()elapsed_time = current_time
- self.start_timeif elapsed_time.total_seconds() >= REC_TIME_SEC:
  self.blocks_wavfile_sink_0.close()filename =
'E:\\Record\\{}.mp3'.format(current_time.strftime("%Y%m%d_%H%M%S"))
self.blocks_wavfile_sink_0 = blocks.wavfile_sink(filename, 1, 48000,
8)self.start_time = current_timedef
check_and_create_file(self):current_time = datetime.datetime.now()
  elapsed_time = current_time - self.start_timeif
elapsed_time.total_seconds() >= REC_TIME_SEC:
self.create_new_file()def work(self, input_items,
output_items):current_time = datetime.datetime.now()
elapsed_time = current_time - self.start_time
self.total_items_written+=len(output_items[0])# Call
create_new_file multiple times if enough time has elapsedif
elapsed_time.total_seconds() >= REC_TIME_SEC:
self.create_new_file()current_time = datetime.datetime.now()
elapsed_time = current_time - self.start_time return
len(output_items[0])*
Thank you in advance..


Re: How to run the program without showing the block diagram in windows 10?

2023-12-20 Thread Sreejith RK Nair
I tried executing the python file but it keeps showing errors. I'm new to
this and with my limited knowledge I've set the paths. This is the error
that keeps popping up everytime.




*C:\GNURadio-3.8>python NBFM.pyTraceback (most recent call last):  File
"C:\GNURadio-3.8\NBFM.py", line 23, in import
gnuradioModuleNotFoundError: No module named 'gnuradio' *
*Also thank you for your help*.
On Wed, Dec 20, 2023 at 10:33 PM  wrote:

> Send Discuss-gnuradio mailing list submissions to
> discuss-gnuradio@gnu.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> or, via email, send a message with subject or body 'help' to
> discuss-gnuradio-requ...@gnu.org
>
> You can reach the person managing the list at
> discuss-gnuradio-ow...@gnu.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Discuss-gnuradio digest..."
>
>
> Today's Topics:
>
>1. Vector Sink/Source Type Support (David Reuss)
>2. Survey regarding Open Source Licensing of GR 4.0 (Josh Morman)
>3. Re: Vector Sink/Source Type Support (Jeff Long)
>4. How to run the program without showing the block diagram in
>   windows 10? (Sreejith RK Nair)
>
>
> --
>
> Message: 1
> Date: Tue, 19 Dec 2023 09:44:40 -0800
> From: David Reuss 
> To: discuss-gnuradio@gnu.org
> Subject: Vector Sink/Source Type Support
> Message-ID:
> <
> calsebrttnmypejuealu_qg4u9ibmnavxhhfjk4qdak2awmh...@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hello,
>
> We have a few gnuradio blocks in an OOT module that require double
> precision inputs and outputs. To help us test these blocks we created our
> own vector sink/source blocks that are direct copies of the gnuradio vector
> sink/source but with added support for doubles.
>
> This works well, but I was wondering if there is a reason that vector
> sink/source don't support double, std::int64_t and gr_complexd types, or
> whether this is something that might be useful for me to create a pull
> request for? These blocks are already templated (source:
>
> https://github.com/gnuradio/gnuradio/blob/main/gr-blocks/lib/vector_sink_impl.cc
> ),
> so it should be easy enough to add support for more types.
>
> Thank you,
> David
> -- next part --
> An HTML attachment was scrubbed...
> URL: <
> https://lists.gnu.org/archive/html/discuss-gnuradio/attachments/20231219/c08f7291/attachment.htm
> >
>
> --
>
> Message: 2
> Date: Tue, 19 Dec 2023 12:50:30 -0600
> From: Josh Morman 
> To: GNURadio Discussion List 
> Subject: Survey regarding Open Source Licensing of GR 4.0
> Message-ID:
> <
> ca+jsbfpxv12p4m+yaucuky4dhy7em0eyqsfv83fgeqdn8wd...@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> A quick follow up on one topic that was presented in the Q4 Project Update
> video:
>
> Tl;dr - the core of the code being merged as “GR 4.0” is LGPL.  We want
> your opinion on how this will impact you and if further action is needed
> for licensing considerations.  Please submit your feedback here:
>
>
> https://forms.gle/u7PjYGhzfrshkngd9
>
> Look forward to your responses.
>
>
> Thanks,
>
> Josh
>
> —--
>
> As has been widely discussed, the upcoming major version of GNU Radio, GR
> 4.0, is based on a new codebase developed by the team at GSI-FAIR and is
> being migrated into the GNU Radio GitHub Repository.  Apart from the vast
> and promising changes of this major revision, the code being migrated is
> currently licensed as LGPL, which means that there are different
> ramifications than the entirety of GNU Radio 3.x being GPLv3.  The plan is
> that blocks ported over with IP from GR3 (apart from very trivial blocks)
> will remain in modules that are licensed as GPLv3.  So for the vast
> majority of GNU Radio use cases, the situation for derived works of
> flowgraphs using signal processing blocks will not change.
>
>
>
> But with the core (base classes and schedulers) being LGPL, this allows
> derived works to link with GR, but have a different license.  Source
> changes to the core GR codebase would still need to be provided to those
> receiving any derived works.  This could enable the following situations:
>
>1.
>
>A GNU Radio user could create an OOT not bound by GPLv3 - so long as the
>OOT does not link against any of the GR GPL code (e.g. gr-filter or
>gr-digital)
>

How to run the program without showing the block diagram in windows 10?

2023-12-20 Thread Sreejith RK Nair
I have done a project for my internship using gnu radio. I want to run my
project on another pc(windows 10) and show the output but not the block
diagram .My invigilator should only see the output. Can anyone suggest a
way to do this?