Send USRP-users mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of USRP-users digest..."


Today's Topics:

   1. Threading in python (Tuan (Johnny) Ta)


----------------------------------------------------------------------

Message: 1
Date: Thu, 31 Mar 2011 10:43:19 -0400
From: "Tuan (Johnny) Ta" <[email protected]>
To: [email protected]
Subject: [USRP-users] Threading in python
Message-ID:
        <[email protected]>
Content-Type: text/plain; charset="iso-8859-1"

Dear all,

I got the transceiver code for UHD from Isaac
here<http://www.gergltd.com/home/2011/02/simple-uhd-transceiver-class/>.
The code is written in C++, just like the examples for UHD. He implemented 3
threads: tx_thread, rx_thread and processing_thread. Now I want to extend
this transceiver, e.g. to add modulation / demodulation. But I don't know
how to use the existing gnuradio blocks with C++.

My guess is I need to use the gr-uhd wrapper and have a python top block.
But I'm not very familiar with threading in python. Can someone show me how
to do these operations in python?


   // Start up the thread
    m_pRxThread = new boost::thread(&CSimpleTransceiver::rxThread,this);


and

void CSimpleTransceiver::rxThread()
{
        // fill pBuff with received data
        {
             // Lock queue
             boost::mutex::scoped_lock l(*m_pMutexRxQueue);
             // Put data block on queue
             m_pRxQueue->push_back(pBuff);
        }   // Unlock queue
}


Or is there a way to invoke gnuradio signal processing blocks in C++?


Thank you very much,
Johnny
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.ettus.com/pipermail/usrp-users_lists.ettus.com/attachments/20110331/a6530511/attachment-0001.html>

------------------------------

_______________________________________________
USRP-users mailing list
[email protected]
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com


End of USRP-users Digest, Vol 7, Issue 53
*****************************************

Reply via email to