{"id":43978945,"url":"https://github.com/gotmc/prologix","last_synced_at":"2026-02-07T08:35:17.687Z","repository":{"id":57506742,"uuid":"232230870","full_name":"gotmc/prologix","owner":"gotmc","description":"Go package for the Prologix GPIB controllers","archived":false,"fork":false,"pushed_at":"2024-08-02T19:34:29.000Z","size":80,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-09-22T09:17:49.569Z","etag":null,"topics":["gpib","gpib-controllers","gpib-device","gpib-ethernet","prologix-controller","prologix-web","scpi","scpi-commands","scpi-instruments","scpi-lab-instruments","test-automation","test-equipment","usbtmc"],"latest_commit_sha":null,"homepage":"","language":"Go","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/gotmc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2020-01-07T03:00:12.000Z","updated_at":"2024-08-02T19:34:33.000Z","dependencies_parsed_at":"2024-04-11T20:25:20.537Z","dependency_job_id":"555d74bb-abfa-4559-9cbe-e00762541a9a","html_url":"https://github.com/gotmc/prologix","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/gotmc/prologix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gotmc%2Fprologix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gotmc%2Fprologix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gotmc%2Fprologix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gotmc%2Fprologix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gotmc","download_url":"https://codeload.github.com/gotmc/prologix/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gotmc%2Fprologix/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29190294,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T07:37:03.739Z","status":"ssl_error","status_checked_at":"2026-02-07T07:37:03.029Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["gpib","gpib-controllers","gpib-device","gpib-ethernet","prologix-controller","prologix-web","scpi","scpi-commands","scpi-instruments","scpi-lab-instruments","test-automation","test-equipment","usbtmc"],"created_at":"2026-02-07T08:35:17.618Z","updated_at":"2026-02-07T08:35:17.667Z","avatar_url":"https://github.com/gotmc.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# prologix\n\nGo package to communicate with either a [Prologix][prologix-web] GPIB-ETHERNET\n(GPIB-LAN) controller or a GPIB-USB (HPIB-USB) controller.\n\n[![GoDoc][godoc badge]][godoc link]\n[![Go Report Card][report badge]][report card]\n[![License Badge][license badge]][LICENSE.txt]\n\n\n## Overview\n\n[Prologix][prologix-web] offers two GPIB controllers that enable a computer to\ncommunicate over GPIB using either an Ethernet or USB interface. Both the\n[GPIB-ETHERNET controller][gpib-ethernet] and the [GPIB-USB\ncontroller][gpib-usb] can operate either in controller mode or device mode. In\ncontroller mode, the GPIB-ETHERNET or GPIB-USB is the Controller-In-Charge\n(CIC) on the GPIB bus. In device mode, the GPIB-ETHERNET or GPIB-USB acts a\nGPIB device that is either a talker or a listener.\n\nFor more information, please see the User Manual and FAQ for either the\n[GPIB-ETHERNET controller][gpib-ethernet] or the [GPIB-USB\ncontroller][gpib-usb].\n\n\n## Status\n\n- **GPIB-USB Direct Driver:** Not implemented\n- **GPIB Controller Mode:** Implemented. Provide an io.ReadWriter from a serial\n  port to use the Prologix GPIB-USB Controller as a Virtual COM Port (VCP) or\n  provide an io.ReadWriter from a network connection to use the Proglogix\n  GPIB-ETHERNET Controller.\n- **GPIB Device Mode:** Not implemented\n\n\n## IVI Support\n\nThe [prologix][] package can be used in conjunction with the [ivi][] package,\nwhich is a Go-based implementation of the Interchangeable Virtual Instrument\n(IVI) standard. The [IVI Specifications][ivi-specs] developed by the IVI\nFoundation provide standardized APIs for programming test instruments.\n\nThe main advantage of using the [ivi][] package is not having to learn the\n[SCPI][] commands for each individual piece of test equipment. For instance,\nboth the Agilent 33220A function generator and the Stanford Research Systems\nDS345 function generator can be programmed using one standard API with IVI.\n\n\n## Methods for Communication\n\nThe Prologix GPIB controller strips all unescaped LF (`\\n`, ASCII 10), CR\n(`\\r`, ASCII 13), ESC (ASCII 27), and `+` (ASCII 43) characters. Therefore, to\nsend binary data including one of those characters, they must be escaped.\n\n- `Read(p []byte) (n int, err error)` — Use for reading binary or text data\n  from the instrument or Prologix controller.\n- `Write(p []byte) (n int, err error)` — Use to send binary data to the\n  instrument. The CR, LF, ESC, and `+` characters will be automatically\n  escaped.\n- `WriteString(s string) (n int, err error` — Use to send ASCII data to the\n  instrument or commands to the Prologix controller.\n- `Command(format string, a ...interface{}) error` — Use to send a SCPI command\n  to the instrument that has no response. A newline character will\n  automatically be appended to the SCPI command sent to the instrument.\n- `Query(cmd string) (string, error)` — Use to send a SCPI query command to the\n  instrument and receive a string response. A newline character will\n  automatically be appended to the SCPI command sent to the instrument. If the\n  Prologix controller is not in auto read-after-write mode, then a `++read eos`\n  will also be sent before reading.\n\n## GPIB-USB\n\nThe GPIB-USB controller communicates with a computer either directly using the\nD2XX driver or as a Virtual COM Port (VCP) using the FTDI FT245R driver.\n\n### GPIB-USB VCP Driver Installation\n\nThe appropriate VCP driver for your operating system can be downloaded from the\n[FTDI VCP Drivers webpage][ftdi-vcp-drivers]. Alternatively, on macOS you can use\n[Homebrew][] to install the VCP driver as follows:\n\n```bash\n$ brew cask install ftdi-vcp-driver\n```\n\n### GPIB-USB D2XX Direct Driver Installation\n\nThe appropriate D2XX Direct Driver for your operating system can be downloaded\nfrom the [FTDI D2XX Direct Drivers webpage][ftdi-d2xx-drivers]. Alternatively,\non macOS you can use [Homebrew][] to install the D2XX direct driver as follows:\n\n```bash\n$ brew install libftdi\n```\n\n\n## Contributing\n\nTo contribute, please fork the repository, create a feature branch, and then\nsubmit a [pull request][].\n\n\n## License\n\n[prologix][prologix] is released under the MIT license. Please see the\n[LICENSE.txt][] file for more information.\n\n\n[ftdi-d2xx-drivers]: https://www.ftdichip.com/Drivers/D2XX.htm\n[ftdi-vcp-drivers]: https://www.ftdichip.com/Drivers/VCP.htm\n[godoc badge]: https://godoc.org/github.com/gotmc/prologix?status.svg\n[godoc link]: https://godoc.org/github.com/gotmc/prologix\n[gpib-ethernet]: http://prologix.biz/gpib-ethernet-controller.html\n[gpib-usb]: http://prologix.biz/gpib-usb-controller.html\n[homebrew]: https://brew.sh/\n[ivi]: https://github.com/gotmc/ivi\n[ivi-specs]: http://www.ivifoundation.org/\n[LICENSE.txt]: https://github.com/gotmc/prologix/blob/master/LICENSE.txt\n[license badge]: https://img.shields.io/badge/license-MIT-blue.svg\n[prologix]: https://github.com/gotmc/prologix\n[prologix-web]: http://prologix.biz/\n[pull request]: https://help.github.com/articles/using-pull-requests\n[report badge]: https://goreportcard.com/badge/github.com/gotmc/prologix\n[report card]: https://goreportcard.com/report/github.com/gotmc/prologix\n[scpi]: http://www.ivifoundation.org/scpi/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgotmc%2Fprologix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgotmc%2Fprologix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgotmc%2Fprologix/lists"}