Skip to content

Simple python software to control Shimadzu UVmini-1240 spectrophotometer

License

Notifications You must be signed in to change notification settings

makerpat/PySerSpec

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PySerSpec

Simple python software to remotely pilot a Shimadzu UVmini-1240 spectrophotometer, linked to a computer using a serial RS232 cable.

Tested on :

x GNU/linux Ubuntu 15.10 x86_64

x Windows XP x86

It allows you to control it while in "PC control mode" (F4), and supports all parameters mentionned in the official documentation :

Gain/light/wavelength/mode/data accumulation time settings, temporal scan, spectrum scan, punctual measurement.

I've also tried to implement functions related to optionnals multi-cells holders and sippers. But since I don't have access to these, it's totally untested !

Documentation is available here :

https://extranet.fisher.co.uk/webfiles/fr/Pjointes/Mdemploi/SHI001_FR%20SPECTROPHOTOMETRE%201240.pdf (in French ; p96-p109)

In order to use it, it is required to have installed :

x At least python 3.4 : https://www.python.org/downloads/

x Pyserial : https://pythonhosted.org/pyserial/

x Matplotlib : http://matplotlib.org/

And all the relevant dependencies for these libraries : pytz, cycler, pyparsing, numpy, python-dateutil, six, cycler.

To use it, assuming that you installed all the required dependencies, you just have to run the PySerSpec.py file. For instance, on GNU/Linux : python3.4 PySerSpec.py

If you perform measurements with it, note that all results sent by the spectrophotometer are saved in .csv files, under the 'data/' folder. The "Corrected" csv file comprise edited values (negative values - i.e values under what was measured for the blank sample - have been replaced by 0).

The "Raw" csv file is made of the unedited values (i.e the ones actually sent by the spectrophotometer).

Note : this can be adapted to other shimadzu devices as well. According to the Shimadzu UV-1800 manual :

http://www.sustainable-desalination.net/wp-content/uploads/2013/05/UV-1800.pdf

Sending and receiving protocols are the same, the differences being in the definition of some command lines.

About

Simple python software to control Shimadzu UVmini-1240 spectrophotometer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%