# This is the channel Peak Hold Off register 0x1n78 for {set i 0} {$i < $NumChans} {incr i} { variable Ch$i.PeakHoldOff 0 } proc GetPeakHoldOff {} { variable NumChans for {set i 0} {$i < $NumChans} {incr i} { variable Ch$i.PeakHoldOff set Ch$i.PeakHoldOff [ReadRegister Ch$i.PeakHoldOff] } } proc SetPeakHoldOff {w} { variable NumChans for {set i 0} {$i < $NumChans} {incr i} { if {$w < $NumChans && $w != $i} {continue} variable Ch$i.PeakHoldOff WriteRegister Ch$i.PeakHoldOff [set Ch$i.PeakHoldOff] } } proc SavePeakHoldOff {} { variable NumChans for {set i 0} {$i < $NumChans} {incr i} { DBSetValue Ch$i.PeakHoldOff [ReadRegister Ch$i.PeakHoldOff] } } proc RestPeakHoldOff {} { variable NumChans for {set i 0} {$i < $NumChans} {incr i} { variable Ch$i.PeakHoldOff set Ch$i.PeakHoldOff [DBGetValue Ch$i.PeakHoldOff] WriteRegister Ch$i.PeakHoldOff [DBGetValue Ch$i.PeakHoldOff] } } proc DrawPeakHoldOff {} { variable NumChans variable Name set html "" append html "

" append html "" append html "" append html "" append html "" append html "" for {set i 0} {$i < $NumChans} {incr i} { append html "" append html "" append html "" append html "" } append html "
ChannelChannel n Peak Hold Off
$i
 
" append html "" append html "

" return $html }