![Keithley 707B Скачать руководство пользователя страница 386](http://html.mh-extra.com/html/keithley/707b/707b_reference-manual_661685386.webp)
Models 707B and 708B Switching Matrix Reference Manual
Section 7: Command reference
707B-901-01 Rev. A / August 2010
7-133
localnode.setglobal()
This function sets the value of a global variable.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function Yes
(see
Details
)
Usage
node[N].setglobal(name, value)
N
The node number of the instrument
name
The global variable name to create
value
The value to assign to the variable
Details
From a remote node, use this function to create and assign the given value to a global variable.
Do not use this command to create or set the value of a global variable from the local node. It is provided for the
sole purpose of accessing global variables on a node from a remote master node. The
localnode
prefix to the
function listing describes how remote commands are shared between nodes, rather than this command being a
localnode command.
Example
node[3].setglobal("x", 5)
Sets the global variable
x
on Node 3 to the value of 5.
Also see
(on page 7-128)
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
Disabled
Usage
errorMode = localnode.showerrors
localnode.showerrors = errorMode
errorMode
Enables (1) or disables (0) 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.