Beispiel #1
0
import time

import logging

from hardware.api import PulseGenerator
from hardware.api import Microwave
from hardware.api import AWG, FastComtec
import hardware.api as ha

from tools.emod import ManagedJob

from tools.utility import GetSetItemsMixin

PG = PulseGenerator()
MW = Microwave()
FC = FastComtec()
#AWG = AWG()
"""
Several options to decide when to start  and when to restart a job, i.e. when to clear data, etc.

1. set a 'new' flag on every submit button

pro: simple, need not to think about anything in subclass

con: continue of measurement only possible by hack (manual submit to JobManager without submit button)
     submit button does not do what it says
     
2. check at start time whether this is a new measurement.

pro: 
Beispiel #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