|
10 | 10 | }, |
11 | 11 | { |
12 | 12 | "cell_type": "code", |
13 | | - "execution_count": 1, |
| 13 | + "execution_count": null, |
14 | 14 | "metadata": {}, |
15 | 15 | "outputs": [], |
16 | 16 | "source": [ |
17 | 17 | "import qcodes as qc\n", |
18 | | - "from qcodes.dataset import do0d, initialise_database, new_experiment, plot_dataset\n", |
| 18 | + "from qcodes.dataset import do0d, do1d, initialise_database, new_experiment, plot_dataset\n", |
19 | 19 | "from qcodes.instrument_drivers.Keithley import Keithley2614B" |
20 | 20 | ] |
21 | 21 | }, |
|
182 | 182 | "print(f\"Measured one current value: {curr} A\")" |
183 | 183 | ] |
184 | 184 | }, |
| 185 | + { |
| 186 | + "cell_type": "markdown", |
| 187 | + "metadata": {}, |
| 188 | + "source": [ |
| 189 | + "## Four-probe measurement \n", |
| 190 | + "\n", |
| 191 | + "Enabling four-probe measurements is simple." |
| 192 | + ] |
| 193 | + }, |
| 194 | + { |
| 195 | + "cell_type": "code", |
| 196 | + "execution_count": null, |
| 197 | + "metadata": {}, |
| 198 | + "outputs": [], |
| 199 | + "source": [ |
| 200 | + "# Select channel to work with\n", |
| 201 | + "smub = keith.smub\n", |
| 202 | + "\n", |
| 203 | + "# Set up for four-probe measurement\n", |
| 204 | + "smub.mode(\"current\") # Source current, measure voltage\n", |
| 205 | + "smub.nplc(1.0)\n", |
| 206 | + "smub.limitv(20)\n", |
| 207 | + "smub.source_autorange_i_enabled(True)\n", |
| 208 | + "smub.measure_autorange_v_enabled(True)\n", |
| 209 | + "\n", |
| 210 | + "# Set sense mode\n", |
| 211 | + "smub.four_wire_measurement(True)\n", |
| 212 | + "\n", |
| 213 | + "# Make sure output is enabled\n", |
| 214 | + "smub.output(True)\n", |
| 215 | + "\n", |
| 216 | + "# Sweep parameters\n", |
| 217 | + "i_start = 0 # A\n", |
| 218 | + "i_stop = 0.1e-6 # A (0.1 µA)\n", |
| 219 | + "n_points = 101\n", |
| 220 | + "settle_delay = 0.001\n", |
| 221 | + "\n", |
| 222 | + "# Take measurements\n", |
| 223 | + "data, _, _ = do1d(smub.curr, i_start, i_stop, n_points, settle_delay, smub.volt)\n", |
| 224 | + "\n", |
| 225 | + "# Set params to safe values\n", |
| 226 | + "smub.curr(0)\n", |
| 227 | + "smub.output(False)\n", |
| 228 | + "\n", |
| 229 | + "plot_dataset(data)" |
| 230 | + ] |
| 231 | + }, |
185 | 232 | { |
186 | 233 | "cell_type": "markdown", |
187 | 234 | "metadata": {}, |
|
0 commit comments