-
- -
-

Qcodes example with Decadac¶

-
%matplotlib nbagg
-
-import qcodes as qc
-from qcodes.instrument_drivers.Harvard.Decadac import Decadac
-
-
-
deca = Decadac('Decadac', port=4, slot=0)
-
-
-

The most used feature of the Decadac is its voltage output capability. -There are four parameters corresponding to the channels, i.e. -deca.ch0_voltage, deca.ch1_voltage, etc.

-
deca.ch0_voltage.set(1)
-deca.ch0_voltage.get()
-
-
-

The Decadac has a global setting (i.e. shared by all channels and -slots) controlling whether the voltages jump or gradually ramp to the -set voltage.

-
deca.set_ramping(True, time=1000)  # time in ms
-deca.ch0_voltage.set(0)
-deca.set_ramping(False)
-
-
-

The precision of the Decadac may be rather poor, so one might want to -apply a correctional offset to each channel.

-
deca.ch0_offset.set(-0.1)
-deca.ch0_voltage.set(1)
-deca.ch0_voltage.get()
-
-
-

It is possible to toggle the Decadac output ON/OFF without changing -anything else.

-
deca.mode.set(0)  # 0: output off, 1: output on
-
-
-
deca.close()
-
-
-
- - -
- -