Skip to main content

Plugin for Hamamatsu instuments including DCAM-API based cameras and USB mini-spectrometers

Project description

PyMoDAQ plugin for Hamamatsu instruments. Currently supports Hamamatsu cameras using DCAM API with PyLabLib (Viewer2D) and Hamamatsu minispectrometers using .NET driver with pythonnet (Viewer1D).

Authors

Instruments

Below is the list of instruments included in this plugin

Viewer1D

  • Mini-spectrometers: USB spectrometers from the Hamamatsu Mini-spectrometers series.

Viewer2D

  • Cameras using DCAM-API: Hardware ROI (region of interest) and binning (1x or 2x) are supported. To use ROIs, click on “Show/Hide ROI selection area” in the viewer panel (icon with dashed rectangle). Position the rectangle as you wish, either with mouse or by entering coordinates, then click “Update ROI” button.

Installation instructions

Mini-spectrometers

The specu1b.dll driver (.NET) file only is necessary for interfacing mini-spectrometers. It can be obtained either by installing Tokuspec software (default driver location is in C:\Program Files\Hamamatsu\TokuSpec) or from the originally supplied device CD.

The default driver location is used in this plugin, make sure to update its path in the python wrapper hardware/minispectro.py if you store it somewhere else.

Tested with C10083CA (TM-CCD) and C9913GC (TG-cooled NIR-I) mini-spectrometers with PyMoDAQ 4.4.7 on Windows 11.

Cameras

This part of the plugin is based on pylablib. Here are the installation instructions as explained on the library page:

These cameras require dcamapi.dll, which is installed with most of Hamamatsu software (such as HoKaWo or HiPic), as well as with the freely available DCAM API <https://dcam-api.com/>`__, which also includes all the necessary drivers. Keep in mind, that you also need to install the drivers for required corresponding camera type (USB, Ethernet, IEEE 1394). These drivers are in the same installer, but need to be installed separately. You should also pay attention to the cameras supported by the given DCAM driver version, since newer version do not support older cameras (e.g., ImageEM C9100 cameras are only supported up to version 15). After installation, the DLL is automatically added to the System32 folder, where pylablib looks for it by default.

Currently this plugin will look for the DLL in its default location. Using another location is not implemented yet, but would be straightforward.

Tested with a C11440-36U on PyMoDAQ 3.6.13 on Windows, with DCAM-API v23.6.6644. Achieving frame rates up to 64 FPS in full frame, 200 FPS by restricting the region of interest. The plugin should work on other cameras, see DCAM-API for compatibility information.

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

pymodaq_plugins_hamamatsu-0.3.0.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

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

pymodaq_plugins_hamamatsu-0.3.0-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

Details for the file pymodaq_plugins_hamamatsu-0.3.0.tar.gz.

File metadata

File hashes

Hashes for pymodaq_plugins_hamamatsu-0.3.0.tar.gz
Algorithm Hash digest
SHA256 e96ff0efce89bac8329bf34f0898d3be3365309052e7f396cfd9bcbc1318709f
MD5 22df1548a3bef218d3c5105b71d44e27
BLAKE2b-256 f6426d4a0de04706c7724c468e22b41e0eaf0ee4786e90661cb71ecaf473a4d3

See more details on using hashes here.

File details

Details for the file pymodaq_plugins_hamamatsu-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pymodaq_plugins_hamamatsu-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e1313e17e9e66e47f596c59d20906cf195f200d69d7f4c3f18cf7142312824b4
MD5 15c5ca2b04c88bc1c3fbba2d0f1a13d1
BLAKE2b-256 65d6d4ad31d6aa902e776554f7d5d29ddab4ebf8756067c0e431a1e5bf0d7a1c

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