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.")