Tsp-Net; Tsp-Net Capabilities - Keithley 3700A Series Reference Manual

System switch/multimeter
Hide thumbs Also See for 3700A Series:
Table of Contents

Advertisement

Section 10: Instrument programming
-- Create a reading buffer on a node in a remote group.
node[2].tsplink.group = 7
node[2].execute("rbremote = dmm.makebuffer(20) " ..
-- Create a variable on the local node to
-- access the reading buffer.
rblocal = node[2].getglobal("rbremote")
-- Access data from the reading buffer.
print(rblocal[1])
-- Run code on the remote node that updates the reading buffer.
node[2].execute("dmm.measure(rbremote)")
-- Use the clearcache command if the reading buffer contains cached data.
rblocal.clearcache()
-- If you do not use the clearcache command, the data buffer
-- values will never update. Every time the print command is
-- issued after the first print command, the same data buffer
-- values will print.
print(rblocal[1])

TSP-Net

The TSP-Net
LAN port. This enables the Series 3700A to communicate directly with a device that is not TSP
enabled without the use of a controlling computer.

TSP-Net capabilities

The TSP-Net library permits the Series 3700A to control a remote instrument through the LAN port for
both Test Script Processor (TSP
can transfer string data to and from a remote instrument, transfer and format data into Lua variables,
and clear input buffers. The TSP-Net library is only accessible using commands from a remote
command interface.
You can use TSP-Net commands to communicate with any ethernet-enabled instrument. However,
specific TSP-Net commands exist for TSP-enabled instruments to allow for support of features unique
to the TSP scripting engine. These features include script downloads, reading buffer access, wait
completion, and handling of TSP scripting engine prompts.
Using TSP-Net commands with TSP-enabled instruments, a Series 3700A can download a script to
another TSP-enabled instrument and have both instruments run scripts independently. The Series
3700A can read the data from the remote instrument and either manipulate the data or send the data
to a different remote instrument on the LAN. You can simultaneously connect to a maximum of
32 devices using standard TCP/IP networking techniques through the LAN port of the Series 3700A.
10-62
"dmm.measurecount = 20 " ..
"dmm.measure(rbremote)")
®
library allows the Series 3700A to control LAN-enabled devices directly through its
®
) and non-TSP instruments. Using TSP-Net library methods, you
Series 3700A System Switch/Multimeter Reference Manual
3700AS-901-01 Rev. D/June 2018
®

Advertisement

Table of Contents
loading

Table of Contents