This page was generated from docs/examples/driver_examples/QCoDeS example with Aim TTi PL601-P.ipynb. Interactive online version: .
QCoDeS example with Aim TTi PL601-P¶
This is the example notebook that presents the basic features of the QCoDeS driver for the Aim TTi PL601-P programmable power supply. Aim TTi currently has six programmable power supply models. Among these, PL068-P, PL155-P, PL303-P and PL601-P have single output channel. The models PL303QMD-P and PL303QMT-P have dual and triple output channels, respectively. All programmable Aim TTi power supplies have the same remote control interface, therefore, the property calls in this notebook applies to all. Their names and the corresponding number of channels are implemented in the driver. Upon connection, if the instrument model is one of the listed above, driver shall automatically determine the output channel count.
Basic Operation¶
Let us first import QCoDeS and the driver for the power supply:
[1]:
import qcodes as qc
from qcodes.instrument_drivers.AimTTi import AimTTiPL601
Now, we create a station to hold our instrument:
[2]:
station = qc.Station()
We finalize the initialization of the instrument by instantiation and then adding it to the station:
[3]:
tti = AimTTiPL601("aimtti", "ASRL3::INSTR")
station.add_component(tti)
Connected to: THURLBY THANDAR PL601-P (serial:514710, firmware:3.05-4.06) in 0.16s
[3]:
'aimtti'
Let us, first, examine the properties of our instrument via its snapshot
:
[4]:
tti.print_readable_snapshot()
aimtti:
parameter value
--------------------------------------------------------------------------------
IDN : {'vendor': 'THURLBY THANDAR', 'model': 'PL601-P', 'serial': '514710...
timeout : 5 (s)
aimtti_ch1:
parameter value
--------------------------------------------------------------------------------
curr : 0.135 (A)
curr_range : 2 (A)
curr_step_size : 0.001 (A)
output : False
volt : 5 (V)
volt_step_size : 0.01 (V)
The model PL601-P has a single channel that is named in the instrument as ch1
. As depicted in the snapshot, the default values of voltage and current outputs are 5V
and 0.135A
, respectively. We can accsess and set these values to the desired ones by calling the corresponding parameter of the output channel:
[5]:
tti.ch1.volt(3)
[6]:
tti.ch1.volt()
[6]:
3.0
[7]:
tti.ch1.volt.unit
[7]:
'V'
[8]:
tti.ch1.volt.label
[8]:
'Voltage'
Similarly, for the current we have:
[9]:
tti.ch1.curr(0.1)
[10]:
tti.ch1.curr()
[10]:
0.1
[11]:
tti.ch1.curr.unit
[11]:
'A'
[12]:
tti.ch1.curr.label
[12]:
'Current'
the PL601-P has two current ranges for the output called Low (1mA-500mA)
and High (1mA-1500mA)
range, associated with the integers 1
and 2
, respectively.
[13]:
tti.ch1.curr_range()
[13]:
2
[14]:
tti.ch1.curr_range(1)
[15]:
tti.ch1.curr_range()
[15]:
1
Here, we note that the output must be switched off before changing the current range. This is automatically handled by the QCoDeS driver, and your present output state is preserved.
[16]:
tti.ch1.output()
[16]:
False
[17]:
tti.ch1.output(True)
[18]:
tti.ch1.output()
[18]:
True
[19]:
tti.ch1.curr_range(2)
[20]:
tti.ch1.curr_range()
[20]:
2
[21]:
tti.ch1.output()
[21]:
True
If you have a specifically designed set up for a particular measurement and would like to reuse it, it can be saved to the internal set-up store of the power supply. There are ten available slots specified by the intergers 0-9
. To examine this functionality, let us get a snapshot of the current set-up:
[22]:
tti.print_readable_snapshot()
aimtti:
parameter value
--------------------------------------------------------------------------------
IDN : {'vendor': 'THURLBY THANDAR', 'model': 'PL601-P', 'serial': '514710...
timeout : 5 (s)
aimtti_ch1:
parameter value
--------------------------------------------------------------------------------
curr : 0.1 (A)
curr_range : 2 (A)
curr_step_size : 0.01 (A)
output : False
volt : 3 (V)
volt_step_size : 0.01 (V)
We now save this configuretion to the slot number 0
via
[23]:
tti.ch1.save_setup(0)
Now, let us change voltage and current values along with the current range:
[24]:
tti.ch1.volt(5)
[25]:
tti.ch1.curr(0.2)
[26]:
tti.ch1.curr_range(1)
[27]:
tti.print_readable_snapshot()
aimtti:
parameter value
--------------------------------------------------------------------------------
IDN : {'vendor': 'THURLBY THANDAR', 'model': 'PL601-P', 'serial': '514710...
timeout : 5 (s)
aimtti_ch1:
parameter value
--------------------------------------------------------------------------------
curr : 0.2 (A)
curr_range : 1 (A)
curr_step_size : 0.01 (A)
output : False
volt : 5 (V)
volt_step_size : 0.01 (V)
Indeed, our changes successfully took place. Now, to have our old set up back, all we need to do is to load slote 0
:
[28]:
tti.ch1.load_setup(0)
[29]:
tti.print_readable_snapshot()
aimtti:
parameter value
--------------------------------------------------------------------------------
IDN : {'vendor': 'THURLBY THANDAR', 'model': 'PL601-P', 'serial': '514710...
timeout : 5 (s)
aimtti_ch1:
parameter value
--------------------------------------------------------------------------------
curr : 0.1 (A)
curr_range : 2 (A)
curr_step_size : 0.01 (A)
output : False
volt : 3 (V)
volt_step_size : 0.01 (V)
In some cases, a constant incremental increase (decrease) in voltage and current output may be needed. In particular, we may want to change the latter output values dynamically during a repeated process. This can be done by using the pre-defined voltage and current step sizes (in Volts and Ampere, respectively):
[30]:
tti.ch1.volt_step_size()
[30]:
0.01
[31]:
tti.ch1.curr_step_size()
[31]:
0.01
The values of the step sizes can be changed as usual:
[32]:
tti.ch1.volt_step_size(0.1)
[33]:
tti.ch1.volt_step_size()
[33]:
0.1
[34]:
tti.ch1.curr_step_size(0.01)
[35]:
tti.ch1.curr_step_size()
[35]:
0.01
We can, now, make incremental changes to the current and voltage outputs accordingly:
[36]:
tti.ch1.increment_volt_by_step_size()
[37]:
tti.ch1.volt()
[37]:
3.1
[38]:
tti.ch1.decrement_volt_by_step_size()
[39]:
tti.ch1.volt()
[39]:
3.0
Similarly, for the current output, we have:
[40]:
tti.ch1.increment_curr_by_step_size()
[41]:
tti.ch1.curr()
[41]:
0.11
[42]:
tti.ch1.decrement_curr_by_step_size()
[43]:
tti.ch1.curr()
[43]:
0.1
Note that, the step sizes reset to the default values after a power cycle. Therefore, if you wish to have definite step sizes for a specific purpose, we suggest you to save your set up (see above) before turning off the instrument.
Finally, the current meter averaging can be turned on and off remotely. As there is no remote query for the status, user should observe the “Meter Average” signal light. To turn it on, we simply write:
[44]:
tti.ch1.set_damping(1)
Upon success, the signal light should be on, as well. To turn the average off, we write:
[45]:
tti.ch1.set_damping(0)