2600AS-901-01 Rev. B / September 2008 Return to Section Topics 19-91
Series 2600A System SourceMeter® Instruments Reference Manual Section 19: Remote Commands
localnode.serialno
Attribute The instrument serial number.
TSP-Link
accessibility
This attribute can be accessed from a remote TSP-Link node.
Usage serialno = localnode.serialno --Reads the instrument serial number.
serialno The serial number of the instrument.
Remarks • This attribute indicates the instrument serial number.
• This attribute is read-only.
Also see
localnode.description, localnode.model, localnode.revision
localnode.setglobal
Function Sets the value of a global variable.
TSP-Link
accessibility
This function should only be accessed from a remote TSP-Link node.
Usage node[n].setglobal(name, value)
name The name of the global variable.
value The value assigned to the variable.
n The node number of the instrument setting the global
variable.
Remarks • Do not use this command to set the value of a global variable on the local node.
• localnode.setglobal is provided to assign values to variables from a remote node.
• localnode.setglobal should not be used to assign values to global variables on the local
node when executing the code on the local node. The value should be assigned directly.
Example node[3].setglobal("x", 5) --sets the global variable “x” on node 3 to the value of 5.
localnode.settime
Function Sets the real-time clock.
TSP-Link
accessibility
This function can be accessed from a remote TSP-Link node.
Usage localnode.settime(time)
time The time in seconds since January 1, 1970 UTC.
Remarks • Time must be specified as UTC time.
• Set the time zone before reading the time using the os.time function or before generating a
UTC time from a local time specification.
Example To set local time:
-- Assumes the time zone is correct.
time = os.time((year = 2000, month = 8, day = 13, hour = 14, min = 35,
isdst = true))
localnode.settime(time)