{ "info": { "author": "Enrique Morell", "author_email": "morell.enrique@outlook.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# agilent_visa_control\nA set of files aimed at facilitating the transfer of data from Agilent Spectrum Analizers through VISA Interface\n\n## Prerequisites:\n\nYou will need PyVisa (and PyVisa's dependencies too obviously).\n\n## Installation:\n\nNo need to install, just clone this repository to your working workspace folder and code inside of it.\n\nFor a good example on how to use the code check Agilent_save_trace.py\n\nFrequency.py is a helper class to help you deal with frequencies and its conversion. You can by using this class just sum or substract frequencies and the units will be taken care of by the script. You can then convert to which ever frequency unit you need. Check Frequency.py for examples on usage (after `` if __name__ == __main__: ``)\n\n## Usage of Agilent class:\n\nBefore using this class you will need to know the VISA identifier of the Agilent Spectrum Analyzer you'll want to use.\nThe identifier is usually found on the IO Librairies Suite of KeySight (https://www.keysight.com/en/pd-1985909/io-libraries-suite) (This suite is usually needed for communication with the Spectrum Analyzer) or in the instrument panel of your VISA package.\n\nIt is something like \n```python\nidentifier = \"GPIB0::8::INSTR\"\n```\nOnce you know your identifier you will need to create the Agilent class object:\n\n```python\nagilent = Agilent(identifier)\n```\nThen you need to open your connection:\n```python\nagilent.open()\n```\n\nThen you could set the mode of the Analyzer, for example you could choose the spectrum analyzer mode. As of today the code only supports setting this mode remotely. You could always set in some other mode using the Frontal Interface on the instrument and then carry on extracting the data with this library.\n\n```\nagilent.set_sa()\n```\nThen you create the frequencies at which you want to center and the span of the analyzer.\n```\ncenter_freq = Frequency(80.1, FreqUnit(FreqUnit.MHz))\nspan = Frequency(50, FreqUnit(FreqUnit.kHz))\n```\nAnd we set the x Axis:\n```\nagilent.set_x(center_freq, span)\n```\nWe set the Y axis now:\n```python\nagilent.set_y(3, 10) #in dBm (first argument is the reference Level and the second one is the scale in dBm per Div.\n```\nYou can also set markers:\n```\nagilent.set_marker(1, center_freq)\n```\nAnd in the end we extract the values:\n```python\nvalues = agilent.get_trace(1)\n#treat values\n```\nAnd in the end we close the connection.\n```\n#close connection once you are done with the agilent Spectrum Analyzer\nagilent.close()\n```\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/emorell96/agilent_visa_control", "keywords": "", "license": "GNU General Public License v3 (GPLv3)", "maintainer": "", "maintainer_email": "", "name": "agilent-visa-control", "package_url": "https://pypi.org/project/agilent-visa-control/", "platform": "", "project_url": "https://pypi.org/project/agilent-visa-control/", "project_urls": { "Homepage": "https://github.com/emorell96/agilent_visa_control" }, "release_url": "https://pypi.org/project/agilent-visa-control/0.0.2.1.2/", "requires_dist": [ "PyVISA (>=1.9)" ], "requires_python": "", "summary": "A small package aimed at helping with interfacing with Agilent spectrum analyzer (tested with ESA and EXA series)", "version": "0.0.2.1.2" }, "last_serial": 5156069, "releases": { "0.0.2.1.2": [ { "comment_text": "", "digests": { "md5": "d034912f1cf2f2ea054f586aa82f7402", "sha256": "1978f12eff53e7d7db2e34573167fe63873599e772cbc3357186004faa74ed49" }, "downloads": -1, "filename": "agilent_visa_control-0.0.2.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "d034912f1cf2f2ea054f586aa82f7402", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 30393, "upload_time": "2019-04-17T16:34:24", "url": "https://files.pythonhosted.org/packages/7f/52/0fcf2fad114807a394c7210c833dfdb715bf2ff6e7345f22897e0375dffa/agilent_visa_control-0.0.2.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3cc08d1f30aba91a019d191d2543c83a", "sha256": "c0daeef86447dc5bf9f7401cae5e27c61fdeabdd664d647b9ac11c5bbd268bee" }, "downloads": -1, "filename": "agilent-visa-control-0.0.2.1.2.tar.gz", "has_sig": false, "md5_digest": "3cc08d1f30aba91a019d191d2543c83a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16859, "upload_time": "2019-04-17T16:34:26", "url": "https://files.pythonhosted.org/packages/9f/58/7546821e1b8a8c76f62fad844f71e807eeee27cce6b9a625bfd22c9c5f07/agilent-visa-control-0.0.2.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d034912f1cf2f2ea054f586aa82f7402", "sha256": "1978f12eff53e7d7db2e34573167fe63873599e772cbc3357186004faa74ed49" }, "downloads": -1, "filename": "agilent_visa_control-0.0.2.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "d034912f1cf2f2ea054f586aa82f7402", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 30393, "upload_time": "2019-04-17T16:34:24", "url": "https://files.pythonhosted.org/packages/7f/52/0fcf2fad114807a394c7210c833dfdb715bf2ff6e7345f22897e0375dffa/agilent_visa_control-0.0.2.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3cc08d1f30aba91a019d191d2543c83a", "sha256": "c0daeef86447dc5bf9f7401cae5e27c61fdeabdd664d647b9ac11c5bbd268bee" }, "downloads": -1, "filename": "agilent-visa-control-0.0.2.1.2.tar.gz", "has_sig": false, "md5_digest": "3cc08d1f30aba91a019d191d2543c83a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16859, "upload_time": "2019-04-17T16:34:26", "url": "https://files.pythonhosted.org/packages/9f/58/7546821e1b8a8c76f62fad844f71e807eeee27cce6b9a625bfd22c9c5f07/agilent-visa-control-0.0.2.1.2.tar.gz" } ] }