[USRP-users] UHD Timed Commands

Nigel Steed nigel.steed at xenint.com
Tue Mar 1 10:00:24 EST 2016


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

self.uhd_usrp_source_rx.set_command_time(future_rx_cmd_time)



# 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

self.uhd_usrp_source_rx.clear_command_time()



# 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:

2.99999998
4.99999998

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 ?

Thanks,

Nigel


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


More information about the USRP-users mailing list