示例#1
0
try:

    if len(_Ib.split(',')) != 1:
        # 1,2,3,4
        __Ib = _Ib.split(',')
        for ___Ib in __Ib:
            Ib_RANGES += [ float(___Ib) ]

    elif len(_Ib.split(';')) != 1:
        # 1;2;0.1
        __Ib = _Ib.split(';')
        __Ib_start = float(__Ib[0])
        __Ib_end   = float(__Ib[1])
        __Ib_step  = float(__Ib[2])

        Ib_RANGES = ag.drange(__Ib_start,__Ib_end,__Ib_step)

    else:
        # const
        Ib_RANGES = [ float(_Ib) ]

except ValueError:
    print "ValueError Ib"
    sys.exit(1)

except:
    print "Fatal error Ib"
    sys.exit(1)


# Set Uc_RANGES
示例#2
0
文件: diode.py 项目: Pryziv/Agilent
try:

    if len(_Ud.split(',')) != 1:
        # 1,2,3,4
        __Ud = _Ud.split(',')
        for ___Ud in __Ud:
            Ud_RANGES += [ float(___Ud) ]

    elif len(_Ud.split(';')) != 1:
        # 1;2;0.1
        __Ud = _Ud.split(';')
        __Ud_start = float(__Ud[0])
        __Ud_end   = float(__Ud[1])
        __Ud_step  = float(__Ud[2])

        Ud_RANGES = ag.drange(__Ud_start,__Ud_end,__Ud_step)

    else:
        # const
        Ud_RANGES = [ float(_Ud) ]

except ValueError:
    print "ValueError"
    sys.exit(1)

except:
    print "Fatal error in Ud"
    sys.exit(1)

# Section: Device
devname = config.get('Device','name')
示例#3
0
from graphics import *


# CHANNEL 1 - Ube, Ib
# CHANNEL 2 - Uce, Ic

INCLUDE_GRAPHICS = True
SAVE_DEBUG = True
MAX_FAILED = 5
# Настройки
DELAY_MEASURE = 1  # Задержка перед каждым измерением (сек)
Ue_START = 0.00
Ue_END = 1.20
Ue_STEP = 0.01
Ue_RANGES = ag.drange(Ue_START, Ue_END, Ue_STEP)


Uc_RANGES = [1, 2, 4, 6, 8]


force_rewrite = False

stop_measure = False

# Для графиков
IV_I = []
IV_V = []


# Measurement value
示例#4
0
文件: Betta.py 项目: Pryziv/Agilent
try:

    if len(_Ue.split(',')) != 1:
        # 1,2,3,4
        __Ue = _Ue.split(',')
        for ___Ue in __Ue:
            Ue_RANGES += [ float(___Ue) ]

    elif len(_Ue.split(';')) != 1:
        # 1;2;0.1
        __Ue = _Ue.split(';')
        __Ue_start = float(__Ue[0])
        __Ue_end   = float(__Ue[1])
        __Ue_step  = float(__Ue[2])

        Ue_RANGES = ag.drange(__Ue_start,__Ue_end,__Ue_step)

    else:
        # const
        Ue_RANGES = [ float(_Ue) ]

except ValueError:
    print "ValueError"
    sys.exit(1)

except:
    print "Fatal error"
    sys.exit(1)


# Set Uc_RANGES
示例#5
0
from graphics import *

# CHANNEL 1 - Ube, Ib
# CHANNEL 2 - Uce, Ic

INCLUDE_GRAPHICS = True
SAVE_DEBUG       = True
MAX_FAILED       = 5
COUNT_REMEASURE  = 3
# Настройки
DELAY_MEASURE   = 1           # Задержка перед каждым измерением (сек)
Uc_START        = 0.00
Uc_END          = -5.00
Uc_STEP         = 0.10
Uc_RANGES       = ag.drange(Uc_START,Uc_END,Uc_STEP)
print "Uc range"
print Uc_RANGES

#Ib_START        = 1e-5
#Ib_END          = 2e-5
#Ib_STEP		 	= 2e-6
#Ib_RANGES       = ag.drange(Ib_START,Ib_END,Ib_STEP,-1)
Ib_RANGES = [1e-5,5e-5,1e-4,2e-4,5e-4,1e-3]


print "Ib_range"
print Ib_RANGES