move folder tasmad
r3086 | jgn | 2011-03-29 15:32:07 +1100 (Tue, 29 Mar 2011) | 1 line
This commit is contained in:
committed by
Douglas Clowes
parent
e92dce3948
commit
66e3096b24
23
site_ansto/instrument/tas/config/tasmad/sicscommon/tecs.tcl
Normal file
23
site_ansto/instrument/tas/config/tasmad/sicscommon/tecs.tcl
Normal file
@@ -0,0 +1,23 @@
|
||||
#------------------------------------------------------------------------
|
||||
# tecs: a script to turn on and off temperature
|
||||
#
|
||||
# M. Zolliker, Jun 00
|
||||
#------------------------------------------------------------------------
|
||||
|
||||
#--------- some code to do proper initialization if necessary
|
||||
set ret [catch {tecs} msg]
|
||||
if {$ret != 0} {
|
||||
Publish tecs User
|
||||
}
|
||||
|
||||
proc tecs { { arg1 "on"} { arg2 ""} { arg3 ""} } {
|
||||
if {[string compare $arg1 "off"]==0 } {
|
||||
evfactory del temperature
|
||||
return "removed temperature"
|
||||
} elseif {[string compare $arg1 "on"]==0 } {
|
||||
evfactory new temperature tecs
|
||||
return "installed temperature via TECS"
|
||||
} else {
|
||||
temperature $arg1 $arg2 $arg3
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user