• Average Filter for Keithley 2400 SMU

    I am trying program my 2400 SMU to average 5 readings using the filter command

    SENS:AVER:TCON REP
    SENS:AVER:COUN 5

    I have it set up to source voltage and measure current.  I am stepping through voltages and I assume that this would measure the current 5 times and output the results at each voltage.   I would think that this function would only average the current but it is also averaging the voltage.
    I have attached my Python code.

    What am I doing wrong?

    Thank you