ramping back to v=50mV instantaneously on ramp down condition. also using v/i to compare to threshold resistance, but still computing and using dv/di to look for 2 consecutive NDR (# consecutive threshold res is input parameter, but # consecutive ndr is hardcoded right now).