Hi Martin, I am thinking of doing equalization and estimation in a single python code. For this i think, i may need to translate *ofdm_frame_equalizer_vcvc *block also in Python. But it would also be nice if i can use ofdm_frame_equalizer_vcvc block in conjunction with the Python-based equalizer. For now i am stuck at how to write *d_constellation->map_to_points(d_constellation->decision_maker(&sym_eq),** &sym_est); *in a python code for equalizer.
Thanks. Regards, Monika On Fri, Jan 8, 2016 at 11:38 AM, Martin Braun <[email protected]> wrote: > The tricky part would be to feed the Python back to C++ land, which is > necessary if you want to still use the ofdm_frame_equalizer_vcvc block > in conjunction with your Python-based equalizer. Is that something > you're trying to do? > > Cheers, > Martin > > > On 01/07/2016 02:08 PM, monika bansal wrote: > > Hi Marcus, > > > > I am trying to write the equivalent python code for the > > *ofdm_equalizer_simpledfe.cc *and *ofdm_chanest_vcvc_impl.cc* in a > > single python file. I have written the python code for > > *ofdm_chanest_vcvc_impl.cc *successfully. I am able to write the python > > code for *ofdm_equalizer_simpledfe.cc *except for the > > line > *d_constellation->map_to_points(d_constellation->decision_maker(&sym_eq), > > &sym_est);. > > > > * > > My question is, how can i convert this line from c++ to python ? Is > > there any python code to decode the constellation? What should i do? > > > > I am attaching the code written so far. > > Thanks. > > > > Regards, > > Monika > > > > > > > > > > > > > > > > > > > > On Wed, Dec 23, 2015 at 10:46 AM, monika bansal <[email protected] > > <mailto:[email protected]>> wrote: > > > > > > ---------- Forwarded message ---------- > > From: *Marcus Müller* <[email protected] > > <mailto:[email protected]>> > > Date: Tue, Dec 22, 2015 at 8:30 PM > > Subject: Re: [Discuss-gnuradio] About decoding qpsk symbol > > To: monika bansal <[email protected] <mailto: > [email protected]>> > > Cc: [email protected] <mailto:[email protected]> > > > > > > To ask this more explcitely: > > What *exactly* are you doing to produce the error? > > We will need your code to understand what goes wrong. > > > > > > On 22.12.2015 15:59, monika bansal wrote: > >> Hi Marcus, > >> I am creating a channel equalization block in python, trying some > >> different algorithms, and inside it I need to decode the modulated > >> symbols(mapped using qpsk). So I am looking for a python module, > >> which can be called inside the work function of my block, that can > >> do this. > >> > >> Thanks > >> > >> > >> > >> > >> On Tue, Dec 22, 2015 at 2:55 PM, Marcus Müller > >> <[email protected] <mailto:[email protected]>> wrote: > >> > >> How are you including qpsk.py <http://qpsk.py>? > >> This does sound like your PYTHONPATH isn't set correctly, but > >> I'd assume Python stumbles over that before you can even > >> import qpsk.py <http://qpsk.py> > >> > >> Generally, for this kind of problem, a little background, > >> maybe at least a code excerpt and a higher level view on what > >> you're trying to do from the start would be very helpful. > >> > >> Best regards, > >> Marcus > >> > >> > >> Am 22. Dezember 2015 05:56:46 MEZ, schrieb monika bansal > >> <<mailto:[email protected]>[email protected] > >> <mailto:[email protected]>>: > >> > >> Hii marcus, > >> > >> I am trying to decode the symbols and use the decoded > >> symbols for further processing in the same python written > >> module. I am not able to call the "constellation" related > >> functions. > >> How can i use them ? or is there any "decoder" written in > >> python ? > >> > >> Thanks !! > >> > >> > >> > >> On Tue, Dec 22, 2015 at 3:48 AM, Marcus Müller > >> <<mailto:[email protected]>[email protected] > >> <mailto:[email protected]>> wrote: > >> > >> qpsk.py can't be run. > >> It's just a python module containing functionality for > >> QPSK, but no "main" function or similar. > >> > >> What are you actually trying to do? > >> > >> Best regards, > >> Marcus > >> > >> > >> On 21.12.2015 21:09, monika bansal wrote: > >>> Hii, > >>> > >>> I am trying to decode qpsk symbols for channel > >>> estimation block in python but there is error in > >>> importing digital_swig. > >>> This also happens when i run "qpsk.py" as shown below: > >>> > >>> *Traceback (most recent call last):* > >>> * File "qpsk.py", line 32, in <module>* > >>> * import digital_swig as digital* > >>> *ImportError: No module named digital_swig* > >>> > >>> Is there some other way or what should i do ? > >>> > >>> > >>> > >>> > >>> _______________________________________________ > >>> Discuss-gnuradio mailing list > >>> [email protected] > >>> <mailto:[email protected]> > >>> > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio > >> > >> > >> _______________________________________________ > >> Discuss-gnuradio mailing list > >> [email protected] <mailto: > [email protected]> > >> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio > >> > >> > >> > ------------------------------------------------------------------------ > >> > >> Discuss-gnuradio mailing list > >> [email protected] <mailto:[email protected]> > >> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio > >> > >> -- Sent from my Android device with K-9 Mail. Please excuse my > >> brevity. > >> > > > > > > > > > > _______________________________________________ > > Discuss-gnuradio mailing list > > [email protected] > > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio > > > >
_______________________________________________ Discuss-gnuradio mailing list [email protected] https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
