diff --git a/_modules/index.html b/_modules/index.html index 0034b9611c9..d7714880cc3 100644 --- a/_modules/index.html +++ b/_modules/index.html @@ -177,6 +177,7 @@

All modules for which code is available

  • qcodes.instrument_drivers.AlazarTech.ATS9870
  • qcodes.instrument_drivers.AlazarTech.ATS_acquisition_controllers
  • qcodes.instrument_drivers.Harvard.Decadac
  • +
  • qcodes.instrument_drivers.Keysight.Keysight_33500B
  • qcodes.instrument_drivers.QDev.QDac
  • qcodes.instrument_drivers.QuTech.IVVI
  • qcodes.instrument_drivers.Spectrum.M4i
  • diff --git a/_modules/qcodes/instrument_drivers/Keysight/Keysight_33500B.html b/_modules/qcodes/instrument_drivers/Keysight/Keysight_33500B.html new file mode 100644 index 00000000000..aaecbde4103 --- /dev/null +++ b/_modules/qcodes/instrument_drivers/Keysight/Keysight_33500B.html @@ -0,0 +1,328 @@ + + + + + + + + + + + qcodes.instrument_drivers.Keysight.Keysight_33500B — QCoDeS 0.1.3 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + +
    + + + + + + +
    +
    + + + + + + + + + + + + + + + + +
    + +
      + +
    • Docs »
    • + +
    • Module code »
    • + +
    • qcodes.instrument_drivers.Keysight.Keysight_33500B
    • + + +
    • + + + +
    • + +
    + + +
    +
    +
    +
    + +

    Source code for qcodes.instrument_drivers.Keysight.Keysight_33500B

    +from qcodes import VisaInstrument, validators as vals
    +from pyvisa.errors import VisaIOError
    +import logging
    +
    +log = logging.getLogger(__name__)
    +
    +
    +
    [docs]class Keysight_33500B(VisaInstrument): + + def __init__(self, name, address, **kwargs): + + super().__init__(name, address, **kwargs) + + # stupid helper functions + def setcmd(channel, setting): + return 'SOURce{}:'.format(channel) + setting + ' {}' + + def getcmd(channel, setting): + return 'SOURce{}:'.format(channel) + setting + '?' + + for chan in [1, 2]: + + self.add_parameter('ch{}_function_type'.format(chan), + label='Channel {} function type'.format(chan), + set_cmd=setcmd(chan, 'FUNCtion'), + get_cmd=getcmd(chan, 'FUNCtion'), + vals=vals.Enum('SIN', 'SQU', 'TRI', 'RAMP', + 'PULS', 'PRBS', 'NOIS', 'ARB', + 'DC') + ) + + self.add_parameter('ch{}_frequency_mode'.format(chan), + label='Channel {} frequency mode'.format(chan), + set_cmd=setcmd(chan, 'FREQuency:MODE'), + get_cmd=getcmd(chan, 'FREQuency:MODE'), + vals=vals.Enum('CW', 'LIST', 'SWEEP', 'FIXED') + ) + + self.add_parameter('ch{}_frequency'.format(chan), + label='Channel {} frequency'.format(chan), + set_cmd=setcmd(chan, 'FREQuency'), + get_cmd=getcmd(chan, 'FREQUency'), + get_parser=float, + unit='Hz', + # TODO: max. freq. actually really tricky + vals=vals.Numbers(1e-6, 30e6) + ) + + self.add_parameter('ch{}_amplitude_unit'.format(chan), + label='Channel {} amplitude unit'.format(chan), + set_cmd=setcmd(chan, 'VOLTage:UNIT'), + get_cmd=getcmd(chan, 'VOLTage:UNIT'), + vals=vals.Enum('VPP', 'VRMS', 'DBM') + ) + + self.add_parameter('ch{}_amplitude'.format(chan), + label='Channel {} amplitude'.format(chan), + set_cmd=setcmd(chan, 'VOLTage'), + get_cmd=getcmd(chan, 'VOLTage'), + unit='', # see amplitude_unit + get_parser=float) + + self.add_parameter('ch{}_offset'.format(chan), + label='Channel {} voltage offset'.format(chan), + set_cmd=setcmd(chan, 'VOLTage:OFFSet'), + get_cmd=getcmd(chan, 'VOLTage:OFFSet'), + unit='V', + get_parser=float + ) + self.add_parameter('ch{}_output'.format(chan), + label='Channel {} output state'.format(chan), + set_cmd='OUTPut{}'.format(chan) + ' {}', + get_cmd='OUTPut{}?'.format(chan), + val_mapping={'ON': 1, 'OFF': 0} + ) + + self.add_parameter('ch{}_ramp_symmetry'.format(chan), + label='Channel {} ramp symmetry'.format(chan), + set_cmd=setcmd(chan, 'FUNCtion:RAMP:SYMMetry'), + get_cmd=getcmd(chan, 'FUNCtion:RAMP:SYMMetry'), + get_parser=float, + vals=vals.Numbers(0, 100) + ) + + self.add_parameter('sync_source', + label='Source of sync function', + set_cmd='OUTPut:SYNC:SOURce {}', + get_cmd='OUTPut:SYNC:SOURce?', + val_mapping={1: 'CH1', 2: 'CH2'}, + vals=vals.Enum(1, 2) + ) + + self.add_parameter('sync_output', + label='Sync output state', + set_cmd='OUTPut:SYNC {}', + get_cmd='OUTPut:SYNC?', + val_mapping={'ON': 1, 'OFF': 0}, + vals=vals.Enum('ON', 'OFF') + )
    +
    + +
    +
    + +
    +
    + + +
    +
    + +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/_sources/api/generated/qcodes.instrument_drivers.Keysight.rst.txt b/_sources/api/generated/qcodes.instrument_drivers.Keysight.rst.txt new file mode 100644 index 00000000000..2f43575fb5a --- /dev/null +++ b/_sources/api/generated/qcodes.instrument_drivers.Keysight.rst.txt @@ -0,0 +1,22 @@ +qcodes.instrument_drivers.Keysight package +========================================== + +Submodules +---------- + +qcodes.instrument_drivers.Keysight.Keysight_33500B module +--------------------------------------------------------- + +.. automodule:: qcodes.instrument_drivers.Keysight.Keysight_33500B + :members: + :undoc-members: + :show-inheritance: + + +Module contents +--------------- + +.. automodule:: qcodes.instrument_drivers.Keysight + :members: + :undoc-members: + :show-inheritance: diff --git a/_sources/api/generated/qcodes.instrument_drivers.rst.txt b/_sources/api/generated/qcodes.instrument_drivers.rst.txt index c1a581effca..3cc96c76abe 100644 --- a/_sources/api/generated/qcodes.instrument_drivers.rst.txt +++ b/_sources/api/generated/qcodes.instrument_drivers.rst.txt @@ -8,6 +8,7 @@ Subpackages qcodes.instrument_drivers.AlazarTech qcodes.instrument_drivers.Harvard + qcodes.instrument_drivers.Keysight qcodes.instrument_drivers.QDev qcodes.instrument_drivers.QuTech qcodes.instrument_drivers.Spectrum diff --git a/api/generated/qcodes.instrument_drivers.AlazarTech.html b/api/generated/qcodes.instrument_drivers.AlazarTech.html index e3d1b050053..2112bd456f9 100644 --- a/api/generated/qcodes.instrument_drivers.AlazarTech.html +++ b/api/generated/qcodes.instrument_drivers.AlazarTech.html @@ -108,6 +108,7 @@
  • qcodes.instrument_drivers.Harvard package
  • +
  • qcodes.instrument_drivers.Keysight package
  • qcodes.instrument_drivers.QDev package
  • qcodes.instrument_drivers.QuTech package
  • qcodes.instrument_drivers.Spectrum package
  • diff --git a/api/generated/qcodes.instrument_drivers.Harvard.html b/api/generated/qcodes.instrument_drivers.Harvard.html index 24ae2d4deca..063281b001e 100644 --- a/api/generated/qcodes.instrument_drivers.Harvard.html +++ b/api/generated/qcodes.instrument_drivers.Harvard.html @@ -37,7 +37,7 @@ - + @@ -106,6 +106,7 @@
  • Module contents
  • +
  • qcodes.instrument_drivers.Keysight package
  • qcodes.instrument_drivers.QDev package
  • qcodes.instrument_drivers.QuTech package
  • qcodes.instrument_drivers.Spectrum package
  • @@ -296,7 +297,7 @@

    Submodules - + diff --git a/api/generated/qcodes.instrument_drivers.Keysight.html b/api/generated/qcodes.instrument_drivers.Keysight.html new file mode 100644 index 00000000000..5dfd584f47f --- /dev/null +++ b/api/generated/qcodes.instrument_drivers.Keysight.html @@ -0,0 +1,290 @@ + + + + + + + + + + + qcodes.instrument_drivers.Keysight package — QCoDeS 0.1.3 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + +
    + + + + + + +
    +
    + + + + + + + + + + + + + + + + +
    + + + + +
    +
    +
    +
    + +
    +

    qcodes.instrument_drivers.Keysight package

    +
    +

    Submodules

    +
    +
    +

    qcodes.instrument_drivers.Keysight.Keysight_33500B module

    +
    +
    +class qcodes.instrument_drivers.Keysight.Keysight_33500B.Keysight_33500B(name, address, **kwargs)[source]
    +

    Bases: qcodes.instrument.visa.VisaInstrument

    +
    + +
    +
    +

    Module contents

    +
    +
    + + +
    +
    + +
    +
    + + +
    +
    + +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/api/generated/qcodes.instrument_drivers.QDev.html b/api/generated/qcodes.instrument_drivers.QDev.html index c6b9623545f..677ad2c5502 100644 --- a/api/generated/qcodes.instrument_drivers.QDev.html +++ b/api/generated/qcodes.instrument_drivers.QDev.html @@ -38,7 +38,7 @@ - + @@ -101,6 +101,7 @@
  • Subpackages