How to use the qcodes.DiskIO function in qcodes

To help you get started, we’ve selected a few qcodes examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github QuTech-Delft / qtt / scripts / fourdot_script_batch.py View on Github external
station.gate_settle=sample.gate_settle
    
    keithley1 = station.keithley1
    keithley3 = station.keithley3
    
    gates = station.gates
    
    station.set_measurement(keithley3.amplitude)
    
    if platform.node()=='TUD205521':
        datadir =  r'p:\data\qcodes'   
    else:
        datadir = '/home/eendebakpt/data/qdata'
    
    qcodes.DataSet.default_io = qcodes.DiskIO(datadir)
    mwindows=qtt.setupMeasurementWindows(station)
    mwindows['parameterviewer'].callbacklist.append( mwindows['plotwindow'].update )
    
    
    mwindows['parameterviewer'].callbacklist.append( partial(qtt.updatePlotTitle, mwindows['plotwindow']) )
    
    #liveplotwindow.win.setWindowTitle('sfs')
    
    qtt.scans.mwindows=mwindows
    liveplotwindow=mwindows['plotwindow']
    qtt.live.liveplotwindow=liveplotwindow
    

#%% Define 1-dot combinations
from stationV2.sample import get_one_dots
github QuTech-Delft / qtt / scripts / 1dot_script_batch.py View on Github external
keithley1 = station.keithley1
    keithley3 = station.keithley3

    gates = station.gates
    time.sleep(0.05)
    gates.L.get()
    #gates.R.get()

    station.set_measurement(keithley3.amplitude)

    if platform.node() == 'TUD205521':
        datadir = r'p:\data\qcodes'
    else:
        datadir = '/home/eendebakpt/data/qdata'

    qcodes.DataSet.default_io = qcodes.DiskIO(datadir)
    mwindows = qtt.tools.setupMeasurementWindows(station)
    mwindows['parameterviewer'].callbacklist.append(mwindows['plotwindow'].update)

    mwindows['parameterviewer'].callbacklist.append(partial(qtt.tools.updatePlotTitle, mwindows['plotwindow']))

    qtt.scans.mwindows = mwindows
    liveplotwindow = mwindows['plotwindow']
    qtt.live.liveplotwindow = liveplotwindow


#%% Define 1-dot combinations

if __name__ == '__main__':

    verbose = 2   # set output level of the different functions
github QuTech-Delft / qtt / examples / tno_toymodel.py View on Github external
qtt.tilefigs(12, [1, 2])
    except:
        pass


#%% Setup measurement windows


if __name__ == '__main__':
    import pyqtgraph as pg
    qtapp = pg.mkQApp()

    qtt.pythonVersion()

    qdatadir = os.path.join(os.path.expanduser('~'), 'tmp', 'qdata')
    qcodes.DataSet.default_io = qcodes.DiskIO(qdatadir)
    mwindows = qtt.setupMeasurementWindows(station)
    mwindows['parameterviewer'].callbacklist.append(mwindows['plotwindow'].update)
    plotQ = mwindows['plotwindow']

    qtt.live.mwindows = mwindows

    import qcodes.tools.dataviewer
    logviewer = qcodes.tools.dataviewer.DataViewer()
    logviewer.show()


#%%
if __name__ == '__main__':
    print('value: %f' % keithley3.readnext())
    snapshotdata = station.snapshot()
github QuTech-Delft / qtt / examples / tno_toymodel.py View on Github external
if __name__ == '__main__':
    [x.terminate() for x in qc.active_children() if x.name in ['dummymodel', 'ivvi1', 'ivvi2']]

import virtualV2  # reload(virtualV2)
import qtt.qtt_toymodel  # reload(qtt.qtt_toymodel)
import qtt.live
from qtt.qtt_toymodel import FourdotModel
from qtt.scans import scan1D

import tempfile

import matplotlib.pyplot
if __name__ == '__main__':

    datadir = os.path.join(tempfile.tempdir, 'qdata')
    qcodes.DataSet.default_io = qcodes.DiskIO(datadir)


#%% Create a virtual model for testing
#
# The model resembles the 4-dot setup. The hardware consists of a virtual
# keithley, 2 virtual IVVI racks

if __name__ == '__main__':

    server_name = 'testv%d' % np.random.randint(1000)  # needs to be set for background loops to work
    # server_name=None
    virtualV2.initialize(server_name=server_name)

    keithley1 = virtualV2.keithley1
    keithley2 = virtualV2.keithley2
    keithley3 = virtualV2.keithley3