{"id":21991468,"url":"https://github.com/terrabits/rohdeschwarz_s21_example","last_synced_at":"2026-04-30T13:31:45.735Z","repository":{"id":98389756,"uuid":"411406430","full_name":"Terrabits/rohdeschwarz_s21_example","owner":"Terrabits","description":"This is an example of how to use the VNA instrument driver from the `rohdeschwarz` Python package to configure a measurement for S21, calibrate with an automatic cal unit (optional) and capture all data.","archived":false,"fork":false,"pushed_at":"2024-11-08T01:32:44.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-03T10:41:56.080Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Terrabits.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-09-28T19:02:20.000Z","updated_at":"2024-11-08T01:32:48.000Z","dependencies_parsed_at":"2025-05-26T22:05:39.444Z","dependency_job_id":"bc325cfb-19d6-40cf-b801-4bc3ee9964dd","html_url":"https://github.com/Terrabits/rohdeschwarz_s21_example","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Terrabits/rohdeschwarz_s21_example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Terrabits%2Frohdeschwarz_s21_example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Terrabits%2Frohdeschwarz_s21_example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Terrabits%2Frohdeschwarz_s21_example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Terrabits%2Frohdeschwarz_s21_example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Terrabits","download_url":"https://codeload.github.com/Terrabits/rohdeschwarz_s21_example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Terrabits%2Frohdeschwarz_s21_example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32466333,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-29T20:09:29.449Z","updated_at":"2026-04-30T13:31:45.704Z","avatar_url":"https://github.com/Terrabits.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `rohdeschwarz` S21 Example\n\nThis is an example of how to use the VNA instrument driver from the  [rohdeschwarz](https://github.com/Terrabits/rohdeschwarz) Python package to configure a measurement for S21, calibrate with an automatic cal unit (optional) and capture all data.\n\n## Requirements\n\nThe general requirements for this project are:\n\n-   Python `2.7+` or `3.4+`\n-   `rohdeschwarz\u003e=1.16.1`\n\nThis example was tested with Python `3.12.4 x64` on Windows 10 with the exact python packages and versions listed in [requirements.txt.lock](./requirements.txt.lock).\n\n## Clone Repository\n\nAssuming `git` is installed, you can clone the repository locally by executing the following:\n\n```shell\ncd path/for/clone\ngit clone https://github.com/Terrabits/rohdeschwarz_s21_example.git\n```\n\n## Scripts\n\nThere are developer scripts for common actions in the [scripts/](./scripts) folder.\n\nFor Windows users, run the `.bat` version of the desired script.\n\nA bash version of each script is also provided for Bash users (e.g. macOS and Linux).\n\n## Install\n\nRun `scripts/install[.bat]` to install the required python packages.\n\n## Run\n\nThe entry point for execution is [`__main__.py`](./__main__.py).\n\n### Configure Instrument Address\n\nBefore `__main__.py` can be run, you must first edit `VNA_IP_ADDRESS` or `VNA_GPIB_ADDRESS` to match your current configuration:\n\n```python\nVNA_IP_ADDRESS   = 'localhost'\nVNA_GPIB_ADDRESS = 20  # requires PyVISA, NI VISA\n```\n\nAs noted in the comment, GPIB control uses `PyVISA`, which requires installation and use of `NI VISA`.\n`PyVISA` is already installed as a dependency of `rohdeschwarz`. Unfortunately, NI VISA will have to be installed separately.\n\nSee the [PyVISA Backend Installation](https://pyvisa.readthedocs.io/en/latest/introduction/getting.html#backend) instructions.\n\n### Execute\n\nTo execute, either run `scripts/start[.bat]` or execute the following from the command line:\n\n```shell\ncd path/to/rohdeschwarz_s21_example\npython .  # implies __main__.py\n```\n\n### Output\n\nYou should see the following files in the `data/` folder:\n\n-   diagram1.png\n-   markers.csv\n-   scpi.log\n-   trc1-complex.csv\n-   trc1-formatted.csv\n\nExamples of each file can be found along with [the latest \"release\"](https://github.com/Terrabits/rohdeschwarz_s21_example/releases/):\n\nThe output can be cleaned by running either `scripts/clean[.bat]`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterrabits%2Frohdeschwarz_s21_example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fterrabits%2Frohdeschwarz_s21_example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterrabits%2Frohdeschwarz_s21_example/lists"}