# This is the channel PUR-GAP Threshold register 0x1n7c for {set i 0} {$i < $NumChans} {incr i} { variable Ch$i.PUR-GAPThreshold 0 } proc GetPUR-GAPThreshold {} { variable NumChans for {set i 0} {$i < $NumChans} {incr i} { variable Ch$i.PUR-GAPThreshold set Ch$i.PUR-GAPThreshold [ReadRegister Ch$i.PUR-GAPThreshold] } } proc SetPUR-GAPThreshold {w} { variable NumChans for {set i 0} {$i < $NumChans} {incr i} { if {$w < 8 && $w != $i} {continue} variable Ch$i.PUR-GAPThreshold WriteRegister Ch$i.PUR-GAPThreshold [set Ch$i.PUR-GAPThreshold] } } proc SavePUR-GAPThreshold {} { variable NumChans for {set i 0} {$i < $NumChans} {incr i} { DBSetValue Ch$i.PUR-GAPThreshold [ReadRegister Ch$i.PUR-GAPThreshold] } } proc RestPUR-GAPThreshold {} { variable NumChans for {set i 0} {$i < $NumChans} {incr i} { variable Ch$i.PUR-GAPThreshold set Ch$i.PUR-GAPThreshold [DBGetValue Ch$i.PUR-GAPThreshold] WriteRegister Ch$i.PUR-GAPThreshold [DBGetValue Ch$i.PUR-GAPThreshold] } } proc DrawPUR-GAPThreshold {} { variable NumChans variable Name set html "" append html "
" append html "
| Channel | " append html "Channel n PUR-GAP Threshold | " append html "
| $i | " append html "" append html "" append html " | " append html "