The error you are getting looks like an index out of range error (as if you are requesting to set the gain on a channel that the USRP object doesn't think exists). Although I do not typically operate in gnuradio land, I recall in the past that sometimes it was necessary to specifically specify "device" or "port" args (e.g., set them to zero) rather than use their defaults of "-1". Rob
On Thu, Jul 23, 2020 at 2:48 PM Hodges, Jeff via USRP-users < usrp-users@lists.ettus.com> wrote: > Thank you Nick. I was using those same settings you recommended and still > getting the error. > > > The issue may be that I am using the LFRX boards? Are they not supported > with RFNoC because of the sample rate? > > > Jeff > > > > [INFO] [UHD] linux; GNU C++ version 7.5.0; Boost_106501; > UHD_3.15.0.0-54-gbc585b43 > [INFO] [X300] X300 initialization sequence... > [INFO] [X300] Maximum frame size: 1472 bytes. > [INFO] [X300] Radio 1x clock: 200 MHz > [INFO] [0/DmaFIFO_0] Initializing block control (NOC ID: > 0xF1F0D00000000000) > [INFO] [0/DmaFIFO_0] BIST passed (Throughput: 1301 MB/s) > [INFO] [0/DmaFIFO_0] BIST passed (Throughput: 1319 MB/s) > [INFO] [0/Radio_0] Initializing block control (NOC ID: 0x12AD100000000001) > [INFO] [0/Radio_1] Initializing block control (NOC ID: 0x12AD100000000001) > [INFO] [0/DDC_0] Initializing block control (NOC ID: 0xDDC0000000000000) > [INFO] [0/DDC_1] Initializing block control (NOC ID: 0xDDC0000000000000) > [INFO] [0/DUC_0] Initializing block control (NOC ID: 0xD0C0000000000000) > [INFO] [0/DUC_1] Initializing block control (NOC ID: 0xD0C0000000000000) > _____________________________________________________ > / > | Device: X-Series Device > | _____________________________________________________ > | / > | | Mboard: X310 > | | revision: 11 > | | revision_compat: 7 > | | product: 30818 > | | mac-addr0: 00:80:2f:17:b8:5f > | | mac-addr1: 00:80:2f:17:b8:60 > | | gateway: 192.168.10.1 > | | ip-addr0: 192.168.10.2 > | | subnet0: 255.255.255.0 > | | ip-addr1: 192.168.20.2 > | | subnet1: 255.255.255.0 > | | ip-addr2: 192.168.30.2 > | | subnet2: 255.255.255.0 > | | ip-addr3: 192.168.40.2 > | | subnet3: 255.255.255.0 > | | serial: 312CEC4 > | | FW Version: 6.0 > | | FPGA Version: 36.0 > | | FPGA git hash: 9ba275d > | | RFNoC capable: Yes > | | > | | Time sources: internal, external, gpsdo > | | Clock sources: internal, external, gpsdo > | | Sensors: ref_locked > | | _____________________________________________________ > | | / > | | | RX Dboard: A > | | | ID: LF RX (0x000f) > | | | Serial: 3117C2F > | | | _____________________________________________________ > | | | / > | | | | RX Frontend: AB > | | | | Name: LFRX (AB) > | | | | Antennas: AB, BA, A, B > | | | | Sensors: > | | | | Freq range: -32.000 to 32.000 MHz > | | | | Gain Elements: None > | | | | Bandwidth range: 64000000.0 to 64000000.0 step 0.0 Hz > | | | | Connection Type: IQ > | | | | Uses LO offset: No > | | | _____________________________________________________ > | | | / > | | | | RX Frontend: BA > | | | | Name: LFRX (BA) > | | | | Antennas: AB, BA, A, B > | | | | Sensors: > | | | | Freq range: -32.000 to 32.000 MHz > | | | | Gain Elements: None > | | | | Bandwidth range: 64000000.0 to 64000000.0 step 0.0 Hz > | | | | Connection Type: QI > | | | | Uses LO offset: No > | | | _____________________________________________________ > | | | / > | | | | RX Frontend: A > | | | | Name: LFRX (A) > | | | | Antennas: AB, BA, A, B > | | | | Sensors: > | | | | Freq range: -32.000 to 32.000 MHz > | | | | Gain Elements: None > | | | | Bandwidth range: 32000000.0 to 32000000.0 step 0.0 Hz > | | | | Connection Type: I > | | | | Uses LO offset: No > | | | _____________________________________________________ > | | | / > | | | | RX Frontend: B > | | | | Name: LFRX (B) > | | | | Antennas: AB, BA, A, B > | | | | Sensors: > | | | | Freq range: -32.000 to 32.000 MHz > | | | | Gain Elements: None > | | | | Bandwidth range: 32000000.0 to 32000000.0 step 0.0 Hz > | | | | Connection Type: Q > | | | | Uses LO offset: No > | | | _____________________________________________________ > | | | / > | | | | RX Codec: A > | | | | Name: ads62p48 > | | | | Gain range digital: 0.0 to 6.0 step 0.5 dB > | | _____________________________________________________ > | | / > | | | RX Dboard: B > | | | _____________________________________________________ > | | | / > | | | | RX Frontend: 0 > | | | | Name: Unknown (0xffff) - 0 > | | | | Antennas: > | | | | Sensors: > | | | | Freq range: 0.000 to 0.000 MHz > | | | | Gain Elements: None > | | | | Bandwidth range: 0.0 to 0.0 step 0.0 Hz > | | | | Connection Type: IQ > | | | | Uses LO offset: No > | | | _____________________________________________________ > | | | / > | | | | RX Codec: B > | | | | Name: ads62p48 > | | | | Gain range digital: 0.0 to 6.0 step 0.5 dB > | | _____________________________________________________ > | | / > | | | TX Dboard: A > | | | ID: LF TX (0x000e) > | | | Serial: 312D6A8 > | | | _____________________________________________________ > | | | / > | | | | TX Frontend: AB > | | | | Name: LFTX (AB) > | | | | Antennas: > | | | | Sensors: > | | | | Freq range: -32.000 to 32.000 MHz > | | | | Gain Elements: None > | | | | Bandwidth range: 64000000.0 to 64000000.0 step 0.0 Hz > | | | | Connection Type: IQ > | | | | Uses LO offset: No > | | | _____________________________________________________ > | | | / > | | | | TX Frontend: BA > | | | | Name: LFTX (BA) > | | | | Antennas: > | | | | Sensors: > | | | | Freq range: -32.000 to 32.000 MHz > | | | | Gain Elements: None > | | | | Bandwidth range: 64000000.0 to 64000000.0 step 0.0 Hz > | | | | Connection Type: QI > | | | | Uses LO offset: No > | | | _____________________________________________________ > | | | / > | | | | TX Frontend: A > | | | | Name: LFTX (A) > | | | | Antennas: > | | | | Sensors: > | | | | Freq range: -32.000 to 32.000 MHz > | | | | Gain Elements: None > | | | | Bandwidth range: 32000000.0 to 32000000.0 step 0.0 Hz > | | | | Connection Type: I > | | | | Uses LO offset: No > | | | _____________________________________________________ > | | | / > | | | | TX Frontend: B > | | | | Name: LFTX (B) > | | | | Antennas: > | | | | Sensors: > | | | | Freq range: -32.000 to 32.000 MHz > | | | | Gain Elements: None > | | | | Bandwidth range: 32000000.0 to 32000000.0 step 0.0 Hz > | | | | Connection Type: Q > | | | | Uses LO offset: No > | | | _____________________________________________________ > | | | / > | | | | TX Codec: A > | | | | Name: ad9146 > | | | | Gain Elements: None > | | _____________________________________________________ > | | / > | | | TX Dboard: B > | | | _____________________________________________________ > | | | / > | | | | TX Frontend: 0 > | | | | Name: Unknown (0xffff) - 0 > | | | | Antennas: > | | | | Sensors: > | | | | Freq range: 0.000 to 0.000 MHz > | | | | Gain Elements: None > | | | | Bandwidth range: 0.0 to 0.0 step 0.0 Hz > | | | | Connection Type: IQ > | | | | Uses LO offset: No > | | | _____________________________________________________ > | | | / > | | | | TX Codec: B > | | | | Name: ad9146 > | | | | Gain Elements: None > | | _____________________________________________________ > | | / > | | | RFNoC blocks on this device: > | | | > | | | * DmaFIFO_0 > | | | * Radio_0 > | | | * Radio_1 > | | | * DDC_0 > | | | * DDC_1 > | | | * DUC_0 > | | | * DUC_1 > > > > ------------------------------ > *From:* Nick Foster <bistrom...@gmail.com> > *Sent:* Thursday, July 23, 2020 2:40 PM > *To:* Hodges, Jeff > *Cc:* usrp-users@lists.ettus.com > *Subject:* Re: [USRP-users] X310 RFNoC Basic Transmit Signal Source > Flowgraph Not Working > > RFNoC Radio runs at a constant 200Msps. Use DUC parameters: input rate > 1Msps, output rate 200Msps. Use Radio parameter: Sampling Rate 200Msps. > > I don't know why you're getting a gain error. What daughterboard are you > using? > > In addition, you probably don't need the DMA FIFO for this FG. > > Nick > > On Thu, Jul 23, 2020 at 11:34 AM Hodges, Jeff via USRP-users < > usrp-users@lists.ettus.com> wrote: > >> Has anyone been able to transmit with RFNoC Radio using the standard FPGA >> image from UHD.3.15.LTS? >> >> >> I have a clean installation and ran SigGen --> RFNoC: DmaFIFO --> RFNoC: >> DUC --> RFNoC: Radio >> >> >> Most basic flow graph ever. It does not work. I get a run-time error. >> >> >> Traceback (most recent call last): >> File "/home/nvd/Documents/top_block.py", line 169, in <module> >> main() >> File "/home/nvd/Documents/top_block.py", line 157, in main >> tb = top_block_cls() >> File "/home/nvd/Documents/top_block.py", line 84, in __init__ >> self.uhd_rfnoc_streamer_radio_0.set_tx_gain(0, 0) >> File "/usr/local/lib/python2.7/dist-packages/ettus/ettus_swig.py", line >> 3235, in set_tx_gain >> return _ettus_swig.rfnoc_radio_sptr_set_tx_gain(self, gain, chan) >> RuntimeError: _Map_base::at >> >> >> >> Jeff >> ------------------------------ >> *From:* USRP-users <usrp-users-boun...@lists.ettus.com> on behalf of >> Hodges, Jeff via USRP-users <usrp-users@lists.ettus.com> >> *Sent:* Wednesday, July 22, 2020 8:49:05 PM >> *To:* usrp-users@lists.ettus.com >> *Subject:* [USRP-users] X310 RFNoC Basic Transmit Signal Source >> Flowgraph Not Working >> >> >> I get a set_tx_gain error running a basic signal generator through RFNoC >> Radio: >> >> Signal Source -> DMA FIFO -> DUC -> Radio (See image below) >> >> >> This is equivalent to: >> Signal Source --> USRP Sink (Works fine) >> >> >> https://kb.ettus.com/File:dma_fifo_v02.png >> >> >> <https://kb.ettus.com/File:dma_fifo_v02.png> >> >> Traceback (most recent call last): >> File "/home/nvd/Documents/top_block.py", line 169, in <module> >> main() >> File "/home/nvd/Documents/top_block.py", line 157, in main >> tb = top_block_cls() >> File "/home/nvd/Documents/top_block.py", line 84, in __init__ >> self.uhd_rfnoc_streamer_radio_0.set_tx_gain(0, 0) >> File "/usr/local/lib/python2.7/dist-packages/ettus/ettus_swig.py", line >> 3235, in set_tx_gain >> return _ettus_swig.rfnoc_radio_sptr_set_tx_gain(self, gain, chan) >> RuntimeError: _Map_base::at >> >> >> I am using 3.15.LTS. >> >> >> Any ideas? >> >> >> Thanks, >> >> >> Jeff >> >> _______________________________________________ >> USRP-users mailing list >> USRP-users@lists.ettus.com >> http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com >> > _______________________________________________ > USRP-users mailing list > USRP-users@lists.ettus.com > http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com >
_______________________________________________ USRP-users mailing list USRP-users@lists.ettus.com http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com