# This is the group DAC register 0x1n98 for {set i 0} {$i < 8} {incr i} { variable Grp$i.DAC 0 } proc GetDAC {} { for {set i 0} {$i < 8} {incr i} { variable Grp$i.DAC set Grp$i.DAC [ReadRegister Grp$i.DAC] } } proc SetDAC {} { for {set i 0} {$i < 8} {incr i} { variable Grp$i.DAC WriteRegister Grp$i.DAC [set Grp$i.DAC] } } proc SaveDAC {} { for {set i 0} {$i < 8} {incr i} { DBSetValue Grp$i.DAC [ReadRegister Grp$i.DAC] } } proc RestDAC {} { for {set i 0} {$i < 8} {incr i} { WriteRegister Grp$i.DAC [DBGetValue Grp$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 "
GroupGroup n DAC
$i
 
" append html "" append html "

" return $html }