Section 11: TSP command reference Series 3700A System Switch/Multimeter Reference Manual11-292 3700AS-901-01 Rev. D/June 2018Examplelocalnode.showerrors = 1 Enables sending of generated errors.Also seelocalnode.prompts (on page 11-288)makegetter()This function creates a function to get the value of an attribute.Type TSP-Link accessible Affected by Where saved Default valueFunction NoUsagegetter = makegetter(table, "attributeName")getter The return valuetable Read-only table where the attribute is locatedattributeName A string representing the name of the attributeDetailsThis function is useful for aliasing attributes to improve execution speed. Calling the function createdwith makegetter() executes faster than accessing the attribute directly.Creating a getter function is only useful if it is going to be called several times. Otherwise, theoverhead of creating the getter function outweighs the overhead of accessing the attribute directly.Examplegetrange = makegetter(dmm, "range")-- (intervening code)r = getrange()Create a getter function calledgetrange.When getrange() is called, itreturns the value of dmm.rangeand assigns it to the variable r.Also seemakesetter() (on page 11-292)makesetter()This function creates a function that, when called, sets the value of an attribute.Type TSP-Link accessible Affected by Where saved Default valueFunction NoUsagesetter = makesetter(table, "attributeName")setter Function that sets the value of the attributetable Read-only table where the attribute is locatedattributeName The string name of the attribute