Provide add_oxmag command to instantiate an oxford magnet driver.
This commit is contained in:
@@ -493,12 +493,12 @@ publish OxfordSetHTemp user
|
||||
publish OxfordSetDTemp user
|
||||
publish OxfordSetHS user
|
||||
|
||||
# main driver call
|
||||
#::scobj::magnetic::mkMagnetic {
|
||||
# name "magnetic"
|
||||
# IP 137.157.201.91
|
||||
# PORT 55001
|
||||
# tuning 0
|
||||
# interval 10
|
||||
#}
|
||||
|
||||
proc add_oxmag { name IP PORT {interval 5} } {
|
||||
::scobj::magnetic::mkMagnetic [subst {
|
||||
name $name
|
||||
IP $IP
|
||||
PORT $PORT
|
||||
tuning 0
|
||||
interval $interval
|
||||
}]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user