|
74 | 74 | "metadata": { |
75 | 75 | "metadata": {} |
76 | 76 | }, |
77 | | - "outputs": [ |
78 | | - { |
79 | | - "data": { |
80 | | - "text/plain": [ |
81 | | - "'Stanford_Research_Systems,SR830,s/n86813,ver1.07 \\n'" |
82 | | - ] |
83 | | - }, |
84 | | - "execution_count": 3, |
85 | | - "metadata": {}, |
86 | | - "output_type": "execute_result" |
87 | | - } |
88 | | - ], |
89 | | - "source": [ |
90 | | - "name" |
91 | | - ] |
92 | | - }, |
93 | | - { |
94 | | - "cell_type": "code", |
95 | | - "execution_count": 4, |
96 | | - "metadata": { |
97 | | - "metadata": {} |
98 | | - }, |
99 | 77 | "outputs": [ |
100 | 78 | { |
101 | 79 | "name": "stdout", |
102 | 80 | "output_type": "stream", |
103 | 81 | "text": [ |
104 | 82 | "Blacklisted settings that will not be tested or changed are: \n", |
105 | | - "[('_amplitude', 0.496), ('_input_configuration', 'A-B'), ('_time_constant', 30)]\n", |
106 | | - "\n", |
107 | | - "Beginning tests for: Stanford830 version 1.0.1\n", |
| 83 | + "[('_amplitude', 0.028),\n", |
| 84 | + " ('_input_configuration', 'A-B'),\n", |
| 85 | + " ('_sensitivity', 0.005),\n", |
| 86 | + " ('_time_constant', 1)]\n", |
108 | 87 | "\n", |
109 | | - "7 range properties found and tested out of 26 total settings found.\n", |
110 | | - "0 values properties found and tested out of 26 total settings found.\n", |
111 | | - "12 indexed values properties found and tested out of 26 total settings found.\n", |
112 | | - "2 dict values properties found and tested out of 26 total settings found.\n", |
113 | | - "3 blacklisted settings not testing (likely due to interdependencies not suitable for automated testing)\n", |
114 | | - "21 properties tested out of 26 total settings.\n", |
115 | | - "\n", |
116 | | - "Restored settings are different for the following: {('id', 'Stanford_Research_Systems,SR830,s/n86813,ver1.07 '), ('buffer_points', 16383)}\n", |
117 | | - "\n", |
118 | | - "\n", |
119 | | - "\u001b[92m Property implementation tests passed, instrument: Stanford830 looks ready to go. \u001b[0m\n", |
120 | | - "Checking driver doc string.\n", |
121 | | - "\u001b[92m Docstring tests passed and looking good. \u001b[0m\n", |
122 | | - "The new test log for this driver is: Passed with stanford830 version v1.0.1 tested on pyscan version v0.8.0 at 2024-10-01 10:01:28\n", |
123 | | - "\u001b[1;32m Stanford830 test results logged. \u001b[0m\n" |
| 88 | + "Beginning tests for: Stanford830 version 1.0.2\n", |
| 89 | + "_id_settings\n", |
| 90 | + "_phase_settings\n", |
| 91 | + "_reference_source_settings\n", |
| 92 | + "_frequency_settings\n", |
| 93 | + "_reference_slope_settings\n", |
| 94 | + "_harmonic_settings\n", |
| 95 | + "_input_ground_settings\n", |
| 96 | + "_input_coupling_settings\n" |
124 | 97 | ] |
125 | 98 | } |
126 | 99 | ], |
127 | 100 | "source": [ |
128 | 101 | "srs830 = ps.Stanford830(res)\n", |
129 | | - "\n", |
130 | 102 | "test_driver(srs830, verbose=False)" |
131 | 103 | ] |
132 | 104 | }, |
133 | 105 | { |
134 | 106 | "cell_type": "code", |
135 | | - "execution_count": 5, |
| 107 | + "execution_count": null, |
136 | 108 | "metadata": { |
137 | 109 | "metadata": {} |
138 | 110 | }, |
|
188 | 160 | }, |
189 | 161 | { |
190 | 162 | "cell_type": "code", |
191 | | - "execution_count": 6, |
| 163 | + "execution_count": null, |
192 | 164 | "metadata": { |
193 | 165 | "metadata": {} |
194 | 166 | }, |
|
214 | 186 | }, |
215 | 187 | { |
216 | 188 | "cell_type": "code", |
217 | | - "execution_count": 7, |
| 189 | + "execution_count": null, |
218 | 190 | "metadata": {}, |
219 | 191 | "outputs": [ |
220 | 192 | { |
221 | 193 | "name": "stdout", |
222 | 194 | "output_type": "stream", |
223 | 195 | "text": [ |
224 | | - "-1.09223e-07 -1.09223e-07\n", |
225 | | - "1.0922e-07 1.0922e-07\n", |
226 | | - "1.0922e-07 1.0922e-07\n" |
| 196 | + "-8.94074e-05 -4.76841e-07\n", |
| 197 | + "0.000385048 2.3842e-07\n", |
| 198 | + "-0.00506476 -9.53682e-07\n" |
227 | 199 | ] |
228 | 200 | } |
229 | 201 | ], |
|
254 | 226 | "\n", |
255 | 227 | "\n", |
256 | 228 | "srs830.set_channel_offset_expand(1, 0, 1)\n", |
257 | | - "srs830.set_display(1, 'x', 'none')\n" |
| 229 | + "srs830.set_display(1, 'x', 'none')\n", |
| 230 | + "\n", |
| 231 | + "srs830.set_channel_offset_expand(2, 0, 1)\n", |
| 232 | + "srs830.set_display(2, 'y', 'none')\n" |
258 | 233 | ] |
259 | 234 | }, |
260 | 235 | { |
261 | 236 | "cell_type": "code", |
262 | | - "execution_count": 8, |
| 237 | + "execution_count": null, |
263 | 238 | "metadata": {}, |
264 | 239 | "outputs": [ |
265 | 240 | { |
266 | 241 | "name": "stdout", |
267 | 242 | "output_type": "stream", |
268 | 243 | "text": [ |
269 | | - "0.002\n", |
270 | | - "0.00233333\n", |
271 | | - "0.003\n", |
272 | | - "0.00266667\n" |
| 244 | + "0.000666667\n", |
| 245 | + "-0.000666667\n", |
| 246 | + "0.00566667\n", |
| 247 | + "0.000666667\n" |
273 | 248 | ] |
274 | 249 | } |
275 | 250 | ], |
|
284 | 259 | }, |
285 | 260 | { |
286 | 261 | "cell_type": "code", |
287 | | - "execution_count": 9, |
| 262 | + "execution_count": null, |
288 | 263 | "metadata": {}, |
289 | 264 | "outputs": [ |
290 | 265 | { |
291 | 266 | "name": "stdout", |
292 | 267 | "output_type": "stream", |
293 | 268 | "text": [ |
294 | | - "-1.09223e-07\n", |
295 | | - "1.0922e-07\n", |
296 | | - "1.0922e-07\n", |
297 | | - "7734.592992720247\n" |
| 269 | + "-8.98843e-05\n", |
| 270 | + "0.000384809\n", |
| 271 | + "-7.15259e-07\n", |
| 272 | + "5908.116590643592\n" |
298 | 273 | ] |
299 | 274 | } |
300 | 275 | ], |
|
309 | 284 | }, |
310 | 285 | { |
311 | 286 | "cell_type": "code", |
312 | | - "execution_count": 10, |
| 287 | + "execution_count": null, |
313 | 288 | "metadata": {}, |
314 | 289 | "outputs": [ |
315 | 290 | { |
316 | 291 | "name": "stdout", |
317 | 292 | "output_type": "stream", |
318 | 293 | "text": [ |
319 | | - "-1.09223e-07\n", |
320 | | - "1.0922e-07\n" |
| 294 | + "-8.98843e-05\n", |
| 295 | + "0.000384809\n" |
321 | 296 | ] |
322 | 297 | } |
323 | 298 | ], |
|
330 | 305 | }, |
331 | 306 | { |
332 | 307 | "cell_type": "code", |
333 | | - "execution_count": 11, |
| 308 | + "execution_count": null, |
334 | 309 | "metadata": {}, |
335 | 310 | "outputs": [ |
336 | 311 | { |
337 | 312 | "name": "stdout", |
338 | 313 | "output_type": "stream", |
339 | 314 | "text": [ |
340 | | - "[-1.09223e-07, 1.0922e-07]\n", |
341 | | - "[-1.09223e-07, 1.0922e-07]\n", |
342 | | - "[-1.09223e-07, 7733.217892850435]\n", |
343 | | - "[-1.09223e-07, 0.0]\n", |
344 | | - "[-1.09223e-07, 0.001]\n", |
345 | | - "[-1.09223e-07, 0.00166667]\n", |
346 | | - "[-1.09223e-07, 0.004]\n", |
347 | | - "[-1.09223e-07, 1000.0]\n", |
348 | | - "[-1.09223e-07, -1.09223e-07]\n", |
349 | | - "[-1.09223e-07, 1.0922e-07]\n" |
| 315 | + "[-8.98843e-05, 0.000385048]\n", |
| 316 | + "[-8.98843e-05, -9.53682e-07]\n", |
| 317 | + "[-8.98843e-05, 5909.491690513403]\n", |
| 318 | + "[-8.98843e-05, 0.000666667]\n", |
| 319 | + "[-8.98843e-05, -0.000666667]\n", |
| 320 | + "[-8.98843e-05, 0.00166667]\n", |
| 321 | + "[-8.96459e-05, -0.01]\n", |
| 322 | + "[-8.98843e-05, 1000.0]\n", |
| 323 | + "[-8.98843e-05, -8.98843e-05]\n", |
| 324 | + "[-8.98843e-05, 0.000384809]\n" |
350 | 325 | ] |
351 | 326 | } |
352 | 327 | ], |
|
367 | 342 | }, |
368 | 343 | { |
369 | 344 | "cell_type": "code", |
370 | | - "execution_count": 13, |
| 345 | + "execution_count": null, |
371 | 346 | "metadata": {}, |
372 | 347 | "outputs": [ |
373 | 348 | { |
|
388 | 363 | }, |
389 | 364 | { |
390 | 365 | "cell_type": "code", |
391 | | - "execution_count": 15, |
| 366 | + "execution_count": null, |
392 | 367 | "metadata": {}, |
393 | | - "outputs": [ |
394 | | - { |
395 | | - "data": { |
396 | | - "text/plain": [ |
397 | | - "159" |
398 | | - ] |
399 | | - }, |
400 | | - "execution_count": 15, |
401 | | - "metadata": {}, |
402 | | - "output_type": "execute_result" |
403 | | - } |
404 | | - ], |
| 368 | + "outputs": [], |
405 | 369 | "source": [ |
406 | 370 | "# test buffer_points\n", |
407 | 371 | "\n", |
|
412 | 376 | "# srs830.start()\n", |
413 | 377 | "srs830.trigger()\n", |
414 | 378 | "sleep(20)\n", |
415 | | - "srs830.buffer_points\n" |
| 379 | + "srs830.buffer_points\n", |
| 380 | + "srs830.pause()\n" |
416 | 381 | ] |
417 | 382 | } |
418 | 383 | ], |
|
432 | 397 | "name": "python", |
433 | 398 | "nbconvert_exporter": "python", |
434 | 399 | "pygments_lexer": "ipython3", |
435 | | - "version": "3.12.2" |
| 400 | + "version": "3.12.4" |
436 | 401 | } |
437 | 402 | }, |
438 | 403 | "nbformat": 4, |
|
0 commit comments