LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NIUSRP, error in receiving data with synchronized 5 USRP2 boards

Solved!
Go to solution

I am trying to synchronize 5 USRP2 boards and receive data. It works when I choose 'Now' in 'apply timestamp' of 'niUSRP Set Time'. However, when I switch to 'Next Timebase Edge', why doesn't it work? It always comes to be the errer of 'A stream command was issued in the past'. Is it caused by hardware or software? How to fix it?

 

The test file is in the attachment.

0 Kudos
Message 1 of 6
(5,072 Views)

hi Yikai, did you try to run the examples niUSRP EX Tx Finite Sync and niUSRP EX Rx Finite Sync? To connect more than two USRP devices you will need matched length cables, an external 10 MHz clock source to use for REF IN, and a pulse per second source for the PPS IN so that all USRPs will be in phase and synchronized with each other. We also recommend that each USRP device have its own dedicated gigabit ethernet connection to the computer to higher bandwidth (compared to a gigabit switch and one gigabit ethernet adapter).

 

If you still came across errors, you may be assisted better if you post this question at NI USRP and provide the error sceenshots as well.

Yupeng J.
0 Kudos
Message 2 of 6
(5,047 Views)

I belive the error is occuring because you have set the reference clocks incorrectly. depending on how you have connected them all togeth you need to set one of the USRP's as the master and the rest to run off of that. how you have it set up at the moment they are all set as slaves and nothing is producing a clock source. Have a look at http://www.ni.com/white-paper/13878/en and see how each of the USRPs clocks have been indevidually configured.

 

Let us know how you get on.

Matthew Trott
Applications Engineer
National Instruments UK
www.ni.com/ask
0 Kudos
Message 3 of 6
(5,037 Views)

Hi, Yupeng

I am very sure I have synchronized the boards with a signal generator and a waveform generator. The signal generator generates a 10 MHz signal with amplitude of -5.4 dBm. The generated signal then goes through an amplifier to have a peak-to-peak amplitude from 2.5V to 3V. After that, the output is connected to REF CLOCK ports of the receiver boards through a splitter. The waveform generator creates a square wave with Vpp = 5V, Vp = 5V and frequency of 1 Hz. It connects to PPS IN ports of the receiver boards via a splitter. All cables have the same length.

 

The problem is that it can work when I choose 'Now' in 'apply timestamp' of 'niUSRP Set Time'. However, it doesn't work when 'Next Timebase Edge' is applied.

 

Thanks for your reply very much.

Yikai

0 Kudos
Message 4 of 6
(5,022 Views)

Hi, Matthew Trott 

 

I am very sure I have synchronized the boards with a signal generator and a waveform generator. The signal generator generates a 10 MHz signal with amplitude of -5.4 dBm. The generated signal then goes through an amplifier to have a peak-to-peak amplitude from 2.5V to 3V. After that, the output is connected to REF CLOCK ports of the receiver boards through a splitter. The waveform generator creates a square wave with Vpp = 5V, Vp = 5V and frequency of 1 Hz. It connects to PPS IN ports of the receiver boards via a splitter. All cables have the same length.

 

The problem is that it can work when I choose 'Now' in 'apply timestamp' of 'niUSRP Set Time'. However, it doesn't work when 'Next Timebase Edge' is applied.

 

Thanks for your reply very much.

Yikai

0 Kudos
Message 5 of 6
(5,021 Views)
Solution
Accepted by Yikai

The set time vi depends on where it is placed in the task as to which setting you need in the Enum. Now is required before the task is started because even though you have supplied an external source we have not looked at what it is at this point.

 

After the task has been started Next timebase edge becomes a valid choice because we are now looking for a timebase to use. This makes the below code perfectly valid as an example of what I mean.

 

 

Capture.PNG

I hope this explains the issue

Matthew Trott
Applications Engineer
National Instruments UK
www.ni.com/ask
Message 6 of 6
(5,015 Views)