You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/examples/driver_examples/QCoDeS example with Keithley 3706A System Switch.ipynb
+23-2Lines changed: 23 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1447,7 +1447,18 @@
1447
1447
"cell_type": "markdown",
1448
1448
"metadata": {},
1449
1449
"source": [
1450
-
"In certain cases, we may want to keep certain channels always open. We can achieve desired behavior by setting the specified channels (and analog backplane relays) as `forbidden` to close."
1450
+
"In certain cases, we may want to keep certain channels always open. We can achieve desired behavior by setting the specified channels (and analog backplane relays) as `forbidden` to close.\n",
1451
+
"\n",
1452
+
"**Note on Forbidden Channels Cache:**\n",
1453
+
"\n",
1454
+
"When closing channels, there is a check to make sure the channel isn't forbidden to close, which can become quite \"expensive\" if many close operations are required in our measurement. To remedy this, we can set a class attribute that toggles usage of a forbidden channels cache.\n",
1455
+
"```\n",
1456
+
"smatrix.use_forbidden_channels_cache = True\n",
1457
+
"```\n",
1458
+
"\n",
1459
+
"When this cache is active, setting forbidden channels will both update the forbidden channels on the instrument and update the cache.\n",
1460
+
"\n",
1461
+
"Please use with caution since the local cache may become out of sync with the instrument in the case of an instrument reset and/or powercycle. If intending to set forbidden channels, always do so before running a measurement to minimize risk of cache being out of sync."
1451
1462
]
1452
1463
},
1453
1464
{
@@ -1459,6 +1470,16 @@
1459
1470
"smatrix.set_forbidden_channels(\"1101:1105\")"
1460
1471
]
1461
1472
},
1473
+
{
1474
+
"cell_type": "markdown",
1475
+
"metadata": {},
1476
+
"source": [
1477
+
"By default, `Keithley3706A.get_forbidden_channels()` will query the instrument, but if you'd like to query the forbidden channels cache instead, you can set the argument `fetch_from_cache` to True.\n",
"We can clear the forbidden list when we desire to do so."
1577
+
"We can clear the forbidden list when we desire to do so. If using the forbidden channels cache, calling `Keithley3706A.clear_forbidden_channels()` will update the cache with the forbidden channels on the instrument (via `Keithley3706A.get_forbidden_channels(\"allslots\")`)."
0 commit comments