# This is the channel Pre Gate Size register 0x1n5c for {set i 0} {$i < $NumChans} {incr i} { variable Ch$i.PreGate 0 } proc GetPreGate {} { variable NumChans for {set i 0} {$i < $NumChans} {incr i} { variable Ch$i.PreGate set Ch$i.PreGate [ReadRegister Ch$i.PreGate] } } proc SetPreGate {w} { variable NumChans for {set i 0} {$i < $NumChans} {incr i} { if {$w < $NumChans && $w != $i} {continue} variable Ch$i.PreGate WriteRegister Ch$i.PreGate [set Ch$i.PreGate] } } proc SavePreGate {} { variable NumChans for {set i 0} {$i < $NumChans} {incr i} { DBSetValue Ch$i.PreGate [ReadRegister Ch$i.PreGate] } } proc RestPreGate {} { variable NumChans for {set i 0} {$i < $NumChans} {incr i} { variable Ch$i.PreGate set Ch$i.PreGate [DBGetValue Ch$i.PreGate] WriteRegister Ch$i.PreGate [set Ch$i.PreGate] } } proc DrawPreGate {} { variable NumChans variable Name set html "" append html "
" append html "
| Channel | " append html "Channel n Pre Gate Size (samples) | " append html "
| $i | " append html "" append html " |