mirror of
https://github.com/saymrwulf/uhd.git
synced 2026-05-16 21:10:10 +00:00
Added subdev argument to rx_samples_to_udp example
This commit is contained in:
parent
8d2262f6b3
commit
fb2cbe6e8d
1 changed files with 5 additions and 0 deletions
|
|
@ -74,6 +74,11 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
|
|||
//Lock mboard clocks
|
||||
usrp->set_clock_source(ref);
|
||||
|
||||
//always select the subdevice first, the channel mapping affects the other settings
|
||||
if (vm.count("subdev")) {
|
||||
usrp->set_rx_subdev_spec(subdev);
|
||||
}
|
||||
|
||||
//set the rx sample rate
|
||||
std::cout << boost::format("Setting RX Rate: %f Msps...") % (rate/1e6) << std::endl;
|
||||
usrp->set_rx_rate(rate);
|
||||
|
|
|
|||
Loading…
Reference in a new issue