Hello!
I’m trying to develop an embedded python block to use file as a source. The pre-existing file source block doesn’t match what I need thus I am forced to build one myself. The objective is the read a text file (a string), turn it into ASCII characters, then into hexadecimal characters and finally into binary. This part is already coded. The issue I have is that the file is read over and over again. I need to implement a “repeat” button, just like the one of the file source block GNU Radio already has, so that the program only reads the file once.
Could you please either help me achieve this or tell me how to obtain the code of a pre-existing block in GNU Radio (seeing the code for the repeat function of the file source block might be very helpful).
Thank you!