def Scope(C): from scope_window import ScopeWindow win = ScopeWindow() val = "" while True: inputs_dict = C.read('inputs_dict') val = "" for input in sorted(inputs_dict): val = val + input + ": " + str(inputs_dict[input]) + "\n" win.setText(val) yield dict()
def Intelliboard(C): from scope_window import ScopeWindow win = ScopeWindow() sel = 0 outstr = "" win.setText("Waiting for board to be stable...") yield C.Wait(100) while True: yield {'nSelect': sel} yield C.Wait(5) #Propagation delay outstr = outstr + "\n" + str(C.read('muxes')) sel = (sel + 1) % 8 if sel == 0: #Next selection loops over win.setText(outstr) outstr = ""