def __init__(self, dimension=4, canvasSize=1024, start=False, resolution=10, lia=1): ''' A class to perform data collection and image creation @Params dimension: resolution of the mask resolution = 2^dimension (not resolution of schottky pic, resolution of the resulting pixelated image) (dimension = 1 -> 2x2, dimension = 2 -> 4x4) canvasSize: size of the mask image ''' self.dimension = dimension self.canvasSize = canvasSize self.matrixList = createH(self.dimension, '111-', []) self.xpos = 0 self.resolution = resolution self.schottky = [[0 for x in range(self.resolution)] for x in range(self.resolution)] if start: self.esp = dev.ESP() self.zva = dev.ZVA() self.mm = dev.KEITHLEY() if lia: self.lia = dev.LIASR530() else: self.lia = dev.LIA5209() else: print "NOTE: GPIB instuments have not been initialized."
def start_all(self, lia=1): self.esp = dev.ESP() self.zva = dev.ZVA() self.mm = dev.KEITHLEY() if lia: self.lia = dev.LIASR530() else: self.lia = dev.LIA5209()
def __init__(self, base_dir=os.getcwd(), start=False, resolution=10, lia=1): ''' A class to perform data collection and image creation @Params dimension: resolution of the mask resolution = 2^dimension (not resolution of schottky pic, resolution of the resulting pixelated image) (dimension = 1 -> 2x2, dimension = 2 -> 4x4) canvasSize: size of the mask image ''' self.base_dir = base_dir self.xpos = 0 self.resolution = resolution self.schottky = [[0 for x in range(self.resolution)] for x in range(self.resolution)] if start: self.esp = dev.ESP() self.zva = dev.ZVA() self.mm = dev.KEITHLEY() if lia: self.lia = dev.LIASR530() else: self.lia = dev.LIA5209() #else: #print "NOTE: GPIB instuments have not been initialized." if not os.path.exists('Data'): os.mkdir('Data') os.chdir('Data') os.mkdir('hadamard') os.mkdir('raster') os.mkdir('bar') os.mkdir('walsh') os.mkdir('random') os.chdir('..')
def start_mm(self): self.mm = dev.KEITHLEY()