{ "info": { "author": "Pierre Clad\u00c3\u00a9", "author_email": "pierre.clade@spectro.jussieu.fr", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Education", "Intended Audience :: Science/Research", "License :: OSI Approved :: BSD License", "Programming Language :: Python", "Topic :: Scientific/Engineering", "Topic :: Scientific/Engineering :: Physics", "Topic :: Software Development", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Overview\n========\n\nThis package can be used to drive a PM100A/D power meter from Thorlabs.\nIt provides an object oriented interface\nto the SCPI commands using Python properties.\n\nInstallation\n============\n\nTo install the ThorlabsPM100 driver, download the package and run the command::\n\n python setup.py install\n\nYou can also directly move the ThorlabsPM100 to a location\nthat Python can import from (directory in which scripts\nusing ThorlabsPM100 are run, etc.)\n\nUsage\n=====\n\nThe best way to connect your instrument is with the pyvisa package\n``_.\nOn linux, the instrument is automatically detected as a USBTMC device.\nA simple interface is described in the file usbtmc.py\n\nFirst you need to create your instrument. Using visa::\n\n import visa\n from ThorlabsPM100 import ThorlabsPM100\n rm = visa.ResourceManager()\n inst = rm.open_resource('USB0::0x0000::0x0000::xxxxxxxxx::INSTR',\n term_chars='\\n', timeout=1)\n power_meter = ThorlabsPM100(inst=inst)\n\nOr using usbtmc (you nedd to have read and write access to the\n'/dev/usbtmc0')::\n\n from ThorlabsPM100 import ThorlabsPM100, USBTMC\n inst = USBTMC(device=\"/dev/usbtmc0\")\n power_meter = ThorlabsPM100(inst=inst)\n\n\nCommands that set or query a value are Python properties of ThorlabsPM100\nclass. Other command are methods of ThorlabsPM100 class ::\n\n print power_meter.read # Read-only property\n print power_meter.sense.average.count # read property\n power_meter.sense.average.count = 10 # write property\n power_meter.system.beeper.immediate() # method\n\nContact\n=======\n\nPlease send bug reports or feedback to `Pierre Clad\u00e9`_.\n\nVesrion History\n===============\n\n* 1.1.1 and 1.1.2 : small bug corrections\n* 1.1 : support of Python 3 with 2to3\n* 1.0 : initial release\n\n\n.. _Pierre Clad\u00e9: mailto:pierre.clade@spectro.jussieu.fr\n\nDocumentation\n=============\n\n**Detailed information** about the Thorlabs PM100 driver can be found on the \n`main web site `_\n\n**Source code** available on `github `_.", "description_content_type": null, "docs_url": "https://pythonhosted.org/ThorlabsPM100/", "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://pythonhosted.org/ThorlabsPM100", "keywords": "Thorlabs,PM100,PM100A,PM100D", "license": "This software can be used under one of the following two licenses: (1) The BSD license. (2) Any other license, as long as it is obtained from the original author.", "maintainer": "", "maintainer_email": "", "name": "ThorlabsPM100", "package_url": "https://pypi.org/project/ThorlabsPM100/", "platform": "", "project_url": "https://pypi.org/project/ThorlabsPM100/", "project_urls": { "Homepage": "http://pythonhosted.org/ThorlabsPM100" }, "release_url": "https://pypi.org/project/ThorlabsPM100/1.1.2/", "requires_dist": null, "requires_python": "", "summary": "Interface to the PM100A/D power meter from Thorlabs.", "version": "1.1.2" }, "last_serial": 3055292, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "1ac004ed326b8c085655780b98750d15", "sha256": "6a636922a32e0c52c8f0b6ebddfcba277a742c5d5c927a457f502e423e5b6bd9" }, "downloads": -1, "filename": "ThorlabsPM100-1.0.tar.gz", "has_sig": false, "md5_digest": "1ac004ed326b8c085655780b98750d15", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11733, "upload_time": "2014-10-28T18:13:43", "url": "https://files.pythonhosted.org/packages/14/c8/385be62425903c50411c35a44bd43b65ef1565eed7f7e04634335fe62c50/ThorlabsPM100-1.0.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "a453b5d742e2974bece1bf7959000914", "sha256": "fdd4d023c9758253e9c1fbe3ef749ed5f31556328b7ec1cb3ead49329f5d551b" }, "downloads": -1, "filename": "ThorlabsPM100-1.1.tar.gz", "has_sig": false, "md5_digest": "a453b5d742e2974bece1bf7959000914", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11141, "upload_time": "2017-01-31T21:36:23", "url": "https://files.pythonhosted.org/packages/78/31/b579fc5e9fc7b12b3348f187dfdf1d121acb0d1277f92d3a929ff516b51b/ThorlabsPM100-1.1.tar.gz" } ], "1.1.2": [ { "comment_text": "", "digests": { "md5": "76ac19dc4cf934424cac1f20f5e7d934", "sha256": "edfd38e74c444c7f3f452cab956eb9bd17a4374163fd382a82a049f99c006ba5" }, "downloads": -1, "filename": "ThorlabsPM100-1.1.2.tar.gz", "has_sig": false, "md5_digest": "76ac19dc4cf934424cac1f20f5e7d934", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12414, "upload_time": "2017-07-28T09:51:57", "url": "https://files.pythonhosted.org/packages/06/ed/78337595d23d496866505ab59e2398aa6ce29b0056e58769da03469f4a33/ThorlabsPM100-1.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "76ac19dc4cf934424cac1f20f5e7d934", "sha256": "edfd38e74c444c7f3f452cab956eb9bd17a4374163fd382a82a049f99c006ba5" }, "downloads": -1, "filename": "ThorlabsPM100-1.1.2.tar.gz", "has_sig": false, "md5_digest": "76ac19dc4cf934424cac1f20f5e7d934", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12414, "upload_time": "2017-07-28T09:51:57", "url": "https://files.pythonhosted.org/packages/06/ed/78337595d23d496866505ab59e2398aa6ce29b0056e58769da03469f4a33/ThorlabsPM100-1.1.2.tar.gz" } ] }