#yStep = 1. ####################### # convert to Attocube DC drive voltage toDC_drive_voltage = 1./15 # APD counter integration time (ms) ctr_time_ms = 10 ctr_port = 'pfi0' ####################### # instruments dummyA = mscan_dummy.ScannerCtrl(channels = [2]) dummyB = mscan.GalvoDummy (chX = '/Dev1/ao1', chY = '/Dev1/ao0', ids = ['galvo-x', 'galvo-y']) apd0 = mdet.dummyAPD(work_folder = 'C:/') apd0.set_integration_time_ms(ctr_time_ms) # #apd1 = mdet.dummyAPD(work_folder = 'C:/') # #apd1.set_integration_time_ms(ctr_time_ms) XYscan = mapper.Mapper2D_XYZ (scanner_axes = [dummyA, dummyB], detectors = [apd0]) XYscan.set_work_folder ('C:/Users/cristian/Research/Work-Data/') # XYscan.set_delays (between_points = delayBetweenPoints, between_rows = delayBetweenRows) XYscan.set_back_to_zero() XYscan.open_GUI() # #XYscan.save_to_txt(r'C:\Users\cristian\Research\test_txt') # #XYscan.save_to_hdf5(file_name=r'C:\Users\cristian\Research\test7.hdf5') # #XYscan.plot_counts()
reload(mscan) reload(mdet) ####################### # Parameters delayBetweenPoints = 0.1 delayBetweenRows = 0.1 voltsDirectory = r'C:\Users\QPL\Desktop\temporary_meas' ####################### # instruments GalvoCtrl = mscan.GalvoNI(chX='/Dev1/ao1', chY='/Dev1/ao0') GalvoCtrl.set_range(min_limit=-5., max_limit=5.) voltmeterCtrl = mdet.MultimeterCtrl(VISA_address=r'ASRL13::INSTR') dummyAPD = mdet.dummyAPD(voltsDirectory) a = 3.336 b = -0.1999 d = 0.03 xStep = 0.0005 x0 = a y0 = b XYopt = mapper.XYOptimizer(scanner_axes=GalvoCtrl, detectors=[voltmeterCtrl]) XYopt.set_scan_range(scan_range=d, scan_step=xStep) XYopt.set_delays(between_points=delayBetweenPoints, between_rows=delayBetweenRows) XYopt.initialize(x0=x0, y0=y0) a, b = XYopt.run_optimizer(close_instruments=False, silence_errors=False)
import datetime import os.path import sys from measurements.libs.QPLMapper import mapper_scanners as mscan, mapper_detectors as mdet from measurements.libs.QPLMapper import mapper if sys.version_info.major == 3: from importlib import reload xStep = 0.5 yStep = xStep delayBetweenPoints = 0.1 delayBetweenRows = 0.1 xLims = (0, 2) yLims = (0, 2) Motor = mscan.Standa(conversion_factor=1000) dummyAPD = mdet.dummyAPD(r"C:\Users\Daniel\Desktop") XYscan = mapper.XYScan(scanner_axes=Motor, detectors=[dummyAPD]) XYscan.set_range(xLims=xLims, xStep=xStep, yLims=yLims, yStep=yStep) XYscan.set_delays(between_points=delayBetweenPoints, between_rows=delayBetweenRows) #XYscan.run_scan() #XYscan.plot_counts()