# This is the group TR TRThresh register 0x1nd4 for {set i 0} {$i < 4} {incr i} { variable Grp$i.TRThresh 0 } proc GetTRThresh {} { for {set i 0} {$i < 4} {incr i} { variable Grp$i.TRThresh set Grp$i.TRThresh [expr [ReadRegister Grp$i.TRThresh] & 0x0000ffff] } } proc SetTRThresh {w} { for {set i 0} {$i < 4} {incr i} { if {$w < 4 && $w != $i} {continue} variable Grp$i.TRThresh WriteRegister Grp$i.TRThresh [set Grp$i.TRThresh] } } proc SaveTRThresh {} { for {set i 0} {$i < 4} {incr i} { DBSetValue Grp$i.TRThresh [ReadRegister Grp$i.TRThresh] } } proc RestTRThresh {} { for {set i 0} {$i < 4} {incr i} { variable Grp$i.TRThresh set Grp$i.TRThresh [DBGetValue Grp$i.TRThresh] WriteRegister Grp$i.TRThresh [DBGetValue Grp$i.TRThresh] } } proc DrawTRThresh {} { set html "" append html "

" append html "" append html "" append html "" append html "" append html "" for {set i 0} {$i < 4} {incr i} { append html "" append html "" append html "" append html "" } append html "
GroupGroup n TRThresh
$i
 
" append html "" append html "

" return $html }