hello, I've bought a ADALM PLUTO device recently. I tried to run the fm transmitter example given in the gr-iio library. however when I generate the python file I get the following error:
TypeError: pluto_sink_make() takes at most 9 arguments (10 given)
The pluto_sink_make() looks as follows:
self.pluto_sink_0 = iio.pluto_sink('usb:0456:b673', 700000000, 2084000, 10 - 1, 20000000, 8000, False, 10.0, '', True)
guess the highlighted part is the extra argument. please help
It seems like you are mixing and matching versions of the blocks. How did you install the gnuradio blocks?
i installed using pybombs as given in the wiki page. Could you please elaborate on what do you mean by mixing blocks?
My GRC file is as follows:
Wavefilesource -> Rational Resampler -> NBFM transmit -> Multiplier -> Plutosdr Sink
The extra parameter you have was a decimation parameter that got removed here:
pybombs currently points to a newer tag: https://github.com/gnuradio/gr-recipes/blob/master/gr-iio.lwr#L28
So you must have installed some older GRC files or have them lingering from an older install.
Found the error. In the GUI, for the pluto sink block, there's a field for interpolation which is absent in the actual C function hence the error of extra arguement. could you suggest any solution?
Yes, as I mentioned previously this parameter was removed but if you are using the current pybombs release it shouldn't try to populate that parameter as the sink doesn't populate it in GRC: https://github.com/analogdevicesinc/gr-iio/blob/v0.3/grc/iio_pluto_sink.xml#L8
Are you pulling an older release or generating the flowgraph from somewhere else? What commands did you use to install gr-iio?