{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# QCoDeS Example with the Stahl Bias Sources\n", "\n", "This notebook provides an example to how to set voltages with the Stahl Bias Sources." ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "from qcodes.instrument_drivers.stahl import Stahl" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Connected to: Stahl HV (serial:171, firmware:None) in 0.19s\n" ] } ], "source": [ "stahl = Stahl(\"stahl\", \"ASRL3\")" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "2.002\n" ] } ], "source": [ "stahl.channel[4].voltage(2)\n", "v = stahl.channel[4].voltage()\n", "print(v)" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "-1.997\n" ] } ], "source": [ "stahl.channel[4].voltage(-2)\n", "v = stahl.channel[4].voltage()\n", "print(v)" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "0.001\n" ] } ], "source": [ "stahl.channel[4].voltage(0)\n", "v = stahl.channel[4].voltage()\n", "print(v)" ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "1e-06" ] }, "execution_count": 6, "metadata": {}, "output_type": "execute_result" } ], "source": [ "stahl.channel[0].current()" ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "'A'" ] }, "execution_count": 7, "metadata": {}, "output_type": "execute_result" } ], "source": [ "stahl.channel[0].current.unit" ] }, { "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "25.9" ] }, "execution_count": 8, "metadata": {}, "output_type": "execute_result" } ], "source": [ "stahl.temperature()" ] }, { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "False" ] }, "execution_count": 9, "metadata": {}, "output_type": "execute_result" } ], "source": [ "stahl.channel[1].is_locked()" ] }, { "cell_type": "code", "execution_count": 10, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "'bipolar'" ] }, "execution_count": 10, "metadata": {}, "output_type": "execute_result" } ], "source": [ "stahl.output_type" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.6.7" }, "nbsphinx": { "execute": "never" } }, "nbformat": 4, "nbformat_minor": 2 }