Hello,

I am trying to use the suggestion for manual tuning:
https://files.ettus.com/manual/page_general.html#general_tuning_dsp_sign
I am using the following sensor code:

static uhd_sensor_value_handle lo_locked = NULL;
uhd_sensor_value_make(&lo_locked);
if ((err = uhd_usrp_get_rx_sensor(dev[channel], "lo_locked", channel,
&lo_locked)))
     warn(log, "Failed to get lo_locked[0] sensor\n", 0, FL, LN, FN);
if ((err = uhd_usrp_set_rx_freq(dev[channel], &tune_req, channel,
&tune_res)))
{
      error(log, "Unable to set Tuner[%d] to %ld Hz, LO[%d]: %ld H (%d).
%s.\n", 0, FL, LN,
             FN, channel, freq, channel, lo_off, err, uhdError(err));
             return(FAIL);
}
while (!ready)
{
      uhd_sensor_value_to_bool(lo_locked, &ready);
       printf("NIKOS!!! ready: %d\n", ready);
       sleep(0);
}

ready is always 0. Never changes value.Goes to an infinite loop. Am I doing
anything wrong?

TIA
Nikos
_______________________________________________
USRP-users mailing list -- usrp-users@lists.ettus.com
To unsubscribe send an email to usrp-users-le...@lists.ettus.com

Reply via email to