{"id":21987014,"url":"https://github.com/marcodeltutto/analogdiscoverypro","last_synced_at":"2025-06-29T03:35:22.275Z","repository":{"id":184522726,"uuid":"671887744","full_name":"marcodeltutto/AnalogDiscoveryPro","owner":"marcodeltutto","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-28T20:04:09.000Z","size":120,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T02:28:17.239Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/marcodeltutto.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}},"created_at":"2023-07-28T11:23:41.000Z","updated_at":"2024-06-28T20:04:12.000Z","dependencies_parsed_at":"2024-11-29T18:38:43.885Z","dependency_job_id":null,"html_url":"https://github.com/marcodeltutto/AnalogDiscoveryPro","commit_stats":null,"previous_names":["marcodeltutto/analogdiscoverypro"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/marcodeltutto/AnalogDiscoveryPro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcodeltutto%2FAnalogDiscoveryPro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcodeltutto%2FAnalogDiscoveryPro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcodeltutto%2FAnalogDiscoveryPro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcodeltutto%2FAnalogDiscoveryPro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcodeltutto","download_url":"https://codeload.github.com/marcodeltutto/AnalogDiscoveryPro/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcodeltutto%2FAnalogDiscoveryPro/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262528357,"owners_count":23324535,"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","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-29T18:26:39.695Z","updated_at":"2025-06-29T03:35:22.211Z","avatar_url":"https://github.com/marcodeltutto.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## API for Digilent Analog Discover Pro\n\n- `main.py` is the main API\n- `adpro.py` is the digitizer class\n- `WF_SDK` contains Digilent's helper functions to interact with the digitizer\n\n### Instructions\n\n- From the PrM server, log in to the digitizer via `ssh -L 8000:localhost:8000 digilent@10.226.35.155`\n- Clone this repo, if not done already\n- Enter and run the API: `sudo /home/digilent/.local/bin/uvicorn main:app --reload`\n\nOn the PrM server, you can control the digitizer via:\n- `localhost:8000/lamp_control/on`: turns the flash lamp on\n- `localhost:8000/lamp_control/off`: turns the flash lamp off\n- `localhost:8000/lamp_frequency/10`: sets the lamp frequency to 10 Hz\n- `localhost:8000/digitizer/start_capture`: starts the data acquisition\n- `localhost:8000/digitizer/check_capture`: checks if the acquisition if over\n- `localhost:8000/digitizer/get_data`: returns the collected data\n- For more commands, see `main.py`. \n\n### Run Manually\n\n- From the PrM server, log in to the digitizer via `ssh -L 8000:localhost:8000 digilent@10.226.35.155`\n- Clone this repo, if not done already\n- Run `python`, then:\n\n```python\nfrom adpro import ADPro\n\n# Instantiate the digitizer class\ndigitizer = ADPro()\n\n# Turn on the flash lamp (uses the waveform generator)\ndigitizer.lamp_on()\n\n# Start a digitizer data acquisitio\ndigitizer.start_capture()\n\n# Check for the acquisition to be completed\nwhile not digitizer.check_capture():\n    time.sleep(1)\n\n# Turn off the flash lamp\ndigitizer.lamp_off()\n\n# Retrieve the digitizer data\ndata = digitizer.get_data()\nprint(data)\n\n# Close the digitizer\ndigitizer.close()\n```\n\nCheck: [Getting Started with the WaveForms SDK](https://digilent.com/reference/test-and-measurement/guides/waveforms-sdk-getting-started) for more details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcodeltutto%2Fanalogdiscoverypro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcodeltutto%2Fanalogdiscoverypro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcodeltutto%2Fanalogdiscoverypro/lists"}