Keithley 2182 User Manual page 61

Nanovoltmeter
Hide thumbs Also See for 2182:
Table of Contents

Advertisement

Programming Example - measure voltage and temperature
The following program fragments will measure voltage on Channel 1 and temperature on
Channel 2. Temperature is configured using a simulated reference junction (i.e., ice bath) and a
type K thermocouple.
' Configure Temperature:
CALL SEND(7,":sens:temp:trans tc",status%)
CALL SEND(7,":sens:temp:rjun:rsel sim",status%)
CALL SEND(7,":sens:temp:rjun:rsel:sim 0",status%)
CALL SEND(7,":sens:temp:TC K",status%)
CALL SEND(7,":unit:temp F",status%)
' Measure voltage on Channel 1:
CALL SEND(7,":sens:chan 1",status%)
CALL SEND(7,":sens:func 'volt'",status%)
CALL SEND(7,":sens:data:fres?",status%)
reading$ = SPACE$(80)
CALL ENTER(reading$, length%, 7, status%)
PRINT reading$
' Measure temperature on Channel 2:
CALL SEND(7,":sens:chan 2",status%)
CALL SEND(7,":sens:func 'temp'",status%)
CALL SEND(7,":sens:data:fres?",status%)
reading$ = SPACE$(80)
CALL ENTER(reading$, length%, 7,status%)
PRINT reading$
Voltage and Temperature Measurements
'Select thermocouple
'sensor.
'Set for type K
thermocouple.
'Read in ˚F.
'Select Channel 1.
'Select DCV1.
'Request a fresh
'reading.
'Address 2182 to talk.
'Display reading on CRT.
'Select Channel 2.
'Select TEMP2.
'Request a fresh
'reading.
'Address 2182 to talk.
'Display reading on CRT.
2-21
'Select simulated
'reference.
'Set reference to
'0˚C.

Advertisement

Table of Contents
loading

This manual is also suitable for:

2182a

Table of Contents