def __init__(self, *parameters: Parameter, interval: float=1):
    '\n        Monitor qcodes parameters.\n\n        Args:\n            *parameters: Parameters to monitor.\n            interval: How often one wants to refresh the values.\n        '
    super().__init__()
    for parameter in parameters:
        if (not isinstance(parameter, Parameter)):
            raise TypeError(f'We can only monitor QCodes Parameters, not {type(parameter)}')
    self.loop: Optional[asyncio.AbstractEventLoop] = None
    self.server: Optional[websockets.WebSocketServer] = None
    self._parameters = parameters
    self.loop_is_closed = Event()
    self.server_is_started = Event()
    self.handler = _handler(parameters, interval=interval)
    log.debug('Start monitoring thread')
    if Monitor.running:
        log.debug('Stopping and restarting server')
        Monitor.running.stop()
    self.start()
    self.server_is_started.wait(timeout=5)
    if (not self.server_is_started.is_set()):
        raise RuntimeError('Failed to start server')
    Monitor.running = self
Monitor qcodes parameters.

Args:
    *parameters: Parameters to monitor.
    interval: How often one wants to refresh the values.
def __init__(self, *parameters: Parameter, interval: float=1):
    '\n        Monitor qcodes parameters.\n\n        Args:\n            *parameters: Parameters to monitor.\n            interval: How often one wants to refresh the values.\n        '
    super().__init__()
    for parameter in parameters:
        if (not isinstance(parameter, Parameter)):
            raise TypeError(f'We can only monitor QCodes Parameters, not {type(parameter)}')
    self.loop: Optional[asyncio.AbstractEventLoop] = None
    self.server: Optional[websockets.WebSocketServer] = None
    self._parameters = parameters
    self.loop_is_closed = Event()
    self.server_is_started = Event()
    self.handler = _handler(parameters, interval=interval)
    log.debug('Start monitoring thread')
    if Monitor.running:
        log.debug('Stopping and restarting server')
        Monitor.running.stop()
    self.start()
    self.server_is_started.wait(timeout=5)
    if (not self.server_is_started.is_set()):
        raise RuntimeError('Failed to start server')
    Monitor.running = self