smua.reset() beeper.beep(0.2, 1500) smua.source.output = 1 --PARAMETRE-------------------------------------------------- minv = -10 maxv = 10 skok = 0.5 prudova_poistka = 0.001 offdelay = 4 ondelayy = 9 ------------------------------------------------------------- smua.source.func = smua.OUTPUT_DCVOLTS smua.source.limiti = prudova_poistka print( "First main run") print( "Autozero") smua.source.levelv = 0.000001 delay (2) smua.source.levelv = -0.000001 delay (2) smua.source.levelv = 0.000001 delay (2) smua.measure.autozero = smua.AUTOZERO_ONCE iReading, vReading = smua.measure.iv() print( "Done, V = " ..vReading .."I = " ..iReading) beeper.beep(0.2, 2000) print( "IV charakteristika leakage current") for j = minv, maxv, skok do smua.source.levelv = -j delay (2) smua.source.levelv = -0.000001 delay (2) smua.source.levelv = 0.000001 delay (2) smua.source.levelv = j delay (8) iReading, vReading = smua.measure.iv() print( "V = ", vReading, "I = ", iReading, "Run = ", j) end --second----------------------------------------------------------------- print( "Second main run") print( "Autozero") smua.source.levelv = 0.000001 delay (2) smua.source.levelv = -0.000001 delay (2) smua.source.levelv = 0.000001 delay (2) smua.measure.autozero = smua.AUTOZERO_ONCE iReading, vReading = smua.measure.iv() print( "Done, V = " ..vReading .."I = " ..iReading) beeper.beep(0.2, 2000) print( "IV charakteristika leakage current") for j = minv, maxv, skok do smua.source.levelv = -j delay (2) smua.source.levelv = -0.000001 delay (2) smua.source.levelv = 0.000001 delay (2) smua.source.levelv = j delay (8) iReading, vReading = smua.measure.iv() print( "V = ", vReading, "I = ", iReading, "Run = ", j) end smua.source.output = 0 beeper.beep(1, 1660)