This helps a lot. Thank you. I hope I'm adding this reply to the list
correctly.

On Tue, Jun 9, 2015 at 10:12 AM, Tom Rondeau <[email protected]> wrote:

> On Tue, Jun 9, 2015 at 9:17 AM, Ashraf Younis <[email protected]> wrote:
>
>> Thank you for responding. I'm still new to GRC, so I don't know how to go
>> about doing that. Would I have to write a .py file? Then how would I import
>> it to GRC?
>>
>
>
> Please keep replies on the list.
>
> So I was about to reply something along the lines of "It's just Python,
> you can figure it out," but then I realized that we provide a good
> mechanism for handling this; it's just not well exposed. So I wrote a
> tutorial on it this morning:
>
> http://gnuradio.org/redmine/projects/gnuradio/wiki/TutorialPythonFunctions
>
> Hope this helps.
>
> Tom
>
>
>
>
>> On Tue, Jun 9, 2015 at 9:10 AM, Tom Rondeau <[email protected]> wrote:
>>
>>> On Tue, Jun 9, 2015 at 8:31 AM, Ashraf Younis <[email protected]>
>>> wrote:
>>>
>>>> I am having trouble reading a file and putting it as a variable or some
>>>> way so that the USRP Source block will read it and evaluate each item. I'm
>>>> using a file source and i tried connecting to a message sink, but I'm stuck
>>>> there because the output of the sink does not match the input of the USRP
>>>> Source. Is there a way to have a txt file read and put into a array of some
>>>> sort to be evaluated?
>>>>
>>>
>>> The file source block reads binary data that it converts to stream of
>>> samples.
>>>
>>> What you want sounds like you could write a simple Python function to
>>> accomplish.
>>>
>>> Tom
>>>
>>>
>>
>
_______________________________________________
Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to