From 161025e7df74148dddf37227d36ebf5e86d6442f Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 19 Dec 2016 09:33:20 +0100 Subject: [PATCH] korad_ka3005p: use ProactorEventLoop on windows --- artiq/frontend/korad_ka3005p_controller.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/artiq/frontend/korad_ka3005p_controller.py b/artiq/frontend/korad_ka3005p_controller.py index 623eedb54..816a8d552 100755 --- a/artiq/frontend/korad_ka3005p_controller.py +++ b/artiq/frontend/korad_ka3005p_controller.py @@ -6,6 +6,7 @@ import argparse import logging import sys import asyncio +import os from artiq.devices.korad_ka3005p.driver import KoradKA3005P from artiq.protocols.pc_rpc import simple_server_loop @@ -33,6 +34,9 @@ def main(): args = get_argparser().parse_args() init_logger(args) + if os.name == "nt": + asyncio.set_event_loop(asyncio.ProactorEventLoop()) + if not args.simulation and args.device is None: print("You need to specify either --simulation or -d/--device " "argument. Use --help for more information.")