Пример #1
0

style = 0


for Ib in Ib_RANGES:
	  
    style+=1;
    label_ib = "Ib=%.2e" % (Ib)
    IV_I = []
    IV_V = []
    
    # Инициализация
    Uc_max = max(Uc_RANGES)
    if abs(Uc_max) > 2 and abs(Uc_max) <=20:
        ag.initialize(2,"v","R20V",Uc_max)
    elif abs(Uc_max) <= 2:
        ag.initialize(2,"v","R2V",Uc_max)
    
    rang = ag.get_good_range( "c", Ib )
    print "@CH1 range: %s , Ib = %.2e" % (rang, Ib )
    ag.initialize(1,"c",rang) 


    ag.initialize(1,"v","R2V") 
    ag.initialize(2,"c","R1uA")
   
    
    
    # Задаём источник постоянного тока
    ag.source(1,"c",Ib)  
Пример #2
0


style = 0


for Uc in Uc_RANGES:
	  
    style+=1;
    label_uc = "Uc=%.2f" % (Uc)
    GRAPH_2_Y = []
    GRAPH_2_X = []
    
    # Инициализация
    if abs(Uc) > 2 and abs(Uc) <=20:
        ag.initialize(2,"v","R20V",Uc)
    elif abs(Uc) <= 2:
        ag.initialize(2,"v","R2V",Uc)
    
    ag.initialize(1,"v","R20V",Uc)       
    ag.initialize(2,"c","R1uA")
    
    # Задаём источник постоянного напряжения
    ag.source(2,"v",Uc)  
    
    
      
    
    write2file(fdbg,"@Uc=%.2f" % (Uc),True)
    write2file(fdbg,"Forward I-V",True)
    write2file(fdbg,"Ue\tIb\t\tIb_m\t\tUc\tUc_meas\tIc\t\tBetta\tTemp",True)
Пример #3
0



print "Current temperature: %.2f" % ag.temperature()

write2file( fmeasure,"@COLS:Ud,Id" ) # Записываем как будут располагаться колонки
write2file(fdbg,"Ud\tUd_meas\tId\t\tTemp",True)




style = 1

# Initial ranges
ag.initialize(1,"v","R2V") 
ag.initialize(1,"c","R1uA")

for Ud in Ud_RANGES:
    rang = ag.get_good_range( "v", Ud )
    if rang != ag.get_range(1,"v"):
        ag.initialize(1,"v",rang)

    ag.source(1,"v",Ud)

    ag.start_output(1) # Запускаем источник

    if not execute():
        #print "Stop_measure: "+str(stop_measure)
        if stop_measure:
            break