Exemplo n.º 1
0
def Microwave2():
    from microwave_sources import SMIQ
    return SMIQ(visa_address='GPIB0::28')
Exemplo n.º 2
0
###############
# stimulation
################
import time
from chaco import shell

from hardware.api import FastComtec
fc = FastComtec()

from hardware.api import Microwave
microwave = Microwave()

from hardware.microwave_sources import SMIQ
microwave_2 = SMIQ(visa_address='GPIB0::28')

from hardware.api import PulseGenerator
pg = PulseGenerator()
pg.map['mw2'] = 5

### helper functions ###

from analysis.fitting import find_edge


def spin_state(c, dt, T, t0=0.0, t1=-1.):
    """
    Compute the spin state from a 2D array of count data.
   
    Parameters:
   
        c    = count data
Exemplo n.º 3
0
# start the JobManager (it is currently a singleton)
from tools import emod
emod.JobManager().start()

# start the CronDaemon (used by the auto focus widget for periodic refocussing)
#from tools import cron
#cron.CronDaemon().start()

#########################################
# hardware
#########################################

from TimeTagger import createTimeTagger
tagger = createTimeTagger()
from hardware.microwave_sources import SMIQ
microwave = SMIQ()

from measurements.time_trace import TimeTrace
timetrace = TimeTrace(tagger)
timetrace.edit_traits()

from hardware.nidaq import Scanner
from hardware.nidaq import PulseTrainCounter
scanner = Scanner('/Dev1/ctr1', '/Dev1/ctr0', '/Dev1/PFI8', '/Dev1/ao0:2',
                  (-100., 100.), (-100., 100.), (-100., 100.), (-10., 10.))
odmr_counter = PulseTrainCounter('/Dev1/ctr1', '/Dev1/ctr0', '/Dev1/PFI8')

#########################################
# example how to define a little panel
# for laser and mirror hardware controls
#########################################