{ "cells": [ { "cell_type": "markdown", "id": "607a28d5-b659-4aa9-a7e9-9961a0db6ffe", "metadata": {}, "source": [ "# Example with the Keysight 33502A isolated amplifier" ] }, { "cell_type": "markdown", "id": "203c0f5c-0d32-4a20-aab6-87c2cf60d3f9", "metadata": {}, "source": [ "### Import" ] }, { "cell_type": "code", "execution_count": 1, "id": "7a722b98-9184-496c-bc98-345b7ff947ff", "metadata": {}, "outputs": [], "source": [ "from qcodes_contrib_drivers.drivers.Keysight.Keysight_33502A import Keysight33502A" ] }, { "cell_type": "markdown", "id": "dc911ceb-fa4a-4154-a56e-5a29c08cd229", "metadata": {}, "source": [ "### Connection" ] }, { "cell_type": "code", "execution_count": 2, "id": "efb180a1-b1ba-4be9-b31b-30f7cb437a0b", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Connected to: Agilent Technologies 33502A (serial:MY59000417, firmware:02.02-1924.2841-3.16-BD.4-1.00) in 0.15s\n" ] } ], "source": [ "driver = Keysight33502A(\n", " 'Keysight_33502A',\n", " address='USB0::0x0957::0x2207::MY59000417::INSTR', # Change with sim or device address to run \n", ")" ] }, { "cell_type": "markdown", "id": "b9b2c75a-d181-4a46-945e-87295a757ba0", "metadata": {}, "source": [ "### Usage" ] }, { "cell_type": "code", "execution_count": 3, "id": "f6b6ce63-2e44-47b8-9fa6-1fc823edfe25", "metadata": { "editable": true, "slideshow": { "slide_type": "" }, "tags": [] }, "outputs": [ { "data": { "text/plain": [ "'DC'" ] }, "execution_count": 3, "metadata": {}, "output_type": "execute_result" } ], "source": [ "driver.ch1.coupling()" ] }, { "cell_type": "code", "execution_count": 4, "id": "59677528-f68e-4ad4-92cf-5ebe16e49f85", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "1000000.0" ] }, "execution_count": 4, "metadata": {}, "output_type": "execute_result" } ], "source": [ "driver.ch1.impedance()" ] }, { "cell_type": "code", "execution_count": 5, "id": "de1c2461-d734-4d5a-9293-a642fb27beb0", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "'DIR'" ] }, "execution_count": 5, "metadata": {}, "output_type": "execute_result" } ], "source": [ "driver.ch1.path()" ] }, { "cell_type": "code", "execution_count": 6, "id": "d5ba27fa-138b-4375-8d10-93d22286bc4e", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "'OFF'" ] }, "execution_count": 6, "metadata": {}, "output_type": "execute_result" } ], "source": [ "driver.ch1.state()" ] }, { "cell_type": "code", "execution_count": 7, "id": "9b8c645e-c6fb-4137-80a6-04952da59f1a", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "50.0" ] }, "execution_count": 7, "metadata": {}, "output_type": "execute_result" } ], "source": [ "driver.ch1.impedance(50)\n", "driver.ch1.impedance()" ] }, { "cell_type": "code", "execution_count": 8, "id": "a9eba23d-a5c3-4c6d-a52b-6ed59419dff7", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "'ON'" ] }, "execution_count": 8, "metadata": {}, "output_type": "execute_result" } ], "source": [ "driver.ch1.state('ON')\n", "driver.ch1.state()" ] }, { "cell_type": "code", "execution_count": 9, "id": "fbe113d7-e47a-4dca-8b95-bfc4d23bebbb", "metadata": { "editable": true, "slideshow": { "slide_type": "" }, "tags": [] }, "outputs": [], "source": [ "driver.ch1.state('OFF')\n", "driver.ch1.impedance(1000000)\n", "driver.close()" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3 (ipykernel)", "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.12.0" }, "nbsphinx": { "execute": "never" } }, "nbformat": 4, "nbformat_minor": 5 }