Models 707B and 708B Switching Matrix Reference Manual
Section 7: TSP command reference
707B-901-01 Rev. B / January 2015
7-127
Example
node[3].setglobal("x", 5)
Sets the global variable
x
on node 3 to the value of 5.
Also see
(on page 7-120)
Using TSP to run test scripts simultaneously
localnode.showerrors
This attribute sets whether or not the instrument automatically sends generated errors.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (RW)
Yes
Power cycle
Not saved
0 (disabled)
Usage
errorMode
= localnode.showerrors
localnode.showerrors =
errorMode
errorMode
Enables (1) or disables (0) the show errors state
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
localnode.showerrors = 1
Enables sending of generated errors.
Also see
(on page 7-123)
makegetter()
This function creates a function to get the value of an attribute.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
No
Usage
getter
= makegetter(
table
,
attributeName
)
getter
The return value
table
Read-only table where the attribute is located
attributeName
A string representing the name of the attribute