Tektronix Technical Forums are maintained by community involvement. Feel free to post questions or respond to questions by other members. Should you require a time-sensitive answer, please contact your local Tektronix support center here.

Error5028 when running the attached vi

Model 2651A
Post Reply
yudong123
Posts: 5
Joined: August 27th, 2018, 9:35 am
Country: United States

Error5028 when running the attached vi

Post by yudong123 » November 29th, 2018, 2:25 pm

Hi guys,

I have trouble running my vi that I attached when I set stop current as 50A. 2651A display error 5028. I could run it just fine when set the stop current as 20A. The vi basically run the script I wrote to run pulse current sweep and measure iv. But i dont think KIPulse factory function can work with autorange so I wrote my own.

Code: Select all

smu = smua
starti = 0.1
stopi = 50
points = 50
ton = 200e-6
toff = 0.5
NPLC = 0.01
reset()
smu.reset()
smu.nvbuffer1.clear()  
smu.nvbuffer1.appendmode = 1  
smu.nvbuffer1.collecttimestamps = 1  
smu.nvbuffer1.collectsourcevalues = 1  
smu.nvbuffer2.clear()          
smu.nvbuffer2.appendmode = 1          
smu.nvbuffer2.collecttimestamps = 1          
smu.nvbuffer2.collectsourcevalues = 1
smu.source.output = smu.OUTPUT_OFF  
smu.source.func = smu.OUTPUT_DCAMPS   
smu.source.autorangei = smu.AUTORANGE_ON            
smu.measure.autorangei = smu.AUTORANGE_ON             
smu.measure.autorangev = smu.AUTORANGE_ON      
smu.measure.autozero = smu.AUTOZERO_ONCE  
smu.measure.filter.enable = smu.FILTER_ON              
smu.measure.filter.count = 3             
smu.measure.filter.type = 1             
smu.measure.nplc = 0.01   
smu.measure.delay = ton - 0.000166 - 20e-6          
smu.sense = smu.SENSE_REMOTE
trigger.timer[1].count = points - 1
trigger.timer[1].delay = ton+toff
trigger.timer[1].passthrough = true
trigger.timer[1].stimulus = smua.trigger.ARMED_EVENT_ID
trigger.timer[1].clear()
trigger.timer[2].count = 1
trigger.timer[2].delay = ton - 3e-6
trigger.timer[2].passthrough = false
trigger.timer[2].stimulus = smu.trigger.SOURCE_COMPLETE_EVENT_ID
trigger.timer[2].clear()
smu.trigger.source.lineari(starti, stopi, points)
smu.trigger.source.limitv = limv
smu.trigger.measure.iv(smu.nvbuffer2, smu.nvbuffer1)
smu.trigger.measure.action = smu.ENABLE
smu.trigger.endpulse.action = smu.SOURCE_IDLE
smu.trigger.endsweep.action = smu.SOURCE_IDLE
smu.trigger.count = points
smu.trigger.arm.stimulus = 0
smu.trigger.source.stimulus = trigger.timer[1].EVENT_ID
smu.trigger.measure.stimulus = 0
smu.trigger.endpulse.stimulus = trigger.timer[2].EVENT_ID
smu.trigger.source.action = smu.ENABLE
smu.source.output = smu.OUTPUT_ON
smu.trigger.initiate()
waitcomplete()
smu.source.output = smu.OUTPUT_OFF 
Can anyone help me figure out why?

Thanks,
Yu
Attachments
265xPulseLinearI.vi
(30.41 KiB) Downloaded 28 times

Post Reply

Return to “2651A High Current SourceMeter”

Who is online

Users browsing this forum: No registered users and 2 guests