User manual
Series 3700 System Switch/Multimeter Reference Manual Section 3: TSP Advanced Features
3700S-901-01 Rev. C / July 2008 3-11
dataqueue.count
Remarks
This attribute is a read-only attribute that indicates how many entries are in the data
queue.
dataqueue.next()
Function
Retrieve an entry from the data queue.
Usage
value = dataqueue.next([timeout])
timeout: Maximum amount of time in seconds to wait for data if the queue is empty.
value: The next entry from the data queue.
Remarks
This function will remove the next entry from the data queue and return its value. If the
queue is empty, this function will wait up to timeout seconds for data to arrive. If no
data arrives before the timeout expires, this function will return nil.
The timeout value may only be specified when called from the local node. If a timeout
value is not given, the function will not wait for data to be put in the queue if it is empty.
NOTE If the entry is a table, this function will return a deep copy of its contents at
the time the table was added to the data queue rather than returning a
reference to the original table.
localnode.execute()
Function
Execute TSL code.
Usage
localnode.execute(chunk)
chunk: Source TSL code to execute.
Remarks
This function will execute the given TSL code.
NOTE This command cannot actually be used on the local node. It is provided for
the sole purpose of executing scripts on this node from a remote master
node. The localnode prefix to the command is an artifact of command
organization and how remote commands are shared between nodes.
localnode.getglobal()
Function
Get a the value of a global variable.
Usage
value = localnode.getglobal(name)
name: The global variable name.
value: The value of the variable.