pyxl30-tspspi


Namepyxl30-tspspi JSON
Version 0.0.8 PyPI version JSON
download
home_pagehttps://github.com/tspspi/pyxl30
SummaryControl libraries and utilities for the XL30 ESEM (unofficial)
upload_time2024-04-10 13:49:28
maintainerNone
docs_urlNone
authorThomas Spielauer
requires_python>=3.6
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Philips XL30 Environmental Scanning Electron Microscope (ESEM) control libraries and utilities (unofficial)

_Under development_

This repository contains a small set of utilities and control libraries for
the Philips XL30 environmental scanning electron microscope (ESEM). __This
code is not associated with Philips or FEI in any way__.

Current available components:

* The ```xl30serial.xl30serial``` module provides a simple interface
  to the XL30 using it's serial console server. Remote control via the
  serial interface has to be enabled on the console. This route of control
  has been chosen since DDE and shared memory via flat thunking is not
  working since the Windows 2K update. Unfortunately not all parameters
  like chamber pressure are available via the serial port - and transfer
  of images has to work via files. __This library is under development
  and may change at any point in future__. It only implements a small
  subset of the supported commands.

## Installation

This package is available as PyPi package and automatically build on each
tag by an automated build system.

```
pip install pyxl30-tspspi
```

## Usage

### Simple sample with internal methods

This simple sample currently uses private methods of the class. Usually
one should access the microscope via it's base class from
the [pylabdevs](https://github.com/tspspi/pylabdevs/tree/master) project.
This base class is currently under development.

```
from xl30serial import XL30Serial
from time import sleep

with XL30Serial("/dev/ttyU0", logger, debug = True) as xl:
   print(xl._get_id())
   xl._set_hightension(30e3)
   sleep(120)
   xl._set_scanmode(ScanningElectronMicroscope_ScanMode.FULL_FRAME)
   xl._set_imagefilter_mode(ScanningElectronMicroscope_ImageFilterMode.INTEGRATE, 1)
   while(xl._get_imagefilter_mode()['mode'] != ScanningElectronMicroscope_ImageFilterMode.FREEZE):
      sleep(0.5)
   xl._write_tiff_image("c:\\temp\\IMAGE.TIF")

   xl._set_scanmode(ScanningElectronMicroscope_ScanMode.FULL_FRAME)
   xl._set_hightension(0)

```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/tspspi/pyxl30",
    "name": "pyxl30-tspspi",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": null,
    "author": "Thomas Spielauer",
    "author_email": "pypipackages01@tspi.at",
    "download_url": "https://files.pythonhosted.org/packages/ba/9d/f6ed76e72d0b18edec06c57920fb694ecf4410ef8b613c06407f52725aac/pyxl30-tspspi-0.0.8.tar.gz",
    "platform": null,
    "description": "# Philips XL30 Environmental Scanning Electron Microscope (ESEM) control libraries and utilities (unofficial)\n\n_Under development_\n\nThis repository contains a small set of utilities and control libraries for\nthe Philips XL30 environmental scanning electron microscope (ESEM). __This\ncode is not associated with Philips or FEI in any way__.\n\nCurrent available components:\n\n* The ```xl30serial.xl30serial``` module provides a simple interface\n  to the XL30 using it's serial console server. Remote control via the\n  serial interface has to be enabled on the console. This route of control\n  has been chosen since DDE and shared memory via flat thunking is not\n  working since the Windows 2K update. Unfortunately not all parameters\n  like chamber pressure are available via the serial port - and transfer\n  of images has to work via files. __This library is under development\n  and may change at any point in future__. It only implements a small\n  subset of the supported commands.\n\n## Installation\n\nThis package is available as PyPi package and automatically build on each\ntag by an automated build system.\n\n```\npip install pyxl30-tspspi\n```\n\n## Usage\n\n### Simple sample with internal methods\n\nThis simple sample currently uses private methods of the class. Usually\none should access the microscope via it's base class from\nthe [pylabdevs](https://github.com/tspspi/pylabdevs/tree/master) project.\nThis base class is currently under development.\n\n```\nfrom xl30serial import XL30Serial\nfrom time import sleep\n\nwith XL30Serial(\"/dev/ttyU0\", logger, debug = True) as xl:\n   print(xl._get_id())\n   xl._set_hightension(30e3)\n   sleep(120)\n   xl._set_scanmode(ScanningElectronMicroscope_ScanMode.FULL_FRAME)\n   xl._set_imagefilter_mode(ScanningElectronMicroscope_ImageFilterMode.INTEGRATE, 1)\n   while(xl._get_imagefilter_mode()['mode'] != ScanningElectronMicroscope_ImageFilterMode.FREEZE):\n      sleep(0.5)\n   xl._write_tiff_image(\"c:\\\\temp\\\\IMAGE.TIF\")\n\n   xl._set_scanmode(ScanningElectronMicroscope_ScanMode.FULL_FRAME)\n   xl._set_hightension(0)\n\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Control libraries and utilities for the XL30 ESEM (unofficial)",
    "version": "0.0.8",
    "project_urls": {
        "Homepage": "https://github.com/tspspi/pyxl30"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ed56180d5fae41a5fce2dc0736c56afcfd2071f47bfa0ee1d3138fec09382418",
                "md5": "7a20e53b63119f66987295f868103672",
                "sha256": "7bdba28f6791f280bbbef4452f2b58c49549d890b2611ba2bb34de3ea99672ac"
            },
            "downloads": -1,
            "filename": "pyxl30_tspspi-0.0.8-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7a20e53b63119f66987295f868103672",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 16015,
            "upload_time": "2024-04-10T13:49:22",
            "upload_time_iso_8601": "2024-04-10T13:49:22.168011Z",
            "url": "https://files.pythonhosted.org/packages/ed/56/180d5fae41a5fce2dc0736c56afcfd2071f47bfa0ee1d3138fec09382418/pyxl30_tspspi-0.0.8-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ba9df6ed76e72d0b18edec06c57920fb694ecf4410ef8b613c06407f52725aac",
                "md5": "ed5f875f64e07fd00849c60f99798972",
                "sha256": "f74005b4d15e0d424f968838cc0e400e84363bf35069ef21a4e326da760a0417"
            },
            "downloads": -1,
            "filename": "pyxl30-tspspi-0.0.8.tar.gz",
            "has_sig": false,
            "md5_digest": "ed5f875f64e07fd00849c60f99798972",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 15042,
            "upload_time": "2024-04-10T13:49:28",
            "upload_time_iso_8601": "2024-04-10T13:49:28.248184Z",
            "url": "https://files.pythonhosted.org/packages/ba/9d/f6ed76e72d0b18edec06c57920fb694ecf4410ef8b613c06407f52725aac/pyxl30-tspspi-0.0.8.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-10 13:49:28",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "tspspi",
    "github_project": "pyxl30",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "pyxl30-tspspi"
}
        
Elapsed time: 0.23611s