Skip to main content

Control libraries and utilities for the XL30 ESEM (unofficial)

Project description

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 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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyxl30_tspspi-0.0.9.tar.gz (14.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyxl30_tspspi-0.0.9-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file pyxl30_tspspi-0.0.9.tar.gz.

File metadata

  • Download URL: pyxl30_tspspi-0.0.9.tar.gz
  • Upload date:
  • Size: 14.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.13

File hashes

Hashes for pyxl30_tspspi-0.0.9.tar.gz
Algorithm Hash digest
SHA256 c25767fda47d307106a9691c88bf96a6ef407747f65a533f856123b12a212e78
MD5 3d42050f95b89716b6e6829419a87cb7
BLAKE2b-256 f6265bcd686d71fc3a8a43052a305e72265cfc983528602e322dc4279ed49cd7

See more details on using hashes here.

File details

Details for the file pyxl30_tspspi-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: pyxl30_tspspi-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.13

File hashes

Hashes for pyxl30_tspspi-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 50132891deedf11ddf7161ed23a3c2b2aac915de34d06b4ee40131a4d141ebca
MD5 d1a512c4a1adeb2495b9ddad3ad59da2
BLAKE2b-256 1de6625295496a5f9b7be1adf1ebb0a77255f21d7e42695bac2eaa46cda25d7e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page