DMM6500 6½ Digit Multimeter User's Manual
Section 7: Scanning temperature at a set time interval
DMM6500-900-01Rev. A / April 2018
7-5
Using SCPI commands
This sequence of SCPI commands executes a thermocouple-based temperature scan every minute
for 24 hours.
You may need to make changes so that this code will run in your programming environment. In the
table, the SCPI commands have a light gray background. The light green shaded code represents
pseudocode that will vary depending on the programming environment you use.
Make sure the
TERMINALS
switch is set to REAR.
Send the following commands for this example application:
The scan count is 24 * 60; the channel count (chanCount) is 9; total number of readings (totalRdgs)
is scanCount * chanCount
Commands
Descriptions
*RST
Reset the DMM6500
TRAC:CLEar "defbuffer1"
Clear the data buffer
TRAC:POIN totalRdgs,
"defbuffer1"
Set the scan count to 12,960
FUNC 'TEMP', (@1:10)
Set the function to temperature
TEMP:UNIT CELS, (@1:10)
Set up all channels to use degrees celsius
TEMP:TRAN CJC2001, (@1)
Set up channel 1 reference junction
TEMP:TRAN TC, (@2:10)
Set the transducer type to thermocouple
TEMP:TC:TYPE K, (@2:10)
Set thermocouple type to K
TEMP:TC:RJUN:RSEL EXT, (@2:10)
Set the reference junction to external
TEMP:NPLC 1, (@2:10)
Set NPLC to 1
ROUT:SCAN:INT 60
Set the scan-to-scan delay to 60 sec
ROUT:SCAN:COUN:SCAN 12960
Set the scan count to 12,960 (24hrs * 60s * 9chan)
ROUT:SCAN:CRE (@2:10)
Set the scan list
ROUT:SCAN:EXP "/usb1/scan24hr",
EACH, ALL
Prepare the scan to export the buffer to USB after each
scan
ROUT:SCAN:REST ON
Enable restart on power loss
INIT
Start the scan
*WAI
Suspend the scan
TRAC:DATA? 1, totalRdgs,
"defbuffer1\", READ
Read out all data after scan completes