# This is the Channel ZS_NSAMP register 0x1n28 for {set i 0} {$i < 8} {incr i} { variable Ch$i.ZSNSAmp 0 } proc GetZSNSAmp {} { for {set i 0} {$i < 8} {incr i} { variable Ch$i.ZSNSAmp set Ch$i.ZSNSAmp [ReadRegister Ch$i.ZSNSAmp] } } proc SetZSNSAmp {w} { for {set i 0} {$i < 8} {incr i} { if {$w < 8 && $w != $i} {continue} variable Ch$i.ZSNSAmp WriteRegister Ch$i.ZSNSAmp [set Ch$i.ZSNSAmp] } } proc SaveZSNSAmp {} { for {set i 0} {$i < 8} {incr i} { DBSetValue Ch$i.ZSNSAmp [ReadRegister Ch$i.ZSNSAmp] } } proc RestZSNSAmp {} { for {set i 0} {$i < 8} {incr i} { variable Ch$i.ZSNSAmp set Ch$i.ZSNSAmp [DBGetValue Ch$i.ZSNSAmp] } SetZSNSAmp 8 } proc DrawZSNSAmp {} { 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 Threshold
$i
 
" append html "" append html "

" return $html }