Hello, I've made a code in matlab for GNURadio but I don't know how to insert this code in the files programmed in python in GNURadio. Can anyone tell me how to do it?I've seen there are some files done in matlab but I couldn't figure out how they have been inserted. Thank you very much!
on 2008-03-19 18:51
on 2008-03-19 19:04
On Wed, Mar 19, 2008 at 06:50:22PM +0100, Jose Emilio Gervilla Rega wrote: > > Hello, > > I've made a code in matlab for GNURadio but I don't know how to > insert this code in the files programmed in python in GNURadio. Can > anyone tell me how to do it?I've seen there are some files done in > matlab but I couldn't figure out how they have been inserted. GNU Radio doesn't run Matlab or Octave code. The code in the tree is typically used for displaying the output of log files. Eric
on 2008-03-19 19:05
Jose Emilio Gervilla Rega wrote: > Hello, > > I've made a code in matlab for GNURadio but I don't know how to insert > this code in the files programmed in python in GNURadio. Can anyone tell > me how to do it?I've seen there are some files done in matlab but I > couldn't figure out how they have been inserted. > > Thank you very much! > Hi, The octave scripts, found in here: http://gnuradio.org/trac/browser/gnuradio/trunk/gn... ... are not actually inserted into a GNU Radio flowgraph or anything. They are simply used to post-process data from GNU Radio. I think some people have managed to integrate GNU Radio and matlab in the past, I don't know how though. But, those files I think you're speaking of are for post-processing. - George
on 2008-03-20 13:59
What I was talking about I think it is not post-processing like the files in the link you`ve put me in your answer. I refer for example at the synchronization matlab file which is implemented in the folder gnuradio/gnuradio-examples/python/ofdm. In this folder from the installed program is a file in matlab of synchronization and I think it is inserted by the makefile. Because of your answers I'm starting to think it is not inserted directly and the synchronization is being used by importing the blocks from blksimpl... and I think I should rewrite my code in python in order to insert it in GNURadio, isn`t it? Thank you!> Date: Wed, 19 Mar 2008 14:04:02 -0400> From: gnychis@cmu.edu> To: ershemi@hotmail.com> CC: discuss-gnuradio@gnu.org> Subject: Re: [Discuss-gnuradio] How to insert a matlab file into GNURadio in python> > > > Jose Emilio Gervilla Rega wrote:> > Hello,> > > > I've made a code in matlab for GNURadio but I don't know how to insert > > this code in the files programmed in python in GNURadio. Can anyone tell > > me how to do it?I've seen there are some files done in matlab but I > > couldn't figure out how they have been inserted.> > > > Thank you very much!> > > > Hi,> > The octave scripts, found in here:> http://gnuradio.org/trac/browser/gnuradio/trunk/gn... > ... are not actually inserted into a GNU Radio flowgraph or anything. > They are simply used to post-process data from GNU Radio.> > I think some people have managed to integrate GNU Radio and matlab in > the past, I don't know how though. But, those files I think you're > speaking of are for post-processing.> > - George
on 2008-03-20 14:14
Jose Emilio Gervilla Rega wrote:
> Thank you!
We made that m-file in the OFDM directory to prototype and debug the GNU
Radio synchronizer. It is not used in GNU Radio, but we put it into the
source in case we (a) needed it again or (b) someone else could make use
of it.
Tom
on 2008-03-21 06:56
I used MATLAB to create waveforms and then send them to GNURadio using TCP ports and out through the USRP (and vise versa). Not sure if this is what you want, but this is how I did it... On the python side, I used the following code to open the TCP socket... http://alumni.media.mit.edu/~jcooley/gr_experiment... m On the MATLAB side, I used this code... http://www.mathworks.com/matlabcentral/fileexchang... The MATLAB code would look something like... Data = <create a waveform> con=pnet('tcpconnect','127.0.0.1',8881) pnet(con,'write', data, 'NATIVE'); pnet(con,'close'); The python code would look something like... ## imports... from gr_socket import * # the main flow would be as follows. u = usrp.sink_c () (src, fd, conn) = make_socket_source(8881, 4) fmtx = blks.nbfm_tx (fg, audio_rate, usrp_rate, max_dev=2.5e3, tau=75e-6) gain = gr.multiply_const_cc (40.0) fg.connect (src, fmtx, gain, u) You can receive data in GNURadio and send it directly to MATLAB just as easy. Hope this helps... Kevin
on 2013-01-31 09:10
hi kevin i m trying to link matlab with gnu radio i also fallow your stip but i have face a problum "the link which you give is not open it gives '404 not found' " and can you help me that how to open blok of matlab in gnu radio i m working on fyp of bet thanx to read and i apologies if you could not understand my language or spelling
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.