Make IP addresses explicit when configuring the old lakeshore 340 drivers.
r2910 | ffr | 2010-05-07 14:32:51 +1000 (Fri, 07 May 2010) | 2 lines
This commit is contained in:
committed by
Douglas Clowes
parent
1c4d6f398a
commit
8011cec140
@@ -15,9 +15,8 @@ source $cfPath(environment)/temperature/lakeshore340_common.tcl
|
||||
# @param range, lakeshore range
|
||||
# @param upperlimit, upper temperature limit Kelvin
|
||||
# @param lowerlimit, lower temperature limit Kelvin
|
||||
proc ::environment::temperature::add_ls340 {tcn mport args} {
|
||||
proc ::environment::temperature::add_ls340 {tcn tc_dfltURL mport args} {
|
||||
variable tc_dfltPar
|
||||
variable tc_dfltURL
|
||||
variable moxaPortMap
|
||||
if [catch {
|
||||
if {$tcn == "" || $mport == ""} {
|
||||
@@ -36,7 +35,7 @@ proc ::environment::temperature::add_ls340 {tcn mport args} {
|
||||
if {$sim_mode == "true"} {
|
||||
::environment::temperature::mkls340sim $tcn
|
||||
} else {
|
||||
::environment::temperature::mkls340 $tcn 137.157.202.85 $moxaPortMap($mport)
|
||||
::environment::temperature::mkls340 $tcn $tc_dfltURL $moxaPortMap($mport)
|
||||
foreach nm [array names tc_param] {
|
||||
$tcn $nm $tc_param($nm)
|
||||
}
|
||||
|
||||
@@ -47,16 +47,16 @@ switch $envtemp {
|
||||
}
|
||||
"rhqc" {
|
||||
puts "Configuring RHQC"
|
||||
::environment::temperature::add_ls340 tc1 1
|
||||
::environment::temperature::add_ls340 tc1 137.157.202.85 1
|
||||
tc1 controlsensor sensorB
|
||||
puts "Added tc1 with [tc1 controlsensor]"
|
||||
::environment::temperature::add_ls340 tc2 2
|
||||
::environment::temperature::add_ls340 tc2 137.157.202.85 2
|
||||
tc2 controlsensor sensorD
|
||||
puts "Added tc2 with [tc2 controlsensor]"
|
||||
}
|
||||
"11TMagnet" {
|
||||
puts "Configuring 11TMagnet"
|
||||
::environment::temperature::add_ls340 tc1 1
|
||||
::environment::temperature::add_ls340 tc1 137.157.202.85 1
|
||||
tc1 controlsensor sensorA
|
||||
}
|
||||
default {
|
||||
|
||||
Reference in New Issue
Block a user