E-6
Example Programs
Models 2510 and 2510-AT User’s Manual
Program 1: Basic temperature control
' The program performs basic temperature control-measure procedure.
' 2510 primary address = 15.
OPEN "IEEE" FOR OUTPUT AS #1
' Open IEEE-488 output path.
OPEN "IEEE" FOR INPUT AS #2
' Open IEEE-488 input path.
PRINT #1, "INTERM CRLF"
' Set input terminator.
PRINT #1, "OUTTERM LF"
' Set output terminator.
PRINT #1, "REMOTE 15"
' Put 2510 in remote.
'
' Step 1: Restore defaults.
PRINT #1, "OUTPUT 15;*RST"
' Restore GPIB defaults.
'
' Step 2: Select function.
PRINT #1, "OUTPUT 15;:SOUR:FUNC TEMP"
' Select temperature function.
'
' Step 3: Configure selected function.
PRINT #1, "OUTPUT 15;:UNIT:TEMP CEL"
' Celsius temperature units.
PRINT #1, "OUTPUT 15;:SOUR:TEMP:PROT 100"
' Upper limit = 100 deg.
PRINT #1, "OUTPUT 15;:SOUR:TEMP:PROT:LOW 10"
' Lower limit = 10 deg.
PRINT #1, "OUTPUT 15;:TEMP:TRAN RTD"
' Select RTD sensor type.
PRINT #1, "OUTPUT 15;:TEMP:RTD:TYPE PT100"
' Select PT100 RTD sensor.
PRINT #1, "OUTPUT 15;:TEMP:CURR:AUTO ON"
' Use default RTD sensor current.
PRINT #1, "OUTPUT 15;:SYST:RSEN ON"
' Enable 4-wire sensing.
PRINT #1, "OUTPUT 15;:SOUR:TEMP:LCON 10"
' Gain (P) constant = 10.
PRINT #1, "OUTPUT 15;:SOUR:TEMP:LCON:INT 0.5"
' Integral (I) constant = 0.5.
PRINT #1, "OUTPUT 15;:SOUR:TEMP:LCON:DER 0"
' Derivative (D) constant = 0.
'
' Step 4: Program setpoint.
PRINT #1, "OUTPUT 15;:SOUR:TEMP 50"
' Setpoint = 50 deg. C.
'
' Step 5: Program current limit.
PRINT #1, "OUTPUT 15;:SENS:CURR:PROT MAX"
' Current limit = 5.25A.
'
' Step 6: Turn on output.
PRINT #1, "OUTPUT 15;:OUTP ON"
'
Содержание TEC SourceMeter 2510
Страница 194: ...A Specifications...
Страница 197: ...B StatusandErrorMessages...
Страница 206: ...C IEEE 488BusOverview...
Страница 221: ...D IEEE 488andSCPI ConformanceInformation...
Страница 225: ...E ExamplePrograms...
Страница 233: ...F GPIB488 1Protocol...