discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] Synchronize phases between two N200


From: Shih Oliver
Subject: [Discuss-gnuradio] Synchronize phases between two N200
Date: Thu, 27 Sep 2012 03:41:33 +0000

Hi, 

      I'm trying to synchronize two N200s in phases with both of them having GPSDO inside. I followed
the instructions on ettus for synchronizing channel phase. However, I got error message as follows, 

UHD source block got error code 0x2
gr_block_executor: source <gr_block gr uhd usrp source (19)> produced no output.  We're marking it DONE.
UHD source block got error code 0x2
gr_block_executor: source <gr_block gr uhd usrp source (18)> produced no output.  We're marking it DONE.

and here's part of my code:
bool start(void){
        #ifdef GR_UHD_USE_STREAM_API
        _rx_stream = _dev->get_rx_stream(_stream_args);
        _samps_per_packet = _rx_stream->get_max_num_samps();
        #endif
        //setup a stream command that starts streaming slightly in the future
        static const double reasonable_delay = 0.5; //order of magnitude over RTT
        uhd::stream_cmd_t stream_cmd(uhd::stream_cmd_t::STREAM_MODE_NUM_SAMPS_AND_DONE);
        stream_cmd.num_samps = 200000;
        stream_cmd.stream_now = false;
         stream_cmd.time_spec = uhd::time_spec_t(reasonable_delay);
        _dev->issue_stream_cmd(stream_cmd);
        _tag_now = true;
        return true;
    }

Thanks for any help in advance. 

Best regards, 

Oliver

reply via email to

[Prev in Thread] Current Thread [Next in Thread]