diff options
Diffstat (limited to 'qolab/hardware/scope/__init__.py')
-rw-r--r-- | qolab/hardware/scope/__init__.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/qolab/hardware/scope/__init__.py b/qolab/hardware/scope/__init__.py index bced5a6..d4e31a8 100644 --- a/qolab/hardware/scope/__init__.py +++ b/qolab/hardware/scope/__init__.py @@ -11,8 +11,8 @@ import yaml class Scope(BasicInstrument): # Minimal set of methods to be implemented by a scope. - def __init__(self): - BasicInstrument.__init__(self) + def __init__(self, *args, **kwds): + BasicInstrument.__init__(self, *args, **kwds) self.config['Device type']='Scope' self.config['Device model'] = 'Generic Scope Without Hardware interface' self.config['FnamePrefix'] = 'scope' @@ -77,9 +77,9 @@ class ScopeSCPI(SCPIinstr, Scope): rm = pyvisa.ResourceManager() ScopeSCPI(rm.open_resource('TCPIP::192.168.0.2::INSTR')) """ - def __init__(self, resource): + def __init__(self, resource, *args, **kwds): SCPIinstr.__init__(self, resource) - Scope.__init__(self) + Scope.__init__(self, *args, **kwds) self.config['DeviceId'] = str.strip(self.idn) from .sds1104x import SDS1104X |