#!/usr/bin/env python # coding: utf-8 # # QCoDeS Example with the Stahl Bias Sources # # This notebook provides an example to how to set voltages with the Stahl Bias Sources. # In[1]: from qcodes.instrument_drivers.stahl import Stahl # In[2]: stahl = Stahl("stahl", "ASRL3") # In[3]: stahl.channel[4].voltage(2) v = stahl.channel[4].voltage() print(v) # In[4]: stahl.channel[4].voltage(-2) v = stahl.channel[4].voltage() print(v) # In[5]: stahl.channel[4].voltage(0) v = stahl.channel[4].voltage() print(v) # In[6]: stahl.channel[0].current() # In[7]: stahl.channel[0].current.unit # In[8]: stahl.temperature() # In[9]: stahl.channel[1].is_locked() # In[10]: stahl.output_type # In[ ]: