[USRP-users] UHD Timed Commands

Nigel Steed nigel.steed at xenint.com
Tue Mar 1 10:45:34 EST 2016


I have repeated this to print out the N210 time from the C code UHD Source Block and this works fine. Does that mean you cannot get time commands working in python if its not reading the fractional time correctly ?

Is there a method to read the time from the 2 N210 individually, as I have them configured as one UHD source block with 2 channels ?



From: USRP-users [mailto:usrp-users-bounces at lists.ettus.com] On Behalf Of Nigel Steed via USRP-users
Sent: 01 March 2016 15:00
To: usrp-users at lists.ettus.com; support at ettus.com
Subject: [USRP-users] UHD Timed Commands

Hi All,

I have tried to issue timed commands to two separate N210/SBX by using the following python code:

# Determine a time in the future to setup a time command

rx_cmd_time = self.uhd_usrp_source_rx.get_time_last_pps()

rx_real_seconds = uhd.time_spec_t.get_real_secs(rx_cmd_time)

print rx_real_seconds

future_rx_real_seconds = rx_real_seconds + 2

print future_rx_real_seconds

future_rx_cmd_time = uhd.time_spec(future_rx_real_seconds)

# Set a timed command in the future


# Tune the receivers

self.uhd_usrp_source_rx.set_center_freq(tune_helper.int_n_tuning(self.tx_frequency*1e6), 0)

self.uhd_usrp_source_rx.set_center_freq(tune_helper.int_n_tuning(self.tx_frequency*1e6), 1)

# Clear the timed command


# Tune the transmitter

self.uhd_usrp_sink_tx.set_center_freq(tune_helper.int_n_tuning(self.tx_frequency*1e6), 0)

I do not understand the time values that get printed. They always have the same values after the decimal point as follow:


I also have 2 channels on the usrp_source representing the two separate N210/SBX units. How is it possible to view the time counter from each channel to ensure both N210/SBX units have the same value ?



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ettus.com/pipermail/usrp-users_lists.ettus.com/attachments/20160301/43c1c75e/attachment-0002.html>

More information about the USRP-users mailing list