14: TSP command reference 2470 High Voltage SourceMeter Instrument
14-270 2470-901-01 Rev. A / May 2019
tsplink.initialize()
This function initializes all instruments and enclosures in the TSP-Link system.
Type TSP-Link accessible
Affected by Where saved Default value
Usage
nodesFound = tsplink.initialize()
tsplink.initialize()
tsplink.initialize(expectedNodes)
The number of nodes found on the system, including the node on which the
command is running
The number of nodes expected on the system (1 to 32)
Details
This function regenerates the system configuration information regarding the nodes connected to the
TSP-Link system. You must initialize the system after making configuration changes. You need to
initialize the system after you:
• Turn off power or reboot any instrument in the system
• Change node numbers on any instrument in the system
• Rearrange or disconnect the TSP-Link cable connections between instruments
If the only node on the TSP-Link network is the one running the command and expectedNodes is
not provided, this function generates an error event. If you set expectedNodes to 1, the node is
initialized.
If you include expectedNodes, if nodesFound is less than expectedNodes, an error event is
generated.
If any TSP-Link cabled node is powered off, initialize will fail.
Example
nodesFound = tsplink.initialize(2)
print("Nodes found = " .. nodesFound)
Perform a TSP-Link initialization and indicate how many nodes are found.
Example output if two nodes are found:
Nodes found = 2
Example output if fewer nodes are found and if localnode.showevents = 7:
1219, TSP-Link found fewer nodes than expected