{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 11,
   "id": "4d4cbcef-908f-4cd0-89be-790fccb51cb3",
   "metadata": {},
   "outputs": [],
   "source": [
    "import keithley224_lib \n",
    "import time\n",
    "\n",
    "k224 = keithley224_lib.keithley224()\n",
    "time.sleep(5)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "0c6838bc",
   "metadata": {},
   "outputs": [],
   "source": [
    "k224.set_current(50e-3)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "b8ed02bc",
   "metadata": {},
   "outputs": [],
   "source": [
    "k224.set_time(999e-3)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "d01b65c4",
   "metadata": {},
   "outputs": [],
   "source": [
    "k224.display(2)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "id": "0f0ae471",
   "metadata": {},
   "outputs": [],
   "source": [
    "k224.set_operation(1)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "id": "077207eb",
   "metadata": {},
   "outputs": [],
   "source": [
    "k224.set_range(0)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "id": "871f6c1c",
   "metadata": {},
   "outputs": [],
   "source": [
    "k224.set_voltage_limit(5)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "id": "ae19a392",
   "metadata": {},
   "outputs": [],
   "source": [
    "i,v,w = k224.read_parameters()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "id": "da3d49f4",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "0.05\n",
      "5.0\n",
      "0.999\n"
     ]
    }
   ],
   "source": [
    "print(i)\n",
    "print(v)\n",
    "print(w)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "id": "f742d0fc-e66d-4c28-a3eb-9d69b9c88326",
   "metadata": {},
   "outputs": [],
   "source": [
    "time.sleep(10)\n",
    "del k224"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "id": "89c69ed9-d327-4718-9db3-e6a652965808",
   "metadata": {},
   "outputs": [],
   "source": [
    "k224.change_operation_mode()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "2c453ade-c9d3-440b-9a10-c25b880f7093",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "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.11.1"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}