diff --git a/tcl/drivers/lsc.tcl b/tcl/drivers/lsc.tcl index ba4e26b..9f5a3a9 100644 --- a/tcl/drivers/lsc.tcl +++ b/tcl/drivers/lsc.tcl @@ -539,7 +539,7 @@ proc lsc::read_curve_inp {} { pt100 - pt250 { set value 3 } pt500 { set value 4 } pt1000 - pt2500 { set value 5 } - rhfe { set value 0 ; sct intype 0,2,2,10,8 } + rhfe { set value 0,2,2,10,8 } c { set value 7 } cernox { set value 8 } ruox { set value 9 } @@ -1474,6 +1474,12 @@ proc lsc::updateMean {chan stat} { sct datar_$chan "" if {$n == 0} return } + set fake_stat [silent 0 sct fake_stat_$chan] + if {$fake_stat} { + set stat $fake_stat + clientlog "fake_stat_$chan $stat" + sct fake_stat_$chan 0 + } set sensor [sct channel_$chan] if {$stat == 0 || $stat == 2} { # invalid reading is triggered for unknown reasons updateval $sensor $mean