Hello everyone, I have a problem in xschem I can't figure out. When i do a series of transient analysis and change a device parameter, the diode works in the first transient and then stops conducting. For example i put a resistor and a diode in series and then run a few transient analysis with a "parametric sweep" with 'alter R1 XXX'. The first transient works as expected but in the rest the diode shows no current running and the voltage between them, like a divider, is the supply voltage so it doesn't conduct at all. It's also the same with the dc analysis. I'm using simple control code like this which works fine without a diode in the schematic:
save all
let start_r = 10
let stop_r = 50
let delta_r = 10
let r_act = start_r
while r_act le stop_r
alter r1 r_act
tran 1u 1m
* dc V1 0 3.3 0.1
let r_act = r_act + delta_r
end
plot all.Vtest1