Section 6: Instrument programming
Models 707B and 708B Switching Matrix Reference Manual
6-52
707B-901-01 Rev. B / January 2015
Removing stale values from the reading buffer cache
The node that acquires the data also stores the data for the reading buffer. To optimize data access,
all nodes can cache data from the node that stores the reading buffer data.
When you run Lua code remotely, it can cause reading buffer data that is held in the cache to
become stale. If the values in the reading buffer change while the Lua code runs remotely, another
node can hold stale values. Use the
clearcache()
command to clear the cache.
The following example code demonstrates how stale values occur and how to use the
clearcache()
command to clear the cache on node 2, which is part of group 7.
TSP-Net
Overview
TSP-Net allows the Model 707B or 708B to control Ethernet-enabled devices directly through its LAN
port. This enables the Model 707B or 708B to communicate directly with a device that is not TSP
®
-
enabled without the use of a controlling computer.
TSP-Net Capabilities
For both Test Script Processor (TSP
®
) and non-TSP devices, the TSP-Net
®
library permits the Model
707B or 708B to control a remote device through the LAN port. Using TSP-Net methods, you can
transfer string data to and from a remote device, transfer and format data into Lua variables, and
clear input buffers. TSP-Net is only accessible using Instrument Control Library (ICL) commands from
a remote command interface and is not available from the front panel.
You can use TSP-Net to communicate with any Ethernet-enabled device. However, specific TSP-Net
commands exist for TSP-enabled devices to allow for support of features unique to TSP. These
features include script downloads, reading buffer access, wait completion, and handling of TSP
prompts.
Using TSP-Net with TSP-enabled instruments, a Model 707B or 708B can download a script to
another TSP-enabled device and have both devices run scripts independently. The Model 707B or
708B can read the data from the remote device and either manipulate the data or send the data to a
different remote device 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 Model 707B or 708B.