delayBetweenPoints = 0.5
delayBetweenRows = 0.

xLims = (820, 830)  # (0, 5)
xStep = 2

voltsDirectory = r'C:\Users\QPL\Desktop\temp_measurements'

#######################
# instruments

laserCtrl = mscan.SolstisLaserScanner(laser_ip_address='192.168.1.222', pc_ip_address='192.168.1.120', port_number=39933, timeout=40, finish_range_radius=0.01, max_nb_of_fails=10)

#spectroCtrl = mdet.ActonLockinCtrl(lockinVisaAddress=r"GPIB0::14::INSTR")
multimeterCtrl = mdet.MultimeterCtrl(VISA_address=r'ASRL17::INSTR')

d = datetime.datetime.now()
voltsFilePath = os.path.join(voltsDirectory, 'powerInVolts_{:%Y-%m-%d_%H-%M-%S}.txt'.format(d))

# Scanning program
laser_scan = mapper.XYScan(scanner_axes=laserCtrl, detectors=[multimeterCtrl])
laser_scan.set_range(xLims=xLims, xStep=xStep)
laser_scan.set_delays(between_points=delayBetweenPoints, between_rows=delayBetweenRows)
laser_scan.set_back_to_zero()

laser_scan.run_scan()

laser_scan.save_to_txt(voltsFilePath)

voltsDirectory = r'C:\Users\QPL\Desktop\temp_measurements'

#######################
# instruments

#psuCtrl = mscan.Keithley2220(VISA_address=r'GPIB0::10::INSTR', channels=[1])

##psuCtrl = mscan.Keithley2220_neg_pos(VISA_address=r'GPIB0::10::INSTR', ch_neg=1, ch_pos=2)
psuCtrl = mscan.Keithley2220_negpos(VISA_address=r'GPIB0::10::INSTR',
                                    ch_neg=1,
                                    ch_pos=2)
psuCtrl.set_smooth_delay(0.5)

spectroCtrl = mdet.ActonNICtrl(sender_port="/Weetabix/port2/line0",
                               receiver_port="/Weetabix/port2/line4")
multimeterCtrl = mdet.MultimeterCtrl(VISA_address=r'GPIB0::13::INSTR')

d = datetime.datetime.now()
voltsFilePath = os.path.join(
    voltsDirectory,
    'LED4_botGND_topGreenWhite_amp6_{:%Y-%m-%d_%H-%M-%S}.txt'.format(d))

# Scanning program
#volts_scan = mapper.XYScan(scanner_axes=[psuCtrl[0]], detectors=[spectroCtrl, multimeterCtrl])

volts_scan = mapper.XYScan(scanner_axes=[psuCtrl[0]],
                           detectors=[multimeterCtrl])

volts_scan.set_range(xLims=xLims, xStep=xStep)
volts_scan.set_delays(between_points=delayBetweenPoints,
                      between_rows=delayBetweenRows)
Esempio n. 3
0
xLims = (0, 300)  # (10, 100)
xStep = 1


voltsDirectory = r'E:/MEASUREMENTS/Zak/DelayStage Sweep'

#######################
# instruments
#attoScannerCtrl = mscan.AttocubeVISA(VISA_address=r'ASRL6::INSTR', chX=1, chY=2)
#attoPiezoCtrl = mscan.AttocubeVISAstepper(VISA_address=r'ASRL6::INSTR',channels=[4],nb_of_clicks_per_deg=928./5)
#attoMagnetCtrl = mscan.MagnetAttocube( tolerance=0.001, nr_tolerance_reps=5)
#spectroCtrl = mdet.ActonLockinCtrl(lockinVisaAddress=r"GPIB0::14::INSTR")
lockinCtrl = mscan.LockInDAC (visa_address = r'GPIB0::12::INSTR', channels = [1])
#spectroCtrl2 = mdet.PylonNICtrl(sender_port="/Weetabix/port1/line4", receiver_port="/Weetabix/port1/line7")
delayCtrl = mscan.NewportDelayStage(chX = u'ASRL23::INSTR')
voltmeterCtrl = mdet.MultimeterCtrl(VISA_address=u'GPIB0::23::INSTR', mode='voltage', agilent=True, work_folder=None)

#highfinese = mdet.HighFinese(channel=2)

#tempCtrl =  mdet.LakeShore(address='COM5',channel='A')


d = datetime.datetime.now()
voltsFilePath = os.path.join(voltsDirectory, 'powerInVolts_{:%Y-%m-%d_%H-%M-%S}.txt'.format(d))

# Scanning program
XYscan = mapper.XYScan(scanner_axes=delayCtrl, detectors=[voltmeterCtrl])
XYscan.set_range(xLims=xLims, xStep=xStep)
XYscan.set_delays(between_points=delayBetweenPoints, between_rows=delayBetweenRows)
XYscan.init_detectors(XYscan._detectors)
XYscan.set_back_to_zero()
Esempio n. 4
0
                             'powerInVolts_{:%Y-%m-%d_%H-%M-%S}.txt'.format(d))
reload(mapper)
reload(mscan)
reload(mdet)

a = 2.456
b = -0.70
d = 0.07
xStep = 0.002
delayBetweenPoints = 0.02
delayBetweenRows = 0.02

xLims = (a - d, a + d)
yLims = (b - d, b + d)
yStep = xStep

min_lim = -10.
max_lim = 10.

GalvoCtrl = mscan.LJTickDAC()
voltmeterCtrl = mdet.MultimeterCtrl(VISA_address='ASRL14::INSTR')
XYscan = mapper.XYScan(scanner_axes=GalvoCtrl, detectors=[voltmeterCtrl])
XYscan.set_range(xLims=xLims, xStep=xStep, yLims=yLims, yStep=yStep)
XYscan.set_delays(between_points=delayBetweenPoints,
                  between_rows=delayBetweenRows)

for i in range(0, 1):
    XYscan.run_scan(silence_errors=False)
#    print('\n', i, '\n')
XYscan.plot_counts()
XYscan.save_to_txt(voltsFilePath, flatten=True)