def cb_poff_nco2_changed(self, widget, value): vals.cb_poff_nco2 = value print("/dev/nco2", samp_freq, self.sb_pinc_nco2.get_value(), 40, int(self.sb_poff_nco2.get_value()), int(self.cb_pinc_nco2.get_value()), int(value == True)) liboscimp_fpga.nco_counter_send_conf( "/dev/nco2", samp_freq, ctypes.c_double(float(self.sb_pinc_nco2.get_value())), 40, int(self.sb_poff_nco2.get_value()), int(self.cb_pinc_nco2.get_value()), int(value == True)) self.cb_poff_nco2.set_value(int(value == True))
def sb_poff_nco1_changed(self, widget, value): vals.poff_nco1 = value print("/dev/nco1", samp_freq, self.sb_pinc_nco1.get_value(), 40, int(value), int(self.cb_pinc_nco1.get_value()), int(self.cb_poff_nco1.get_value())) liboscimp_fpga.nco_counter_send_conf( "/dev/nco1", samp_freq, ctypes.c_double(float(self.sb_pinc_nco1.get_value())), 40, int(value), int(self.cb_pinc_nco1.get_value()), int(self.cb_poff_nco1.get_value())) self.sd_poff_nco1.set_value(value)
def sb_poff_demod2_nco_changed(self, widget, value): print("/dev/demod2_nco", 125000000, self.sb_pinc_demod2_nco.get_value(), 40, int(value), int(self.cb_pinc_demod2_nco.get_value()), int(self.cb_poff_demod2_nco.get_value())) liboscimp_fpga.nco_counter_send_conf( "/dev/demod2_nco".encode("utf-8"), 125000000, ctypes.c_double(float(self.sb_pinc_demod2_nco.get_value())), 40, int(value), int(self.cb_pinc_demod2_nco.get_value()), int(self.cb_poff_demod2_nco.get_value())) self.sd_poff_demod2_nco.set_value(value)
def cb_poff_dds2_nco_changed(self, widget, value): vals.cb_poff_dds2_nco = value print("/dev/dds2_nco", 125000000, self.sb_pinc_dds2_nco.get_value(), 40, int(self.sb_poff_dds2_nco.get_value()), int(self.cb_pinc_dds2_nco.get_value()), int(value == "true")) liboscimp_fpga.nco_counter_send_conf( "/dev/dds2_nco".encode("utf-8"), 125000000, ctypes.c_double(float(self.sb_pinc_dds2_nco.get_value())), 40, int(self.sb_poff_dds2_nco.get_value()), int(self.cb_pinc_dds2_nco.get_value()), int(value == "true")) self.cb_poff_dds2_nco.set_value(int(value == "true"))
def sd_pinc_perturb_nco_changed(self, widget, value): vals.pinc_perturb_nco = value print("/dev/perturb_nco", 125000000, int(value), 40, int(self.sb_poff_perturb_nco.get_value()), int(self.cb_pinc_perturb_nco.get_value()), int(self.cb_poff_perturb_nco.get_value())) liboscimp_fpga.nco_counter_send_conf( "/dev/perturb_nco".encode("utf-8"), 125000000, ctypes.c_double(int(value)), 40, int(self.sb_poff_perturb_nco.get_value()), int(self.cb_pinc_perturb_nco.get_value()), int(self.cb_poff_perturb_nco.get_value())) self.sb_pinc_perturb_nco.set_value(int(value))
def sd_poff_dds1_nco_changed(self, widget, value): vals.poff_dds1_nco = value print("/dev/dds1_nco", 125000000, self.sb_pinc_dds1_nco.get_value(), 40, int(value), int(self.cb_pinc_dds1_nco.get_value()), int(self.cb_poff_dds1_nco.get_value())) if (verLess37): liboscimp_fpga.nco_counter_send_conf( "/dev/dds1_nco".encode("utf-8"), 125000000, ctypes.c_double(float(self.sb_pinc_dds1_nco.get_value())), 40, int(value), int(self.cb_pinc_dds1_nco.get_value()), int(self.cb_poff_dds1_nco.get_value())) else: liboscimp_fpga.nco_counter_send_conf( "/dev/dds1_nco", 125000000, ctypes.c_double(float(self.sb_pinc_dds1_nco.get_value())), 40, int(value), int(self.cb_pinc_dds1_nco.get_value()), int(self.cb_poff_dds1_nco.get_value())) self.sb_poff_dds1_nco.set_value(value)