|
From: | Tobias Schmid |
Subject: | [Discuss-gnuradio] RuntimeError: bad lexical cast: source type value could not be interpreted as target |
Date: | Fri, 26 Nov 2010 10:05:56 +0100 (CET) |
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
|
[Prev in Thread] | Current Thread | [Next in Thread] |