# This is the channel DAC register 0x1n98 for {set i 0} {$i < 8} {incr i} { variable Ch$i.DAC 0 } proc GetDAC {} { for {set i 0} {$i < 8} {incr i} { variable Ch$i.DAC set Ch$i.DAC [ReadRegister Ch$i.DAC] } } proc SetDAC {} { for {set i 0} {$i < 8} {incr i} { variable Ch$i.DAC WriteRegister Ch$i.DAC [set Ch$i.DAC] } } proc SaveDAC {} { for {set i 0} {$i < 8} {incr i} { DBSetValue Ch$i.DAC [ReadRegister Ch$i.DAC] } } proc RestDAC {} { for {set i 0} {$i < 8} {incr i} { WriteRegister Ch$i.DAC [DBGetValue Ch$i.DAC] } } proc DrawDAC {} { set html "" append html "

" append html "" append html "" append html "" append html "" append html "" for {set i 0} {$i < 8} {incr i} { append html "" append html "" append html "" append html "" } append html "
channelchannel n DAC
$i
 
" append html "" append html "

" return $html }