Skip to main content

Goniometric imaging software

Project description

Goniometric imaging software

Gonio Imsoft is a command line Python program designed to control the goniometric high-speed imaging experiments where

  • rotary encoder values are read over serial (pySerial)
  • NI-DAQmx is used for general input/output (nidaqmx)
  • the camera is controlled over MicroManager (MMCorePy)

It was developed for the need of imaging 200 distinct rotations (eye locations) per specimen fast, requiring only the space bar to be pressed between the rotations.

For general imaging, it is more convinient to use MicroManager or similar.

Required hardware and current limitations

  • Any MicroManager supported imaging device
  • Any National Instruments input/output board (NI specificity can be lifted in future by using PyVISA or similar)
  • Any serial device reporting rotation values in format "pos1,pos2\n"

There are currently some limitations however (to be fixed soon)

  1. Imsoft yet lacks dialogs to select and configure devices in a user-friendly manner. Currently, the same can be achieved by modifications in camera_server.Camera.__init__, core.Dynamic.analog_output and arduino_serial.ArduinoReader.

  2. At least previously, MicroManager used to ship only Python 2 bindings and because of this, the camera_server.py has to be ran with Python 2 and rest of the software with Python 3.

  3. Some parts only work on Windows (nidaqmx and msvcrt modules)

How to install

Rotary encoders

We connected two 1024-step rotary encoders to two perpendicular rotation stages (goniometers), and used Arduino for readout.

When using similar setup to us, you can modify and flash arduino/angle_sensors/angle_sensors.ino, and use Serial Monitor in the Arduino IDE to confirm that the readout work.

Alternatively, any serial device reporting rotations in format "pos1,pos2\n" where pos1 and pos2 are rotation steps of the two encoders will do.

Main software

First please make sure that you have

  • MicroManager installation with a working camera
  • National Insturments cards configured with names Dev1 and Dev2 for input and output, respectively
  • Python 3 and Python 2

Then, with Python 3's pip

pip install gonio-imsoft

How to use

python -m gonioimsoft.tui

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

gonio-imsoft-0.0.2.tar.gz (137.1 kB view details)

Uploaded Source

Built Distribution

gonio_imsoft-0.0.2-py3-none-any.whl (43.6 kB view details)

Uploaded Python 3

File details

Details for the file gonio-imsoft-0.0.2.tar.gz.

File metadata

  • Download URL: gonio-imsoft-0.0.2.tar.gz
  • Upload date:
  • Size: 137.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

File hashes

Hashes for gonio-imsoft-0.0.2.tar.gz
Algorithm Hash digest
SHA256 a3a38eb4900642228ae1422690caa4827075570fe46d637a4d8a5023f2290348
MD5 e64163d0552dabc205964966e2298a94
BLAKE2b-256 169d68b115a632cfa673765556993e04398d1462e2b08f0eee13a39060c840c7

See more details on using hashes here.

File details

Details for the file gonio_imsoft-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: gonio_imsoft-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 43.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

File hashes

Hashes for gonio_imsoft-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 50a16c0bb3300e2652004cf936fddd97c421edef02662be46596ce73a5cc47f9
MD5 c5708654a4e51901c76e0014637a2639
BLAKE2b-256 10848c159adc92e4c947d0ed32ef264c06fe8e1d0f30e7985ce2c605d9be1af2

See more details on using hashes here.

Supported by

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