Skip to content

Commit afc7ab0

Browse files
add oxford instruments driver and examples ITC503 temperature controller
1 parent 438417c commit afc7ab0

File tree

2 files changed

+400
-0
lines changed

2 files changed

+400
-0
lines changed
Lines changed: 220 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,220 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"id": "b0985491-c3b9-4944-8abb-822a4d76dada",
6+
"metadata": {},
7+
"source": [
8+
"# Example for Oxford Instruments Intelligent Temperature Controller Model 503"
9+
]
10+
},
11+
{
12+
"cell_type": "code",
13+
"execution_count": 1,
14+
"id": "a7a113fb-4dfb-4b8f-bd2a-66cd27b56b04",
15+
"metadata": {},
16+
"outputs": [],
17+
"source": [
18+
"import qcodes as qc\n",
19+
"from qcodes import Station, load_or_create_experiment, \\\n",
20+
" initialise_database, Measurement\n",
21+
"from qcodes.dataset.plotting import plot_by_id\n",
22+
"from qcodes.utils.dataset.doNd import do1d"
23+
]
24+
},
25+
{
26+
"cell_type": "markdown",
27+
"id": "2e005a37-0748-4bba-b8a4-792477e4f1e0",
28+
"metadata": {},
29+
"source": [
30+
"# Import qcodes_contrib_drivers ITC503 driver"
31+
]
32+
},
33+
{
34+
"cell_type": "code",
35+
"execution_count": 2,
36+
"id": "55d73bb2-5511-4308-ab63-2ace15472a46",
37+
"metadata": {},
38+
"outputs": [],
39+
"source": [
40+
"from qcodes_contrib_drivers.drivers.Oxford.ITC503 import ITC503"
41+
]
42+
},
43+
{
44+
"cell_type": "markdown",
45+
"id": "d3bb73c1-e94b-402f-afa2-25dd5536829d",
46+
"metadata": {},
47+
"source": [
48+
"# Connect to the instrument - this case GPIB"
49+
]
50+
},
51+
{
52+
"cell_type": "code",
53+
"execution_count": 3,
54+
"id": "7abc4615-eb4d-4596-88a3-b0e449f2b04a",
55+
"metadata": {},
56+
"outputs": [],
57+
"source": [
58+
"ITC = ITC503(name='ITC',address=\"GPIB0::24::INSTR\")"
59+
]
60+
},
61+
{
62+
"cell_type": "code",
63+
"execution_count": 7,
64+
"id": "2d673ea9-6d99-4684-aecc-1e21a4e1794c",
65+
"metadata": {},
66+
"outputs": [
67+
{
68+
"data": {
69+
"text/plain": [
70+
"142.78"
71+
]
72+
},
73+
"execution_count": 7,
74+
"metadata": {},
75+
"output_type": "execute_result"
76+
}
77+
],
78+
"source": [
79+
"# thermometer 1 temperature in kelivin\n",
80+
"ITC.temp_1()"
81+
]
82+
},
83+
{
84+
"cell_type": "code",
85+
"execution_count": 8,
86+
"id": "5a61ce84-f2a6-4794-948a-3d03a9893d5c",
87+
"metadata": {},
88+
"outputs": [
89+
{
90+
"data": {
91+
"text/plain": [
92+
"6.903"
93+
]
94+
},
95+
"execution_count": 8,
96+
"metadata": {},
97+
"output_type": "execute_result"
98+
}
99+
],
100+
"source": [
101+
"# thermometer 2 temperature in kelivin\n",
102+
"ITC.temp_2()"
103+
]
104+
},
105+
{
106+
"cell_type": "code",
107+
"execution_count": 9,
108+
"id": "b8c1954a-e247-42da-9aae-40a205da7b5c",
109+
"metadata": {},
110+
"outputs": [
111+
{
112+
"data": {
113+
"text/plain": [
114+
"10.0"
115+
]
116+
},
117+
"execution_count": 9,
118+
"metadata": {},
119+
"output_type": "execute_result"
120+
}
121+
],
122+
"source": [
123+
"# thermometer 3 temperature in kelivin\n",
124+
"ITC.temp_3()"
125+
]
126+
},
127+
{
128+
"cell_type": "code",
129+
"execution_count": 10,
130+
"id": "24ca9300-6de6-47a7-a0ff-b68bf696fffa",
131+
"metadata": {},
132+
"outputs": [
133+
{
134+
"name": "stdout",
135+
"output_type": "stream",
136+
"text": [
137+
"ITC:\n",
138+
"\tparameter value\n",
139+
"--------------------------------------------------------------------------------\n",
140+
"IDN :\tNone \n",
141+
"heater_mode :\tNone \n",
142+
"heater_power :\tNone (%)\n",
143+
"remote_mode :\tNone \n",
144+
"select_heater :\tNone \n",
145+
"temp_1 :\t142.78 (K)\n",
146+
"temp_2 :\t6.903 (K)\n",
147+
"temp_3 :\t10 (K)\n",
148+
"temp_set_point :\tNone (K)\n",
149+
"timeout :\t5 (s)\n"
150+
]
151+
}
152+
],
153+
"source": [
154+
"ITC.print_readable_snapshot()"
155+
]
156+
},
157+
{
158+
"cell_type": "code",
159+
"execution_count": 13,
160+
"id": "f13f7bef-0a2d-4f63-820c-29e5bf2f598e",
161+
"metadata": {},
162+
"outputs": [
163+
{
164+
"data": {
165+
"text/plain": [
166+
"'local_locked'"
167+
]
168+
},
169+
"execution_count": 13,
170+
"metadata": {},
171+
"output_type": "execute_result"
172+
}
173+
],
174+
"source": [
175+
"# the current mode of the controller either local_locked': 0, 'remote_locked': 1,'local_unlocked': 2,'remote_unlocked\n",
176+
"ITC.remote_mode()"
177+
]
178+
},
179+
{
180+
"cell_type": "code",
181+
"execution_count": null,
182+
"id": "fe02e0c7-3a72-4218-aa34-426a0f542f62",
183+
"metadata": {},
184+
"outputs": [],
185+
"source": []
186+
},
187+
{
188+
"cell_type": "code",
189+
"execution_count": null,
190+
"id": "b497bc0e-a29b-4e6c-a93d-94150b195b44",
191+
"metadata": {},
192+
"outputs": [],
193+
"source": []
194+
}
195+
],
196+
"metadata": {
197+
"kernelspec": {
198+
"display_name": "Python 3 (ipykernel)",
199+
"language": "python",
200+
"name": "python3"
201+
},
202+
"language_info": {
203+
"codemirror_mode": {
204+
"name": "ipython",
205+
"version": 3
206+
},
207+
"file_extension": ".py",
208+
"mimetype": "text/x-python",
209+
"name": "python",
210+
"nbconvert_exporter": "python",
211+
"pygments_lexer": "ipython3",
212+
"version": "3.11.10"
213+
},
214+
"nbsphinx": {
215+
"execute": "never"
216+
}
217+
},
218+
"nbformat": 4,
219+
"nbformat_minor": 5
220+
}

0 commit comments

Comments
 (0)