[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] RuntimeError: bad lexical cast: source type value
From: |
Josh Blum |
Subject: |
Re: [Discuss-gnuradio] RuntimeError: bad lexical cast: source type value could not be interpreted as target |
Date: |
Fri, 26 Nov 2010 11:53:18 -0500 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 |
boost lexical cast doesnt have a very telling error does it...
Can you send me the complete verbose?
Does the error happen when you run uhd_usrp_probe?
Howabout uhd.single_usrp_source?
Does GDB give any hint as to where the exception is thrown?
Thanks,
-Josh
On 11/26/2010 04:05 AM, Tobias Schmid wrote:
> Hello,
>
> I'm trying to use 2 USRP2 using the UHD Driver.
> My version is the git version of yesterday.
>
> But when I'm trying to build a flowgraph using grc,
> gnuradio isn't able to run the generated code.
>
> The following error occurs:
>
> RuntimeError: bad lexical cast: source type value could not be interpreted as
> target
>
> And this is the generated code:
>
> self.uhd_multi_usrp_source_0 = uhd.multi_usrp_source(
> device_addr="addr=192.168.10.2 192.168.10.3",
> io_type=uhd.io_type_t.COMPLEX_FLOAT32,
> num_channels=2,
> )
> _clk_cfg = uhd.clock_config_t()
> _clk_cfg.ref_source = uhd.clock_config_t.REF_SMA
> _clk_cfg.pps_source = uhd.clock_config_t.PPS_SMA
> _clk_cfg.pps_polarity = uhd.clock_config_t.PPS_POS
> self.uhd_multi_usrp_source_0.set_clock_config(_clk_cfg, uhd.ALL_MBOARDS);
> self.uhd_multi_usrp_source_0.set_time_unknown_pps(uhd.time_spec_t())
> self.uhd_multi_usrp_source_0.set_samp_rate(1000000)
> self.uhd_multi_usrp_source_0.set_center_freq(2450000000, 0)
> self.uhd_multi_usrp_source_0.set_gain(20, 0)
> self.uhd_multi_usrp_source_0.set_center_freq(2450000000, 1)
> self.uhd_multi_usrp_source_0.set_gain(20, 1)
>
> Can someone help me solving this problem?
>
> Best regards,
>
> Tobias
>
>
>
> Neu: WEB.DE De-Mail - Einfach wie E-Mail, sicher wie ein Brief!
> Jetzt De-Mail-Adresse reservieren: https://produkte.web.de/go/demail02
>
>
>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio