# This is the Channel Over/Under Threshold register 0x1n80 for {set i 0} {$i < 8} {incr i} { variable Ch$i.OUThresh 0 } proc GetOUThresh {} { for {set i 0} {$i < 8} {incr i} { variable Ch$i.OUThresh set Ch$i.OUThresh [ReadRegister Ch$i.OUThresh] } } proc SetOUThresh {w} { for {set i 0} {$i < 8} {incr i} { if {$w < 8 && $w != $i} {continue} variable Ch$i.OUThresh WriteRegister Ch$i.OUThresh [set Ch$i.OUThresh] } } proc SaveOUThresh {} { for {set i 0} {$i < 8} {incr i} { DBSetValue Ch$i.OUThresh [ReadRegister Ch$i.OUThresh] } } proc RestOUThresh {} { for {set i 0} {$i < 8} {incr i} { variable Ch$i.OUThresh set Ch$i.OUThresh [DBGetValue Ch$i.OUThresh] WriteRegister Ch$i.OUThresh [DBGetValue Ch$i.OUThresh] } } proc DrawOUThresh {} { set html "" append html "

" append html "" append html "" append html "" append html "" append html "" for {set i 0} {$i < 8} {incr i} { append html "" append html "" append html "" append html "" } append html "
ChannelChannel n Over/Under Threshold
$i
 
" append html "" append html "

" return $html }