{"id":34070323,"url":"https://github.com/tspspi/pyfy6900","last_synced_at":"2025-12-14T07:05:56.886Z","repository":{"id":65145724,"uuid":"583436279","full_name":"tspspi/pyfy6900","owner":"tspspi","description":"(Unofficial) control library for the FY6900 function generator","archived":false,"fork":false,"pushed_at":"2024-11-26T12:21:48.000Z","size":209,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-04T01:52:06.397Z","etag":null,"topics":["functiongenerator","fy6900"],"latest_commit_sha":null,"homepage":"https://www.tspi.at/2022/12/30/fy6900withoutch340.html","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tspspi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2022-12-29T19:21:23.000Z","updated_at":"2025-09-18T21:41:58.000Z","dependencies_parsed_at":"2024-11-30T15:18:20.662Z","dependency_job_id":null,"html_url":"https://github.com/tspspi/pyfy6900","commit_stats":{"total_commits":16,"total_committers":1,"mean_commits":16.0,"dds":0.0,"last_synced_commit":"ef7963b7e47301dc219a91295be7e6072a1ec32a"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/tspspi/pyfy6900","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tspspi%2Fpyfy6900","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tspspi%2Fpyfy6900/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tspspi%2Fpyfy6900/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tspspi%2Fpyfy6900/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tspspi","download_url":"https://codeload.github.com/tspspi/pyfy6900/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tspspi%2Fpyfy6900/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27720865,"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-14T02:00:11.348Z","response_time":56,"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":["functiongenerator","fy6900"],"created_at":"2025-12-14T07:05:56.206Z","updated_at":"2025-12-14T07:05:56.878Z","avatar_url":"https://github.com/tspspi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# (Unofficial) control library for the FY6900 function generator\n\n![FY6900 front panel](https://raw.githubusercontent.com/tspspi/pyfy6900/master/doc/fy6900frontside.jpg)\n\nThis is a small and simple control library for the FY6900 function generator. It's\na implementation for the [pylabdevs](https://github.com/tspspi/pylabdevs) ```FunctionGenerator```\nclass.\n\n# Installation\n\n```\npip install pyfy6900-tspspi\n```\n\n# Example usage\n\n## Simple setting of predefined waveforms and parameters\n\n```\nimport numpy as np\n\nfrom pyfy6900 import fy6900\nfrom labdevices.functiongenerator import FunctionGeneratorWaveform\nfrom time import sleep\n\nwith fy6900.FY6900Serial(\"COM4\", debug = True) as fg:\n\tprint(f\"Device identifies as {fg.identify()}\")\n\n\tfg.set_channel_enabled(0, False)\n\tfg.set_channel_enabled(1, False)\n\n\tfg.set_channel_waveform(0, FunctionGeneratorWaveform.SINE)\n\tfg.set_channel_frequency(0, 1e3)\n\tfg.set_channel_offset(0, 2.5)\n\tfg.set_channel_amplitude(0, 5)\n\tfg.set_channel_enabled(0, True)\n\n\tfor frq in np.arange(1, 60e6, 100):\n\t\tfg.set_channel_frequency(0, frq)\n\t\tprint(f\"Set new frequency {fg.get_channel_frequency(0)}\")\n\n\tfg.set_channel_enabled(0, False)\n```\n\n## Uploading arbitrary waveform generated using numpy\n\n```\nimport numpy as np\nimport matplotlib.pyplot as plt\n\nfrom pyfy6900 import fy6900\n\nfrom time import sleep\n\nwith fy6900.FY6900Serial(\"COM3\", debug = \"True\") as fg:\n\tfg.identify()\n\n\tt = np.linspace(0, 2 * np.pi, 8192)\n\twv = (np.sin(t) + np.sin(2*t) + np.sin(3*t))\n\n\t# Display before upload\n\tplt.plot(t, wv)\n\tplt.show()\n\n\t# Uploading\n\tfg.upload_waveform(61, wv, normalize = True)\n\n\t# Selecting channel waveform\n\tfg.set_channel_waveform(0, arbitrary = 61)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftspspi%2Fpyfy6900","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftspspi%2Fpyfy6900","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftspspi%2Fpyfy6900/lists"}