/Designs/Measuring_instruments/RMDS02C/SW/Host_controller/frequency_log.py
1,6 → 1,6
#!/usr/bin/python
#
# Sample of measiring and correct frequency with ACOUNTER02A
# Sample of measuring and frequency correction with ACOUNTER02A
 
import time
import datetime
18,7 → 18,9
#### Sensor Configuration ###########################################
 
cfg = config.Config(
port = port,
i2c = {
"port": port,
},
bus = [
{
"type": "i2chub",
32,7 → 34,7
)
cfg.initialize()
 
print "Frequency counter readout example \r\n"
print "RMDS Station frequency management test software \r\n"
fcount = cfg.get_device("counter")
fgen = cfg.get_device("clkgen")
time.sleep(0.5)
40,9 → 42,9
rfreq = fgen.get_rfreq()
hsdiv = fgen.get_hs_div()
n1 = fgen.get_n1_div()
fdco = 0
fxtal = 0
regs = [0, 0, 0]
#fdco = 0
#fxtal = 0
#regs = [0, 0, 0]
 
 
#### Data Logging ###################################################