I'm trying to query my USB dongle (NooElec R820T SDR) to determine what frequency it's tuned to. I want to make the unit test configure call to see if the device is properly adjusted and working. I could simply use:
self.comp.frequency = 1000000
print self.comp.frequency
to set the value and print it out. However, I want to ask the hardware instead of the component. The RH manual has something like this:
# In this example, freqMHz is a defined property.
def onconfigure_prop_freqMHz(self, oldval, newval):
print "On Configure to value " + str(newval)
self.freqMHz = newval
self.port_labInterface_out.setFrequencyMHz(self.freqMHz)
I think this bit still only calls on the component value and not the hardware itself. Is it possible to use RH to query the device directly?
Thanks in advance.