# This is the DPP register Config 0x8000 variable Config 0 variable Config.TrigOpt 0 variable Config.DualTrace 0 variable Config.VProbe1 0 variable Config.VProbe2 0 variable Config.OscMode 0 variable Config.EnergyMode 0 variable Config.TimeTagMode 0 variable Config.DigVProbe 0 proc GetConfig {} { variable Config variable Config.DualTrace variable Config.TrigOpt variable Config.VProbe1 variable Config.VProbe2 variable Config.OscMode variable Config.EnergyMode variable Config.TimeTagMode variable Config.DigVProbe set Config [ReadRegister Config] set Config.TrigOpt [expr ($Config >> 2) & 1] set Config.DualTrace [expr ($Config >> 11) & 1] set Config.VProbe1 [expr ($Config >> 12) & 3] set Config.VProbe2 [expr ($Config >> 14) & 3] set Config.OscMode [expr ($Config >> 16) & 1] set Config.EnergyMode [expr ($Config >> 17) & 1] set Config.TimeTagMode [expr ($Config >> 18) & 1] set Config.DigVProbe [expr ($Config >> 20) & 15] } proc SetConfig {} { variable Config variable Config.DualTrace variable Config.TrigOpt variable Config.VProbe1 variable Config.VProbe2 variable Config.OscMode variable Config.EnergyMode variable Config.TimeTagMode variable Config.DigVProbe set Config.EnableFmtWord 1 set Config [expr \ ([set Config.TrigOpt] << 2) + \ (1 << 4) + \ (1 << 8) + \ ([set Config.DualTrace] << 11) + \ ([set Config.VProbe1] << 12) + \ ([set Config.VProbe2] << 14) + \ ([set Config.OscMode] << 16) + \ ([set Config.EnergyMode] << 17) + \ ([set Config.TimeTagMode] << 18) + \ ([set Config.DigVProbe] << 20) + \ (1 << 24)] WriteRegister Config $Config } proc DrawConfig {} { variable Name set html "" append html "
" append html "
| Trigger Propagation (B2) | " append html "Dual Trace | " append html "Analog Probe 1 | " append html "Analog Probe 2 | " append html "
| " append html "" append html " | " # Bit 11: Dual Trace append html "" append html "" append html " | " # Bit 12/13: Analog Probe 1 append html "" append html "" append html " | " # Bit 14/15: Analog Probe 2 append html "" append html "" append html " | " append html "
| Oscilloscope Mode | " append html "Energy Mode | " append html "Time Tag Mode | " append html "Digitial V Probe | " append html "" append html "" append html " | " # Bit 17: Energy Mode append html "" append html "" append html " | " # Bit 18: TimeTag Mode append html "" append html "" append html " | " # Bit 22/20 Digitial Virtual Probe append html "" append html "" append html " | " append html "" append html "