Skip to content

Commit c0ea21c

Browse files
authored
Merge pull request #153 from thennen/master
Save the channel attenuation when using setChannel
2 parents a54cca0 + 4d094ee commit c0ea21c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

picoscope/picobase.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ def __init__(self, serialNumber=None, connect=True):
138138
# the "true" voltage as seen at the oscilloscope probe
139139
self.CHRange = [5.0] * self.NUM_CHANNELS
140140
self.CHOffset = [0.0] * self.NUM_CHANNELS
141+
self.CHCoupling = [1] * self.NUM_CHANNELS
141142
self.ProbeAttenuation = [1.0] * self.NUM_CHANNELS
142143

143144
self.handle = None
@@ -265,6 +266,7 @@ def setChannel(self, channel='A', coupling="AC", VRange=2.0,
265266
# if all was successful, save the parameters
266267
self.CHRange[chNum] = VRange
267268
self.CHOffset[chNum] = VOffset
269+
self.CHCoupling[chNum] = coupling
268270
self.ProbeAttenuation[chNum] = probeAttenuation
269271

270272
return VRange

0 commit comments

Comments
 (0)