Skip to content

Commit

Permalink
Merge pull request #166 from abrasive/master
Browse files Browse the repository at this point in the history
getRawDataBulk: clear the driver's data pointers after use
  • Loading branch information
hmaarrfk authored Oct 9, 2020
2 parents e47bf20 + 7c81be9 commit fe55ed4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions picoscope/picobase.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,10 @@ def getDataRawBulk(self, channel='A', numSamples=0, fromSegment=0,
self._lowLevelGetValuesBulk(numSamples, fromSegment, toSegment,
downSampleRatio, downSampleMode, overflow)

# don't leave the API thinking these can be written to later
for i, segment in enumerate(range(fromSegment, toSegment + 1)):
self._lowLevelClearDataBuffer(channel, segment)

return (data, numSamples, overflow)

def setSigGenBuiltInSimple(self,
Expand Down

0 comments on commit fe55ed4

Please sign in to comment.