
Section 4: Applications
Series 3700A System Switch/Multimeter User's Manual
Example: Thermocouple measurement through the remote interface
To take thermocouple measurements through the remote interface, send the following code:
Example program code to take thermocouple measurements through the remote interface
Code
Notes and comments
loadscript test_temp
Create a script "test_temp".
reset()
dmm.func=dmm.TEMPERATURE
dmm.transducer=dmm.TEMP_THERMOCOUPLE
dmm.thermocouple=dmm.THERMOCOUPLE_J
dmm.opendetector=dmm.ON
dmm.units=dmm.UNITS_FAHRENHEIT
dmm.refjunction=dmm.REF_JUNCTION_INTERNAL
dmm.configure.set("my_temp_j")
dmm.setconfig("4001:4010", "my_temp_j")
scan.measurecount=1
Set the DMM function to temperature with a
thermocouple type J.
Define this group of settings as the
configuration "my_temp_j".
Set the scan to measure once.
buf=dmm.makebuffer(20)
buf.clear()
buf.appendmode=1
Set the buffer size to 20 readings, clear the
buffer, and set the readings to be appended
to the existing buffer content.
scan.create("4001:4010")
scan.scancount=2
scan.execute(buf)
Create a scan of channels 1 to 10 on slot 4.
Run through the scan twice and store the
readings in the buffer.
for x=1, buf.n do printbuffer (x,x,buf) end
channel.open("allslots")
endscript
Note that
x,x
prints reading and time
vertically so you can copy and paste the
information into Microsoft Excel.
Example: TSP-Link and interactive triggers
This example uses a TSP script to configure and run the test. The script includes two separate
functions for configuring the Series 3700A and System SourceMeter Instrument and a third function
for running the test. TSP-Link trigger lines are used to coordinate the actions between the two
instruments.
When the test is run, the instruments assert trigger signals after completing their respective actions.
After connecting the diode, the Series 3700A sends a trigger signal to the System SourceMeter
instrument. The SMU then performs a single I-V sweep on the diode and sends a trigger signal back
to the Series 3700A to indicate that the test is completed. Hardware handshaking continues in this
fashion until all six diodes have been tested. Data from the SMU is returned to the controlling
computer at the end of all the tests.
Quick Tip
A TSP script is a sequence of instrument commands and programming statements. The Series
3700A can store the TSP script for later use. Using scripts allows the Series 3700A to perform simple
and complex tasks with less interaction with the remote interface controller (the controlling computer).
For more information on using scripts, please see "Instrument Programming" in the Series 3700A
Reference Manual.
4-10
3700AS-900-01 Rev. A / July 2011