# This is the channel Decimation register which is a part of DPP_MISC 0x1n80 for {set i 0} {$i < $NumChans} {incr i} { variable Ch$i.Decimation 0 } proc GetDecimation {} { variable NumChans for {set i 0} {$i < $NumChans} {incr i} { variable Ch$i.Decimation set Ch$i.Decimation [ReadRegister Ch$i.Decimation] } } proc SetDecimation {w} { variable NumChans for {set i 0} {$i < $NumChans} {incr i} { if {$w < $NumChans && $w != $i} {continue} variable Ch$i.Decimation WriteRegister Ch$i.Decimation [set Ch$i.Decimation] } } proc SaveDecimation {} { variable NumChans for {set i 0} {$i < $NumChans} {incr i} { DBSetValue Ch$i.Decimation [ReadRegister Ch$i.Decimation] } } proc RestDecimation {} { variable NumChans for {set i 0} {$i < $NumChans} {incr i} { variable Ch$i.Decimation set Ch$i.Decimation [DBGetValue Ch$i.Decimation] WriteRegister Ch$i.Decimation [DBGetValue Ch$i.Decimation] } } proc DrawDecimation {} { variable NumChans variable Name set html "" append html "
" append html "
| Channel | " append html "Channel n Input Signal Decimation | " append html "
| $i | " append html "" append html "" append html " | " append html "