Exemplo n.º 1
0
def crate_disabler():
    try:
        if (crate_disable.is_set()) & (power.is_set()):
            lzamp.power_off()
            power.clear()
    except (KeyboardInterrupt, SystemExit):
        raise
    except Exception:
        exception_traceback_log.exception('The following error occurred:')
        pass
Exemplo n.º 2
0
    tmp = 'n'
    while not tmp == 'y':
        tmp = raw_input((question))
        if tmp == 'n':
            return (True)
        elif not tmp == 'y':
            print('try again')
    return (False)


if __name__ == '__main__':
    event = Event()
    complete = Event()
    error = Event()
    lzamp.setup()
    lzamp.power_off()
    lzamp.test_on()

    # tester='JB'
    # date='12/15/2019'
    # tstart='0000'
    # serNums=[605,608,607,606]

    tester = raw_input('Enter name of tester: ')
    date = raw_input('Enter date: (MM/DD/YYYY) ')
    tstart = raw_input(
        'Enter start time in 24-hour format: (1:17 pm would be 1317) ')

    serNums = [0, 0, 0, 0]
    for slot in range(1, 5):
        ii = 0