Removing Stale Values From The Reading Buffer Cache; Tsp-Net; Overview - Keithley 2601B Reference Manual

2600b series system sourcemeter instrument
Hide thumbs Also See for 2601B:
Table of Contents

Advertisement

Series 2600B System SourceMeter® Instrument Reference Manual

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. For additional
detail on the reading buffer cache commands, see
bufferVar.clearcache()
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.
-- Create a reading buffer on a node in a remote group.
node[2].tsplink.group = 7
node[2].execute("rbremote = smua.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("smua.measure.v(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

Overview

The TSP-Net
LAN port. This enables the Series 2600B to communicate directly with a device that is not TSP
enabled without the use of a controlling computer.
2600BS-901-01 Rev. B / May 2013
(on page 7-18).
"smua.measure.count = 20
"smua.measure.v(rbremote)")
®
library allows the Series 2600B to control LAN-enabled devices directly through its
Section 6: Instrument programming
bufferVar.cachemode
(on page 7-16) and
" ..
®
6-59

Advertisement

Table of Contents
loading

This manual is also suitable for:

2604b2614b2634b2635b2636b2602b ... Show all

Table of Contents