def __emergency_recover(self):
    ec0 = PyTango.DeviceProxy('tango/admin/b-v-nanomax-ec-0')
    ioc = PyTango.DeviceProxy('tango/admin/b-nanomax-ec-6')
    ec0.HardKillServer('LC400ScanControl/B303A')
    ioc.HardKillServer('NpointLC400/B303A')
    print('Killing the npoint devices and waiting...')
    for i in range(10):
        print('*')
        time.sleep(1)
    ioc.DevStart('NpointLC400/B303A')
    print('Starting the npoint motor device and waiting...')
    for i in range(10):
        print('*')
        time.sleep(1)
    ec0.DevStart('LC400ScanControl/B303A')
    print('Starting the npoint scancontrol device and waiting...')
    for i in range(10):
        print('*')
        time.sleep(1)
    self.initialize()
    for (k, v) in self.sc_params.items():
        self.proxy.write_attribute(k, v)
    self.proxy.ConfigureLC400Motion()
    self.proxy.ConfigureLC400Recorder()
    self.proxy.ConfigureStanford()
def __emergency_recover(self):
    ec0 = PyTango.DeviceProxy('tango/admin/b-v-nanomax-ec-0')
    ioc = PyTango.DeviceProxy('tango/admin/b-nanomax-ec-6')
    ec0.HardKillServer('LC400ScanControl/B303A')
    ioc.HardKillServer('NpointLC400/B303A')
    print('Killing the npoint devices and waiting...')
    for i in range(10):
        print('*')
        time.sleep(1)
    ioc.DevStart('NpointLC400/B303A')
    print('Starting the npoint motor device and waiting...')
    for i in range(10):
        print('*')
        time.sleep(1)
    ec0.DevStart('LC400ScanControl/B303A')
    print('Starting the npoint scancontrol device and waiting...')
    for i in range(10):
        print('*')
        time.sleep(1)
    self.initialize()
    for (k, v) in self.sc_params.items():
        self.proxy.write_attribute(k, v)
    self.proxy.ConfigureLC400Motion()
    self.proxy.ConfigureLC400Recorder()
    self.proxy.ConfigureStanford()