Exemple #1
0
def loop_heartbeat():
    try:
        print('SC heartbeat started')
        while (not event.is_set()):
            lzamp.heartbeat_pulse(2)
        print('SC heartbeat stopped')
    except:
        error.set()
        print('ERROR: heartbeat failure')
Exemple #2
0
def loop_heartbeat():
    try:
        while (not end_log.is_set()):
            lzamp.heartbeat_pulse(2)

    except (KeyboardInterrupt, SystemExit):
        raise
    except Exception:
        exception_traceback_log.exception('The following error occurred:')
        pass