| 1 |
{ |
| 2 |
"cells": [ |
| 3 |
{ |
| 4 |
"cell_type": "markdown", |
| 5 |
"metadata": {}, |
| 6 |
"source": [ |
| 7 |
"# VNA control" |
| 8 |
] |
| 9 |
}, |
| 10 |
{ |
| 11 |
"cell_type": "markdown", |
| 12 |
"metadata": {}, |
| 13 |
"source": [ |
| 14 |
"**scikit-rf** has a few virtual instrument classes, located in the `skrf.vi` module. This page demonstrates the basic control of a PNA" |
| 15 |
] |
| 16 |
}, |
| 17 |
{ |
| 18 |
"cell_type": "markdown", |
| 19 |
"metadata": {}, |
| 20 |
"source": [ |
| 21 |
"## Connecting and querying instrument ID" |
| 22 |
] |
| 23 |
}, |
| 24 |
{ |
| 25 |
"cell_type": "markdown", |
| 26 |
"metadata": {}, |
| 27 |
"source": [ |
| 28 |
" from skrf.vi.vna import keysight\n", |
| 29 |
"\n", |
| 30 |
" instr = keysight.PNA(\"TCPIP0::192.168.0.2::INSTR\")\n", |
| 31 |
" instr.id" |
| 32 |
] |
| 33 |
}, |
| 34 |
{ |
| 35 |
"cell_type": "markdown", |
| 36 |
"metadata": {}, |
| 37 |
"source": [ |
| 38 |
"## Retrieving S-parameters as a scikit-rf Network" |
| 39 |
] |
| 40 |
}, |
| 41 |
{ |
| 42 |
"cell_type": "markdown", |
| 43 |
"metadata": {}, |
| 44 |
"source": [ |
| 45 |
" ntwk = instr.get_snp_network()" |
| 46 |
] |
| 47 |
}, |
| 48 |
{ |
| 49 |
"cell_type": "code", |
| 50 |
"execution_count": null, |
| 51 |
"metadata": {}, |
| 52 |
"outputs": [], |
| 53 |
"source": [] |
| 54 |
} |
| 55 |
], |
| 56 |
"metadata": { |
| 57 |
"anaconda-cloud": {}, |
| 58 |
"kernelspec": { |
| 59 |
"display_name": "Python 3 (ipykernel)", |
| 60 |
"language": "python", |
| 61 |
"name": "python3" |
| 62 |
}, |
| 63 |
"language_info": { |
| 64 |
"codemirror_mode": { |
| 65 |
"name": "ipython", |
| 66 |
"version": 3 |
| 67 |
}, |
| 68 |
"file_extension": ".py", |
| 69 |
"mimetype": "text/x-python", |
| 70 |
"name": "python", |
| 71 |
"nbconvert_exporter": "python", |
| 72 |
"pygments_lexer": "ipython3", |
| 73 |
"version": "3.10.12" |
| 74 |
} |
| 75 |
}, |
| 76 |
"nbformat": 4, |
| 77 |
"nbformat_minor": 4 |
| 78 |
} |