This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import time | |
import math | |
sys.path.append("./Scripts") | |
GUI_Module=__import__('Device_GUI') | |
def FWR_read(input_mask, frequency=32, delay=0.5): | |
set_frequency(frequency) | |
GUI.write_register("AFE4300", "IQ_MODE_ENABLE", 0x00) #Select FWR Mode | |
GUI.write_register("AFE4300", "ADC_CONTROL_REGISTER2", 0x63) #ADCREF to VREF / ADC connected to BCM |