{"id":50270779,"url":"https://github.com/borud/mcc-usb-1808","last_synced_at":"2026-05-27T17:30:40.070Z","repository":{"id":356957104,"uuid":"1234551138","full_name":"borud/mcc-usb-1808","owner":"borud","description":"Go library for using the MCC USB-1808X High Speed, High Precision Simultaneous USB DAQ Deviec","archived":false,"fork":false,"pushed_at":"2026-05-17T16:43:36.000Z","size":1745,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-17T18:48:49.913Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/borud.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-10T10:35:38.000Z","updated_at":"2026-05-17T16:41:31.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/borud/mcc-usb-1808","commit_stats":null,"previous_names":["borud/mcc-usb-1808"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/borud/mcc-usb-1808","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borud%2Fmcc-usb-1808","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borud%2Fmcc-usb-1808/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borud%2Fmcc-usb-1808/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borud%2Fmcc-usb-1808/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/borud","download_url":"https://codeload.github.com/borud/mcc-usb-1808/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borud%2Fmcc-usb-1808/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33577630,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-27T02:00:06.184Z","response_time":53,"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":[],"created_at":"2026-05-27T17:30:39.763Z","updated_at":"2026-05-27T17:30:40.065Z","avatar_url":"https://github.com/borud.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mcc-usb-1808\n\n![Go mascot](docs/mascot.svg)\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/borud/mcc-usb-1808/v4.svg)](https://pkg.go.dev/github.com/borud/mcc-usb-1808/v4)\n\nThis library helps you write applications that interface with the Measurement [Computing Corporation USB 1808 and 1808X](https://digilent.com/shop/mcc-usb-1808x-high-speed-high-precision-simultaneous-usb-daq-device/) DAQs.\n\n## Prerequisites\n\n- Go 1.24+\n- libusb 1.0 (`brew install libusb` on macOS, `apt install libusb-1.0-0-dev` on Debian/Ubuntu)\n\n## Installation\n\n```sh\ngo get github.com/borud/mcc-usb-1808/v4\n```\n\n## Quick Start\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n    \"log\"\n\n    \"github.com/borud/mcc-usb-1808/v4/device\"\n)\n\nfunc main() {\n    dev, err := device.Open()\n    if err != nil {\n        log.Fatal(err)\n    }\n    defer dev.Close()\n\n    if err := dev.Init(); err != nil {\n        log.Fatal(err)\n    }\n\n    // Scan 4 analog channels at 10 kHz.\n    cfg := device.ScanConfig{\n        Channels: []device.ChannelConfig{\n            {Index: 0, Type: device.ChannelTypeAnalog, Range: device.BP10V, Mode: device.Differential},\n            {Index: 1, Type: device.ChannelTypeAnalog, Range: device.BP10V, Mode: device.Differential},\n            {Index: 2, Type: device.ChannelTypeAnalog, Range: device.BP10V, Mode: device.Differential},\n            {Index: 3, Type: device.ChannelTypeAnalog, Range: device.BP10V, Mode: device.Differential},\n        },\n        Rate: 10000,\n        Count: 100,\n    }\n\n    h, err := dev.CreateScan(cfg)\n    if err != nil {\n        log.Fatal(err)\n    }\n    if err := h.Start(); err != nil {\n        log.Fatal(err)\n    }\n    for chunk := range h.Chunks() {\n        fmt.Printf(\"received %d bytes (%d frames starting at %d)\\n\",\n            len(chunk.Data), chunk.FrameCount, chunk.FrameStart)\n    }\n    h.Stop()\n}\n```\n\n## CLI Tool\n\nA command-line tool is included for quick testing. Install it with:\n\n```sh\ngo install github.com/borud/mcc-usb-1808/v4/cmd/daq@latest\n```\n\nExample usage:\n\n```sh\ndaq info                                             # Device info\ndaq blink --count 5                                  # Blink LED\ndaq capture --channels analog --rate 10k             # Capture all 8 analog channels\ndaq capture --channels ain0-ain3:bp10v:diff,dio      # Mixed channel spec\ndaq bench --channels analog --rate 200k --duration 10 # Benchmark throughput\n```\n\n## Documentation\n\nSee the [docs/](docs/README.md) directory for the full manual:\n\n- [Getting Started](docs/getting-started.md)\n- [Analog Input](docs/analog-input.md)\n- [Calibration](docs/calibration.md)\n- [Capture](docs/capture.md)\n- [CLI Tool](docs/cli.md)\n- [High-Rate Capture](docs/high-rate-capture.md)\n- [Errors](docs/errors.md)\n\n## If you use this\n\nIf you use this it would be really nice if you dropped me a line to let me know, or sent a PR so I can include a link to your application below.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborud%2Fmcc-usb-1808","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fborud%2Fmcc-usb-1808","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborud%2Fmcc-usb-1808/lists"}