discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] how to control 2 TX channels of USRP B210 through mes


From: Mindaugas Knyva
Subject: [Discuss-gnuradio] how to control 2 TX channels of USRP B210 through message port
Date: Thu, 13 Jul 2017 15:18:24 +0300

Hi all,
I'm using USRP B210 and want to control both TX channels through message port. My code of OOT module presented bellow

pmt::pmt_t d_txCommand;
              d_txCommand = pmt::make_dict();
              d_txCommand = pmt::dict_add(d_txCommand, pmt::mp("chan"), pmt::mp(0));
              d_txCommand = pmt::dict_add(d_txCommand, pmt::mp("lo_freq"), pmt::mp(350e6));
              d_txCommand = pmt::dict_add(d_txCommand, pmt::mp("gain"), pmt::mp(30));
              d_txCommand = pmt::dict_add(d_txCommand, pmt::mp("chan"), pmt::mp(1));
              d_txCommand = pmt::dict_add(d_txCommand, pmt::mp("lo_freq"), pmt::mp(351e6));
              d_txCommand = pmt::dict_add(d_txCommand, pmt::mp("gain"), pmt::mp(30));
              message_port_pub(PDU_PORT_ID, d_txCommand );

UHD sink block configured to use 2 chanels, MB0: Subdev Spec A:A A:B.

After running  GRC file I see on spectrum analyser only one TX channel (the last  one -> 351e6 ). Is it possible to set both channels to work with different frequencies? instead of lo_freq i tried to use dsp_freq, but result was the same.

Best regards,
MK



reply via email to

[Prev in Thread] Current Thread [Next in Thread]