file_sink = gr_make_file_sink(sizeof(gr_complex), filenamein.c_str());
tb->connect(amp,0, file_sink,0);
it run fine. but if I use the usrp sink, as follows:
double freq= 2450e6;
int gain = 35;
boost::shared_ptr<uhd_usrp_sink> usrp_sink = uhd_make_usrp_sink(device_addr,uhd::stream_args_t("fc32"));
usrp_sink->set_center_freq(freq);
usrp_sink->set_gain(gain);
tb->connect(amp,0, usrp_sink,0);
Its error information is:
Uterminate called after throwing an instance of
'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::math::rounding_error> >'
what(): Error in function boost::math::round<d>(d): Value inf can not be represented in the target integer type.
已放弃 (core dumped)
I google it and someone said The value"inf" is usually due to a divide-by-zero error somewhere in the chain.
But I do not know how to correct it, so, Thanks very much for your help!
Best Regard!