Remove hard coded magnet name from sensor path.
This commit is contained in:
@@ -302,15 +302,15 @@ proc ::scobj::magnetic::mkMagnetic {argList} {
|
|||||||
hsetprop $hPath control true
|
hsetprop $hPath control true
|
||||||
hsetprop $hPath data true
|
hsetprop $hPath data true
|
||||||
|
|
||||||
foreach {hdbPath klass control data nxsave mutable priv alias} {
|
foreach {hdbPath klass control data nxsave mutable priv alias} [subst {
|
||||||
/sics/magnetic/Temp_s1 NXsensor true true true true user magnetic_T1
|
/sics/$pa(NAME)/Temp_s1 NXsensor true true true true user magnetic_T1
|
||||||
/sics/magnetic/Temp_s2 NXsensor true true true true user magnetic_T2
|
/sics/$pa(NAME)/Temp_s2 NXsensor true true true true user magnetic_T2
|
||||||
/sics/magnetic/Temp_s3 NXsensor true true true true user magnetic_T3
|
/sics/$pa(NAME)/Temp_s3 NXsensor true true true true user magnetic_T3
|
||||||
/sics/magnetic/magneticFieldCurrent NXsensor true true true true user magnetic_Field_Current
|
/sics/$pa(NAME)/magneticFieldCurrent NXsensor true true true true user magnetic_Field_Current
|
||||||
/sics/magnetic/magneticFieldTesla NXsensor true true true true user magnetic_Field_Tesla
|
/sics/$pa(NAME)/magneticFieldTesla NXsensor true true true true user magnetic_Field_Tesla
|
||||||
/sics/magnetic/HelioxTempReading NXsensor true true true true user magnetic_Heliox_Temp
|
/sics/$pa(NAME)/HelioxTempReading NXsensor true true true true user magnetic_Heliox_Temp
|
||||||
/sics/magnetic/DilutTempReading NXsensor true true true true user magnetic_Dilut_Temp
|
/sics/$pa(NAME)/DilutTempReading NXsensor true true true true user magnetic_Dilut_Temp
|
||||||
} {
|
}] {
|
||||||
hsetprop $hdbPath nxalias $alias
|
hsetprop $hdbPath nxalias $alias
|
||||||
hsetprop $hdbPath klass $klass
|
hsetprop $hdbPath klass $klass
|
||||||
hsetprop $hdbPath privilege $priv
|
hsetprop $hdbPath privilege $priv
|
||||||
@@ -498,7 +498,7 @@ proc add_oxmag { name IP PORT {interval 5} } {
|
|||||||
name $name
|
name $name
|
||||||
IP $IP
|
IP $IP
|
||||||
PORT $PORT
|
PORT $PORT
|
||||||
tuning 0
|
tuning 1
|
||||||
interval $interval
|
interval $interval
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user