# This is the channel Long Gate register 0x1n58 for {set i 0} {$i < $NumChans} {incr i} { variable Ch$i.LongGate 0 } proc GetLongGate {} { variable NumChans for {set i 0} {$i < $NumChans} {incr i} { variable Ch$i.LongGate set Ch$i.LongGate [ReadRegister Ch$i.LongGate] } } proc SetLongGate {w} { variable NumChans for {set i 0} {$i < $NumChans} {incr i} { if {$w < 8 && $w != $i} {continue} variable Ch$i.LongGate WriteRegister Ch$i.LongGate [set Ch$i.LongGate] } } proc SaveLongGate {} { variable NumChans for {set i 0} {$i < $NumChans} {incr i} { DBSetValue Ch$i.LongGate [ReadRegister Ch$i.LongGate] } } proc RestLongGate {} { variable NumChans for {set i 0} {$i < $NumChans} {incr i} { variable Ch$i.LongGate set Ch$i.LongGate [DBGetValue Ch$i.LongGate] WriteRegister Ch$i.LongGate [DBGetValue Ch$i.LongGate] } } proc DrawLongGate {} { variable NumChans variable Name set html "" append html "
" append html "
| Channel | " append html "Channel n Long Gate | " append html "
| $i | " append html "" append html " |