Change limits and tolerance
r3149 | dcl | 2011-05-20 10:25:05 +1000 (Fri, 20 May 2011) | 1 line
This commit is contained in:
@@ -387,7 +387,7 @@ debug_log "rdVisc [sct] [sct result]"
|
||||
set rslt [scan $data "DR%6x%4x%6x%2x%4x%2x" the_t the_c the_v the_e the_s the_r]
|
||||
debug_log "scan result rslt=$rslt, the_t=$the_t , the_c=$the_c , the_v=$the_v , the_e=$the_e , the_s=$the_s , the_r=$the_r"
|
||||
if {$rslt == 6} {
|
||||
# TODO handle test start
|
||||
# handle test start
|
||||
if {$the_r != 0} {
|
||||
sct test_time [clock seconds]
|
||||
set file_name [hval $tc_root/profile]
|
||||
@@ -955,7 +955,7 @@ proc createNode {scobj_hpath sct_controller cmdGroup varName readable writable\
|
||||
}
|
||||
|
||||
hsetprop $scobj_hpath/sensor/value lowerlimit 0
|
||||
hsetprop $scobj_hpath/sensor/value upperlimit 500
|
||||
hsetprop $scobj_hpath/sensor/value upperlimit 140
|
||||
hsetprop $scobj_hpath/sensor/value units "C"
|
||||
|
||||
hfactory $scobj_hpath/apply_tolerance plain user int
|
||||
@@ -993,7 +993,7 @@ proc createNode {scobj_hpath sct_controller cmdGroup varName readable writable\
|
||||
|
||||
hfactory $scobj_hpath/upperlimit plain mugger float
|
||||
hsetprop $scobj_hpath/upperlimit units "C"
|
||||
hset $scobj_hpath/upperlimit 500
|
||||
hset $scobj_hpath/upperlimit 140
|
||||
|
||||
hfactory $scobj_hpath/emon plain spy none
|
||||
hfactory $scobj_hpath/emon/monmode plain user text
|
||||
@@ -1052,7 +1052,7 @@ proc createNode {scobj_hpath sct_controller cmdGroup varName readable writable\
|
||||
# @param IP, the IP address of the device, this can be a hostname, (eg ca5-kowari)
|
||||
# @param port, the IP protocol port number of the device (502 for modbus)
|
||||
# @param _tol (optional), this is the initial tolerance setting
|
||||
proc add_newport_rva {name IP port {_tol 5.0}} {
|
||||
proc add_newport_rva {name IP port {_tol 1.0}} {
|
||||
set fd [open "/tmp/newport_rva.log" a]
|
||||
if {[SplitReply [environment_simulation]]=="false"} {
|
||||
puts $fd "makesctcontroller sct_${name} newport ${IP}:$port"
|
||||
|
||||
Reference in New Issue
Block a user