![background image](http://html2.mh-extra.com/html/keithley/sourcemeter-2601/sourcemeter-2601_reference-manual_4018913300.webp)
Attribute
Automatic power line frequency detection control.
Usage
flag = localnode.autolinefreq
--
Read auto line frequency detection
setting.
localnode.autolinefreq = true
--
Enable automatic line frequency detection
on power-up.
Remarks
• When this attribute is set to true, the power line frequency is detected
automatically the next time the Series 2600 powers up.
• After the power line frequency is automatically detected at power-up, the
localnode.linefreq
attribute will be set automatically to 50 or 60.
• If the
localnode.linefreq
attribute is explicitly set,
localnode.autolinefreq
will be automatically set to false.
• When used in an expanded system (TSP-Link),
localnode.autolinefreq
is sent to the
remote master node only.
• Use
node[N].autolinefreq
(where
[N]
is the node number) to
send the command to any node in the system. See
for details on
TSP-Link.
• This command is compatible with firmware version 1.2.0 and later.
Also see
Example
Disable automatic power line frequency detection:
localnode.autolinefreq = 0
12-40
Return to
2600S-901-01 Rev. C / January 2008
Section 12: Instrument Control Library
Series 2600 System SourceMeter® Instruments Reference Manual
localnode.autolinefreq
localnode.execute
Function
Use this function to start test scripts on a remote node.
Usage
node[N].execute (myscript)
myscript
Replace the custom variable myscript with the variable
name or the source code.
Remarks
• Only the master node can issue the
execute
command to a remote node.
• You cannot use the
execute
command to run test scripts on the master node.
Example
-
- Runs script code stored in the custom variable sourcecode.
node[N].execute (sourcecode)
-- Runs script code in a string constant.
node[N].execute ("x=5")
-- Runs a test script that was loaded into memory.
node[N].execute (myscript.source)
localnode.getglobal
Function
This function returns the value of a global variable.
Usage
value = node[N].getglobal(name)
name
The name of the global variable.
value
The value of the global variable.
N
The number of the remote node.
Remarks
• Use this function to retrieve the value of a global variable from a remote node.
• Do not use this command to retrieve the value of a global variable from a local node.
Example
-- Retrieves and outputs the value of the global variable named meas_val from node 5.
print(node[5].getglobal(“meas_val”))