Skip to content

Commit a29f521

Browse files
committed
Revert "Round AWG deltaPhase for greater accuracy at low frequencies and small waveform size."
This reverts commit 8a7f910.
1 parent 8a7f910 commit a29f521

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

picoscope/picobase.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,9 +1058,9 @@ def getAWGDeltaPhase(self, timeIncrement):
10581058
10591059
"""
10601060
samplingFrequency = 1 / timeIncrement
1061-
deltaPhase = int(round(samplingFrequency / self.AWGDACFrequency *
1061+
deltaPhase = int(samplingFrequency / self.AWGDACFrequency *
10621062
2 ** (self.AWGPhaseAccumulatorSize -
1063-
self.AWGBufferAddressWidth)))
1063+
self.AWGBufferAddressWidth))
10641064
return deltaPhase
10651065

10661066
def getAWGTimeIncrement(self, deltaPhase):

0 commit comments

Comments
 (0)