Model 2461 Interactive SourceMeter® Instrument Reference Manual Section 8: TSP command reference2461-901-01 A/November 2015 8-19bufferVar.clear()This function clears all readings and statistics from the specified buffer.Type TSP-Link accessible Affected by Where saved Default valueFunction YesUsagebufferVar.clear()bufferVar The name of the reading buffer, which may be a default buffer (defbuffer1 ordefbuffer2) or a user-defined bufferExamplereset()testData = buffer.make(50)trigger.model.load("SimpleLoop", 3, 0, testData)trigger.model.initiate()waitcomplete()printbuffer(1, testData.n, testData)testData.clear()print("Readings in buffer after clear =".. testData.n)trigger.model.initiate()waitcomplete()printbuffer(1, testData.n, testData)Create a reading buffer namedtestData, make three readings andstore them in testData, and then viewthe readings.Print number of readings in testData.Output:-4.5010112303956e-10, -3.9923108222095e-12, -4.5013931471161e-10Clear the readings in testData.Verify that there are no readings intestData.Output:Readings in buffer afterclear = 0Store three new readings in testDataand view those when complete.Output:4.923509754e-07,3.332266330e-07,3.974883867e-07Also seebuffer.delete() (on page 8-11)buffer.make() (on page 8-14)bufferVar.clear() (on page 8-19)print() (on page 8-92)printbuffer() (on page 8-93)Reading buffers (on page 3-2)Remote buffer operation (on page 3-23)