Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QDevil QDAC-II driver #110

Merged
merged 16 commits into from
Dec 21, 2021
Merged
1 change: 1 addition & 0 deletions docs/examples/QDevil/QDAC2/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
json-export-subscriber-test/
480 changes: 480 additions & 0 deletions docs/examples/QDevil/QDAC2/AWG.ipynb

Large diffs are not rendered by default.

351 changes: 351 additions & 0 deletions docs/examples/QDevil/QDAC2/Chaining.ipynb

Large diffs are not rendered by default.

267 changes: 267 additions & 0 deletions docs/examples/QDevil/QDAC2/DC_Constant.ipynb

Large diffs are not rendered by default.

159 changes: 159 additions & 0 deletions docs/examples/QDevil/QDAC2/Debugging.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# QDAC-II debugging\n"
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "221a9199",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Logging hadn't been started.\n",
"Activating auto-logging. Current session state plus future input saved.\n",
"Filename : /Users/jps/.qcodes/logs/command_history.log\n",
"Mode : append\n",
"Output logging : True\n",
"Raw input log : False\n",
"Timestamping : True\n",
"State : active\n",
"Qcodes Logfile : /Users/jps/.qcodes/logs/211109-10624-qcodes.log\n",
"Connected to: QDevil QDAC-II (serial:48762, firmware:5-0.9.26) in 0.32s\n"
]
}
],
"source": [
"from time import sleep\n",
"import pprint\n",
"pp = pprint.PrettyPrinter()\n",
"import numpy as np\n",
"from IPython.display import Image, display\n",
"from qcodes_contrib_drivers.drivers.QDevil import QDAC2\n",
"qdac_addr = '192.168.8.153'\n",
"qdac = QDAC2.QDac2('QDAC-II', visalib='@py', address=f'TCPIP::{qdac_addr}::5025::SOCKET')"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "b936eb6b",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"['outp:trig4:sour int1', 'outp:trig4:widt 1e-06']\n"
]
}
],
"source": [
"qdac.start_recording_scpi()\n",
"arrangement = qdac.arrange(\n",
" # QDAC channels 1, 2, 3, 4 connected to sample\n",
" gates={'plunger2': 2, 'plunger3': 3},\n",
" # DMM external trigger connected to QDAC Output Trigger 4\n",
" output_triggers={'dmm': 4})\n",
"pp.pprint(qdac.get_recorded_scpi_commands())"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "7c425791",
"metadata": {},
"outputs": [],
"source": [
"sweep = arrangement.virtual_sweep2d(\n",
" inner_gate='plunger2',\n",
" inner_voltages=np.linspace(-0.2, 0.6, 5),\n",
" outer_gate='plunger3',\n",
" outer_voltages=np.linspace(-0.7, 0.15, 4),\n",
" inner_step_time_s=10e-6,\n",
" inner_step_trigger='dmm')"
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "0319f497",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"['sour2:dc:mark:sst 1',\n",
" 'sour2:dc:trig:sour hold',\n",
" 'sour2:volt:mode list',\n",
" 'sour2:list:volt -0.2, 0, 0.2, 0.4, 0.6, -0.2, 0, 0.2, 0.4, 0.6, -0.2, 0, '\n",
" '0.2, 0.4, 0.6, -0.2, 0, 0.2, 0.4, 0.6',\n",
" 'sour2:list:tmod auto',\n",
" 'sour2:list:dwel 1e-05',\n",
" 'sour2:list:dir up',\n",
" 'sour2:list:coun 1',\n",
" 'sour2:dc:trig:sour bus',\n",
" 'sour2:dc:init:cont on',\n",
" 'sour2:dc:init',\n",
" 'sour2:dc:trig:sour int2',\n",
" 'sour2:dc:init:cont on',\n",
" 'sour2:dc:init',\n",
" 'sour3:dc:trig:sour hold',\n",
" 'sour3:volt:mode list',\n",
" 'sour3:list:volt -0.7, -0.7, -0.7, -0.7, -0.7, -0.416667, -0.416667, '\n",
" '-0.416667, -0.416667, -0.416667, -0.133333, -0.133333, -0.133333, -0.133333, '\n",
" '-0.133333, 0.15, 0.15, 0.15, 0.15, 0.15',\n",
" 'sour3:list:tmod auto',\n",
" 'sour3:list:dwel 1e-05',\n",
" 'sour3:list:dir up',\n",
" 'sour3:list:coun 1',\n",
" 'sour3:dc:trig:sour bus',\n",
" 'sour3:dc:init:cont on',\n",
" 'sour3:dc:init',\n",
" 'sour3:dc:trig:sour int2',\n",
" 'sour3:dc:init:cont on',\n",
" 'sour3:dc:init',\n",
" 'tint 2']\n"
]
}
],
"source": [
"qdac.start_recording_scpi()\n",
"sweep.start()\n",
"pp.pprint(qdac.get_recorded_scpi_commands())"
]
}
],
"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.9.5"
},
"nbsphinx": {
"execute": "never"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
453 changes: 453 additions & 0 deletions docs/examples/QDevil/QDAC2/List.ipynb

Large diffs are not rendered by default.

197 changes: 197 additions & 0 deletions docs/examples/QDevil/QDAC2/MultiGenerator.ipynb

Large diffs are not rendered by default.

245 changes: 245 additions & 0 deletions docs/examples/QDevil/QDAC2/PyvisaAwg.ipynb

Large diffs are not rendered by default.

190 changes: 190 additions & 0 deletions docs/examples/QDevil/QDAC2/Scan2D.ipynb

Large diffs are not rendered by default.

351 changes: 351 additions & 0 deletions docs/examples/QDevil/QDAC2/Sine.ipynb

Large diffs are not rendered by default.

321 changes: 321 additions & 0 deletions docs/examples/QDevil/QDAC2/Square.ipynb

Large diffs are not rendered by default.

280 changes: 280 additions & 0 deletions docs/examples/QDevil/QDAC2/Sweep.ipynb

Large diffs are not rendered by default.

364 changes: 364 additions & 0 deletions docs/examples/QDevil/QDAC2/Triangle.ipynb

Large diffs are not rendered by default.

232 changes: 232 additions & 0 deletions docs/examples/QDevil/QDAC2/VirtualGates2dScan.ipynb

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions docs/examples/QDevil/QDAC2/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
QCoDeS examples of how to use QDAC-II
=====================================

.. toctree::
:glob:

*
6 changes: 6 additions & 0 deletions docs/examples/QDevil/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
QDevil drivers
==============

.. toctree::

QDAC2/index
3 changes: 2 additions & 1 deletion docs/examples/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ To experiment with the examples you can download them directly from the git repo
.. toctree::
:glob:

*
*
QDevil/index
Loading