{"id":34924809,"url":"https://github.com/nelsond/prologix-gpib-ethernet","last_synced_at":"2025-12-26T14:21:49.579Z","repository":{"id":54132745,"uuid":"66084710","full_name":"nelsond/prologix-gpib-ethernet","owner":"nelsond","description":"Simple wrapper for the Prologix GPIB-to-Ethernet adapter.","archived":false,"fork":false,"pushed_at":"2021-03-08T17:12:13.000Z","size":34,"stargazers_count":24,"open_issues_count":2,"forks_count":10,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-03-19T20:20:48.474Z","etag":null,"topics":["device-wrapper","ethernet-adapter","lab","prologix-gpib","python-library"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nelsond.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-08-19T13:35:33.000Z","updated_at":"2024-03-11T22:09:59.000Z","dependencies_parsed_at":"2022-08-13T07:10:41.755Z","dependency_job_id":null,"html_url":"https://github.com/nelsond/prologix-gpib-ethernet","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/nelsond/prologix-gpib-ethernet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nelsond%2Fprologix-gpib-ethernet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nelsond%2Fprologix-gpib-ethernet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nelsond%2Fprologix-gpib-ethernet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nelsond%2Fprologix-gpib-ethernet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nelsond","download_url":"https://codeload.github.com/nelsond/prologix-gpib-ethernet/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nelsond%2Fprologix-gpib-ethernet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28055989,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-26T02:00:06.189Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["device-wrapper","ethernet-adapter","lab","prologix-gpib","python-library"],"created_at":"2025-12-26T14:21:39.431Z","updated_at":"2025-12-26T14:21:49.569Z","avatar_url":"https://github.com/nelsond.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Prologix GPIB-to-Ethernet Python wrapper [![Build Status](https://travis-ci.org/nelsond/prologix-gpib-ethernet.svg?branch=master)](https://travis-ci.org/nelsond/prologix-gpib-ethernet) [![Build status](https://ci.appveyor.com/api/projects/status/5xg4cwnyh5y0sk2e/branch/master?svg=true)](https://ci.appveyor.com/project/nelsond/prologix-gpib-ethernet/branch/master)\n\nSimple wrapper for the Prologix GPIB-to-Ethernet adapter. Also includes\na simple device wrapper class.\n\n**Currently only supports the `CONTROLLER` mode of the Prologix\nGPIB-to-Ethernet adapter.**\n\n## Requirements\n\nMake sure you can reach/ping the adapter before you start using this\nlibrary.\n\n## Install\n\nInstall with pip\n\n```shell\npip install git+git://github.com/nelsond/prologix-gpib-ethernet.git\n```\n\n## Example usage\n\n### Using the adapter directly\n\n```python\nfrom plx_gpib_ethernet import PrologixGPIBEthernet\n\ngpib = PrologixGPIBEthernet('192.168.1.14')\n\n# open connection to Prologix GPIB-to-Ethernet adapter\ngpib.connect()\n\n# select gpib device at address 10\ngpib.select(10)\n\n# send a query\ngpib.query('*IDN?')\n# =\u003e 'Stanford_Research_Systems,SR760,s/n41456,ver139\\n'\n\n# write without reading\ngpib.write('*RST')\n\n# close connection\ngpib.close()\n```\n\n### Using the device wrapper\n\nAlso see [`examples/`](examples/).\n\n```python\nfrom plx_gpib_ethernet import PrologixGPIBEthernetDevice\n\nclass ExampleDevice(PrologixGPIBEthernetDevice):\n  def start(self):\n    self.write('STRT')\n\n  def get_span(self):\n    return float( self.query('SPAN?') )\n\nmy_device = ExampleDevice(host='192.168.1.14', address=10)\n\n# open connection\nmy_device.connect()\n\n# run predefined commands\nmy_device.idn()\n# =\u003e 'Stanford_Research_Systems,SR760,s/n41456,ver139\\n'\nmy_device.reset()\n\n# run custom commands\nmy_device.start()\nmy_device.get_span() # =\u003e 0.191\n\n# close connection\nmydevice.close()\n```\n\n## Development\n\nInstall requirements for development environment\n\n```shell\n$ pip install -r requirements/dev.txt\n```\n\nRun tests\n\n```shell\n$ py.test tests/\n```\n\nGenerate coverage report\n\n```shell\n$ py.test --cov=plx_gpib_ethernet tests/\n```\n\n## License\n\nMIT License, see file `LICENSE`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnelsond%2Fprologix-gpib-ethernet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnelsond%2Fprologix-gpib-ethernet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnelsond%2Fprologix-gpib-ethernet/lists"}