import time from chimera.instruments.sbig.sbigdrv import SBIGDrv s = SBIGDrv() t1 = time.time() if not s.openDriver(): print s.getError() exit(-1) if not s.openDevice(SBIGDrv.usb): print s.getError() exit(-1) if not s.establishLink(): print s.getError() exit(-1) if not s.queryCCDInfo(): print s.getError() exit(-1) t2 = time.time() print t2-t1 if not s.closeDevice(): print s.getError() exit(-1)
import time from chimera.instruments.sbig.sbigdrv import SBIGDrv s = SBIGDrv() t1 = time.time() if not s.openDriver(): print s.getError() exit(-1) if not s.openDevice(SBIGDrv.usb): print s.getError() exit(-1) if not s.establishLink(): print s.getError() exit(-1) if not s.queryCCDInfo(): print s.getError() exit(-1) t2 = time.time() print t2 - t1 if not s.closeDevice(): print s.getError() exit(-1)