User manual
Section 3: TSP Advanced Features Series 3700 System Switch/Multimeter Reference Manual
3-8 3700S-901-01 Rev. C / July 2008
Using the data queue for real-time communication
You cannot access the reading buffers or global variables from any node in a
remote group while a node in that group is performing an overlapped operation.
You can use the data queue to retrieve data from any node in a group
performing an overlapped operation. In addition, the master node and the group
leaders can use the data queue as a way to coordinate activities.
The data queue uses the first-in, first-out (FIFO) structure to store data. Nodes
running test scripts in parallel can store data in the data queue for real-time
communication. Each Series 3700 has an internal data queue. You can access
the data queue from any node at any time.
You can use the data queue to post numeric values, strings, and tables. Tables
in the data queue consume one entry. A new copy of the table is created when
the table is retrieved from the data queue. The copy of the table does not
contain any references to the original table or any subtables.
To add or retrieve values from the data queue and view the capacity, see the
Instrument Control Library (ICL) (on page 12-1).
Copying test scripts across the TSP-LinkTM network
To run a large script on a remote node, it is highly recommend that you copy the
test script to the remote node to increase the speed of test script initiation.
Use the code below to copy test scripts across the TSP-Link network. This
example creates a copy of a script on the remote node with the same name:
Note the following:
Replace N with the number of the node that receives a copy of the script
Replace myscript with the name of the script that you want to copy from
the local node
-- Adds the source code from myscript to the data queue.
node[N].dataqueue.add(myscript.source)
-- Creates a new script on the remote node
-- using the source code from myscript.
node[N].execute(myscript.name.." =
script.new(dataqueue.next(),
[["..myscript.name.."]])")