Section 8: TSP command reference Model 2461 Interactive SourceMeter® Instrument Reference Manual8-150 2461-901-01 A/November 2015When the moving average filter is selected, the measurements are added to the stack continuouslyon a first-in, first-out basis. As each measurement is made, the oldest measurement is removed fromthe stack. A new averaged sample is produced using the new measurement and the data that is nowin the stack.When the moving average filter is first selected, the stack is empty. When the first measurement ismade, it is copied into all the stack locations to fill the stack. A true average is not produced until thestack is filled with new measurements. The size of the stack is determined by the filter count setting.The repeating average filter produces slower results, but produces more stable results than themoving average filter. For either method, the greater the number of measurements that are averaged,the slower the averaged sample rate, but the lower the noise error. Trade-offs between speed andnoise are normally required to tailor the instrumentation to your measurement application.Examplesmu.measure.func = smu.FUNC_DC_CURRENTsmu.measure.filter.count = 10smu.measure.filter.type = smu.FILTER_MOVING_AVGsmu.measure.filter.enable = smu.ONSet the measurement function tocurrent.Set the averaging filter type to movingaverage, with a filter count of 10.Enable the averaging filter.Also seeFiltering measurement data (on page 4-23)smu.measure.filter.count (on page 8-148)smu.measure.filter.enable (on page 8-148)smu.measure.funcThis attribute selects the active measure function.Type TSP-Link accessible Affected by Where saved Default valueAttribute (RW) Yes Restore configurationInstrument resetPower cycleMeasure configuration listConfiguration scriptMeasure configuration listsmu.FUNC_DC_CURRENTUsagemFunction = smu.measure.funcsmu.measure.func = mFunctionmFunction The measurement function:• Voltage measurement: smu.FUNC_DC_VOLTAGE• Current measurement: smu.FUNC_DC_CURRENT• Ohms measurement: smu.FUNC_RESISTANCE• No measure function selected (read only): smu.FUNC_NONE