Section 7: Command reference
Models 707B and 708B Switching Matrix Reference Manual
7-134
707B-901-01 Rev. A / August 2010
When used in an expanded system (TSP-Link),
localnode.showerrors
is sent to the remote master node
only. Use
node[N].showerrors
(where
N
is the node number) to send the command to any node in the
system.
Example
localnode.showerrors = 1
Enables sending of generated errors.
Also see
(on page 7-129)
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
The string name of the attribute
Details
This function is useful for aliasing attributes to improve execution speed. Calling the function created with
makegetter()
executes faster than accessing the attribute directly.
Creating a getter function is only useful if it is going to be called several times. Otherwise, the overhead of
creating the getter function outweighs the overhead of accessing the attribute directly.
Example
getRule = makegetter(channel, "connectrule")
...
r = getrule()
Creates a getter function called
getRule.
When
getRule
is called, it returns
the value of
connectrule.
Also see