Skip to content

Commit

Permalink
Revert "Round AWG deltaPhase for greater accuracy at low frequencies …
Browse files Browse the repository at this point in the history
…and small waveform size."

This reverts commit 8a7f910.
  • Loading branch information
jcafhe committed Dec 6, 2023
1 parent 8a7f910 commit a29f521
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions picoscope/picobase.py
Original file line number Diff line number Diff line change
Expand Up @@ -1058,9 +1058,9 @@ def getAWGDeltaPhase(self, timeIncrement):
"""
samplingFrequency = 1 / timeIncrement
deltaPhase = int(round(samplingFrequency / self.AWGDACFrequency *
deltaPhase = int(samplingFrequency / self.AWGDACFrequency *
2 ** (self.AWGPhaseAccumulatorSize -
self.AWGBufferAddressWidth)))
self.AWGBufferAddressWidth))
return deltaPhase

def getAWGTimeIncrement(self, deltaPhase):
Expand Down

0 comments on commit a29f521

Please sign in to comment.