Section 11: TSP command reference Model 2601B-PULSE System SourceMeter Instrument Reference Manual
11-146 2601B-PULSE-901-01A April 2020
localnode.showerrors
This attribute sets whether or not the instrument automatically sends generated errors.
Usage
errorMode = localnode.showerrors
localnode.showerrors = errorMode
Show error setting:
â–ª Show errors: 1
â–ª Do not show errors: 0
Details
If this attribute is set to 1, the instrument automatically sends any generated errors stored in the error
queue, and then clears the queue. Errors are processed after executing a command message (just
before issuing a prompt, if prompts are enabled).
If this attribute is set to 0, errors are left in the error queue and must be explicitly read or cleared.
When using this command from a remote node, localnode should be replaced with the node
reference, for example, node[5].showerrors.
Example
Enables sending of generated errors.
Also see
localnode.prompts (on page 11-142)
makegetter()
This function creates a function to get the value of an attribute.
Usage
getter = makegetter(table, "attributeName")
Read-only table where the attribute is located
A string representing the name of the attribute
Details
This function is useful for aliasing attributes to improve execution speed. Calling the function created
with makegetter() executes more quickly than accessing the attribute directly.
Creating a getter function is only useful if it is going to be called several times. Otherwise, the
overhead of creating the getter function outweighs the overhead of accessing the attribute directly.