def EN300086(): print("--------------------------------------------") print("EN300086 V2.1.2") print("--------------------------------------------") print("1. Rx-Maximum usable sensitivity(conducted)") print("2. Rx-Co-channel rejection") print("3. Rx-Intermodulation response rejection") print("4. Run all Rx test on standard required channels") print("5. Go back to last menu") print("0. Quit") while True: choice = input("> ") if choice == "1": config.test_frequency = input("input test frequency in MHz > ") Module.SW1.Switch_to_Ax(2) Module.CHSW_MUS(config.test_frequency, start_row=0, end_row=1, clear=1) EN300086() elif choice == "2": config.test_frequency = input("input test frequency in MHz > ") Module.SW1.Switch_to_Ax(2) Module.CHSW_CCR(config.test_frequency, start_row=0, end_row=1, clear=1) EN300086() elif choice == "3": config.test_frequency = input("input test frequency in MHz > ") Module.SW1.Switch_to_Ax(2) Module.CHSW_Intermodulation(config.test_frequency, start_row=0, end_row=1, clear=1) EN300086() elif choice == "4": Module.SW1.Switch_to_Ax(2) Module.CHSW_MUS(451.0125, start_row=0, end_row=1, clear=1) # clear sheet in first run Module.CHSW_MUS(518.9875, start_row=2, end_row=3, clear=0) Module.CHSW_CCR(451.0125, start_row=0, end_row=1, clear=1) Module.CHSW_CCR(518.9875, start_row=2, end_row=3, clear=0) Module.CHSW_Intermodulation(451.0125, start_row=0, end_row=1, clear=1) Module.CHSW_Intermodulation(518.9875, start_row=2, end_row=3, clear=0) start() elif choice == "5": start() elif choice == "0": Module.FSV.close() Module.SML.close() Module.SMB.close() Module.SMC.close() Module.CMS.close() exit(0) else: print("please enter number within the range from 0 to 4.")