[USRP-users] ERROR_CODE_ALIGNMENT (Multi-channel alignment failed) for 2 channel receiving with USRP2 and BasicRx
craigtong04 at gmail.com
Mon Oct 27 05:04:43 EDT 2014
I'm wondering if anyone can give me some pointers.
I'm trying to get 2 separate channels out of a USRP2 using the
respective RF connectors on the BasicRx daughter board.
Currently its returning ERROR_CODE_ALIGNMENT (Multi-channel alignment
failed) and I'm not getting any data out.
The relevant lines of code are:
uhd::stream_args_t oStreamArgs("sc16", "sc16"); //Use 16 bit complex shorts
oStreamArgs.channels = vChannelsNumbers;
m_pUSRPRxStreamer = m_pUSRP->get_rx_stream(oStreamArgs);
Then I'm also setting and checking the RTC on the USRP but I don't
imagine this changes anything.
boost::posix_time::time_duration oDurationSinceEpoc =
boost::posix_time::microsec_clock::universal_time() - oEpoch;
uhd::time_spec_t oUSRPTime = m_pUSRP->get_time_now(); //Confirm time set
And the stream command
oStreamCmd.stream_now = true;
The recv function doesn't return any data. If I change the
vChannelNumber vector to contain only 0 or 1 then the code work but only
the first of the 2 buffers passed to recv(...) is filled as is to be
expected. The data rate into the PC is also half is this case so is
seems like data is being streamed in the 2 channel case its just somehow
misaligned (by timestamp?) according the UHD library.
If anyone has any ideas I would greatly appreciate it.
Radar Remote Sensing Group
Department of Electrical Engineering
University of Cape Town
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the USRP-users