Skip to content

Commit

Permalink
fix offset values
Browse files Browse the repository at this point in the history
  • Loading branch information
drandyhaas committed Feb 3, 2025
1 parent 342f0ad commit 31ab333
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions software/HaasoscopeProQt.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class MainWindow(TemplateBaseClass):
extrigboardmeancorrection = 0
lastrate = 0
lastsize = 0
VperD = [0.08]*(num_board*2)
VperD = [0.16]*(num_board*2)
plljustreset = [False] * num_board
dooversample = False

Expand Down Expand Up @@ -251,7 +251,7 @@ def changeoffset(self):
if dooffset(self.activeusb, self.selectedchannel, self.ui.offsetBox.value(),scaling/self.tenx,self.dooversample):
if self.dooversample and self.ui.boardBox.value()%2==0: # also adjust other board we're oversampling with
dooffset(usbs[self.ui.boardBox.value()+1], self.selectedchannel, self.ui.offsetBox.value(),scaling/self.tenx,self.dooversample)
v2 = scaling*750.0/1000*self.ui.offsetBox.value()
v2 = scaling*1.0*self.ui.offsetBox.value()
self.ui.Voff.setText(str(int(v2))+" mV")

def changegain(self):
Expand Down

0 comments on commit 31ab333

Please sign in to comment.