I have to sweep voltage and measure current using Keithley 2601. I am using Rs 232, with a self-made 'vi'. I am communicating with instrument and trying to send following TSP commands but getting errors 104, 285, 286,350.
current = {}
smua.source.output = smua.OUTPUT_ON
for j = 1, 5 do
smua.source.levelv = j
current[j] = smua.measure.i()
print(current[j])
end
smua.source.output = smua.OUTPUT_OFF
Can anyone please help!