Skip to content

Instantly share code, notes, and snippets.

@hgrecco
Created October 5, 2012 12:09
Show Gist options
  • Save hgrecco/3839459 to your computer and use it in GitHub Desktop.
Save hgrecco/3839459 to your computer and use it in GitHub Desktop.
Writting a multiple interface driver in lantz
class _A33120(object):
"""Agilent 33120A Function/Arbitrary Waveform Generator
"""
# Here goes the code for the instrument functions that
# are available in *both* GPIB and RS-232
class A33120Serial(_A33120, SerialDriver):
"""Agilent 33120A Function/Arbitrary Waveform Generator
RS-232 communication
"""
# Here goes the code for the instrument functions that
# are available *only* in RS-232
class A33120GPIB(_A33120, GPIBVisaDriver):
"""Agilent 33120A Function/Arbitrary Waveform Generator
GPIB communication
"""
# Here goes the code for the instrument functions that
# are available *only* in GPIB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment