[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss-gnuradio] controlling individual gain elements using gain_group
From: |
Sanat Gulvadi |
Subject: |
[Discuss-gnuradio] controlling individual gain elements using gain_group |
Date: |
Tue, 5 Apr 2011 19:30:17 +0200 |
Hi,
I am not a very experienced programmer and I'd really appreciate some help.
I am working on a method to individually control gain elements of
daughter boards on the USRP2. Following is my code so far. Here, rx_subdev_device and rx_codec_obj are of type wax::obj that I have passed from another method. It compiles ok but during runtime throws the following error:
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::bad_lexical_cast> >'
what(): bad lexical cast: source type value could not be interpreted as target
Aborted
the code :
uhd::gain_group::sptr temp_rx_gg;
temp_rx_gg = uhd::gain_group::make();
uhd::usrp::dboard_id_t rx_bd_id = uhd::usrp::dboard_id_t::from_string("RX");
temp_rx_gg=uhd::usrp::make_gain_group(rx_bd_id, rx_subdev_device, rx_codec_obj, uhd::usrp::GAIN_GROUP_POLICY_RX);
std::vector<std::string> tempstr=temp_rx_gg->get_names();
for (size_t i=0; i<tempstr.size(); i++){
cout << boost::format("gain elements %s") % tempstr[i] << endl;
}
Thanks in advance,
Best Regards/Mit freundlichen Grüßen,
Sanat Dinker Gulvadi
Graduate student, TU Ilmenau.
98693 Ilmenau, Germany
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Discuss-gnuradio] controlling individual gain elements using gain_group,
Sanat Gulvadi <=