HackRF_Phase_Scripts/main.py

25 lines
616 B
Python

import sys, time
from oscilloscope import *
from hack import *
SCOPE_ADDR = 'TCPIP::a-dx6004a-00191.local::inst0::INSTR'
DEV = ["0000000000000000f77c60dc254775c3"
, "0000000000000000f77c60dc237590c3"
, "0000000000000000f77c60dc2a5a9ec3"
, "0000000000000000f77c60dc2348c2c3"]
# Attempt connection to scope
scope = scope_conn(SCOPE_ADDR)
if scope == 0:
sys.exit("Well something went wrong, exiting...\n\n")
scope_init(scope)
for freq in range(2000000000, 3000000000,100000000):
for i in range(5):
print("beginning measurement")
meas, avg = run_phase_meas(scope, DEV, freq, 10)
print(meas)
print(avg)