
Section 4: Applications
Series 3700A System Switch/Multimeter User's Manual
function runDiodeTest()
This function sequences the
crosspoint closures and triggering.
xptTable = configSwitch()
Call the function to configure the
switch storing the result in the
variable xptTable.
configSMU()
node[2].smua.source.output = 1
Call function to configure the SMU
and turn on its output.
node[2].smua.trigger.initiate()
Initiate the System SourceMeter so
that it is ready to sweep once a
trigger signal is received (the output
turns on but no power is applied).
for i = 1, table.getn(xptTable) do
if i > 1 then
triggered = tsplink.trigger[2].wait(3)
if triggered == true then
channel.exclusiveclose(xptTable[i])
tsplink.trigger[1].assert()
else
print("Trigger not received")
end
else
channel.exclusiveclose(xptTable[i])
tsplink.trigger[1].assert()
end
end
The "for" loop iterates through the
channel list, waiting three seconds
for a trigger on TSP-Link line 2
before closing a channel. The first
channel of the list does not wait for a
trigger. After channel closure is
complete, an output trigger is
asserted on TSP-Link line 1.
waitcomplete()
node[2].smua.source.output = 0
channel.open("allslots")
print("done")
After all switch and measure actions
have completed, turn off the SMU
output, open all crosspoints, and print
"done"; the computer controller can
query for "done" to determine when
the test is complete.
end
Ends the function "runDiodeTest."
endscript
Ends the script "diodeTest."
Program code to run the test
The example program code stores the program in the instrument for later use. To run the program,
send the following commands to the Series 3700A.
Example program code to run the test
Code
Notes and comments
diodeTest()
runDiodeTest()
Run the script to define the functions.
Execute the test by calling the function that configures the instruments
and sequences their actions.
To retrieve data from the System SourceMeter instrument through TSP-Link, use the
printbuffer()
command to print the data to the computer communication interface. An example is
shown below.
Example: Retrieve buffer data
Code
Notes and comments
printbuffer(1, node[2].smua.nvbuffer1.n,
node[2].smua.nvbuffer1.readings)
Print all readings from the SMU data buffer. Note that
"readings" is a buffer attribute.
4-14
3700AS-900-01 Rev. A / July 2011