Line 44... |
Line 44... |
44 |
n1 = fgen.get_n1_div() |
44 |
n1 = fgen.get_n1_div() |
45 |
#fdco = 0 |
45 |
#fdco = 0 |
46 |
#fxtal = 0 |
46 |
#fxtal = 0 |
47 |
#regs = [0, 0, 0] |
47 |
#regs = [0, 0, 0] |
48 |
|
48 |
|
- |
|
49 |
''' |
- |
|
50 |
# sample GPS configuration |
- |
|
51 |
fcount.conf_GPS(0,5) # length of the GPS configurtion sentence |
- |
|
52 |
fcount.conf_GPS(1,ord('a')) # the first byte of GPS configuration sentence |
- |
|
53 |
fcount.conf_GPS(2,ord('b')) # the second byte of GPS configyration sentence |
- |
|
54 |
fcount.conf_GPS(3,ord('c')) |
- |
|
55 |
fcount.conf_GPS(4,ord('d')) |
- |
|
56 |
fcount.conf_GPS(5,ord('e')) |
- |
|
57 |
''' |
- |
|
58 |
fcount.set_GPS() # set GPS configuration |
49 |
|
59 |
|
50 |
#### Data Logging ################################################### |
60 |
#### Data Logging ################################################### |
51 |
|
61 |
|
52 |
try: |
62 |
try: |
53 |
with open("frequency.log", "a") as f: |
63 |
with open("frequency.log", "a") as f: |