APPLICATION OF PYTHON PROGRAMMING LANGUAGE IN MEASUREMENTS

Predrag Pejović

DOI Number
10.2298/FUEE1901001P
First page
1
Last page
23

Abstract


Application of Python programming language in automation of measurement systems and creating virtual instruments is discussed in this paper. Requirements imposed to the software in order to perform these tasks are listed, and Python modules that support them are presented. Application of proposed techniques are illustrated in seven examples in different application areas. Analysis of software evolution, as well as the evolution of professional education yields conclusion that application of Python in automating measurement systems is promising.

Keywords

computerized instrumentation, electric variables measurement, impedance measurement, measurements, measurement techniques, software measurement

Full Text:

PDF

References


Python Programming Language — Official Website, [online] Available: http://www.python.org/

The Python Standard Library, [online] Available: https://docs.python.org/3/library/

time — Time access and conversions, [online] Available: https://docs.python.org/2/library/time.html

sys — System-specific parameters and functions, [online] Available: https://docs.python.org/2/library/sys.html

os — Miscellaneous operating system interfaces, [online] Available: https://docs.python.org/2/library/os.html

Graphical User Interfaces with Tk, [online] Available: https://docs.python.org/2/library/tk.html

python-usbtmc, [online] Available: https://github.com/python-ivi/python-usbtmc

Python VXI-11, [online] Available: https://github.com/python-ivi/python-vxi11

pyserial, [online] Available: https://pythonhosted.org/pyserial/

NumPy, [online] Available: http://www.numpy.org/

SciPy, [online] Available: https://www.scipy.org/

SciPy: PyLab, [online] Available: https://scipy.github.io/old-wiki/pages/PyLab

Pandas, [online] Available: https://pandas.pydata.org/

matplotlib, [online] Available: https://matplotlib.org/

PyQt's Modules, [online] Available: http://pyqt.sourceforge.net/Docs/PyQt4/modules.html

wxPython, [online] Available: https://wxpython.org/

Python-Arduino-Proto-API-v2, [online] Available: https://github.com/vascop/Python-Arduino-Proto-API-v2

P. Pejović, oscusb, Python module to support communication with oscilloscopes over USB, [online] Available: http://tnt.etf.bg.ac.rs/~oe2em/oscusb.py

P. Pejović, oscusb, Python module to support communication with oscilloscopes over RS-232, [online] Available: http://tnt.etf.bg.ac.rs/~oe2em/oscrs232.py

Pr. Pejović, oscusb, Python module to support presentation of numbers in engineering notation, [online] Available: http://tnt.etf.bg.ac.rs/~oe2em/engineeringnotation.py

J. M. Hughes, Real World Instrumentation with Python: Automated Data Acquisition and Control Systems. O'Reilly Media, Inc., 2010

G. Real, L. Raviola, M. F. Jauré, and A. O. Vitali, “Data acquisition system for didactic laboratories based on open-source hardware and free software,” In Proceedings of the 2015 XVI IEEE Workshop on Information Processing and Control (RPIC), 2015, pp. 1-6.

J. L. Johnson, H. T. Wörden, and K. V. Wijk, “PLACE: an open-source python package for laboratory automation, control, and experimentation,” Journal of laboratory automation, vol. 20, no. 1, pp. 10-16, 2015.

I. J. Koenka, J. Sáiz, and P. C. Hauser. “Instrumentino: an open-source software for scientific instruments,” CHIMIA International Journal for Chemistry, vol. 69, no. 4, pp. 172-175, 2015.

I. J. Koenka, J. Sáiz, and P. C. Hauser. “Instrumentino: An open-source modular Python framework for controlling Arduino based experimental instruments,” Computer Physics Communications, vol. 185, no. 10 pp. 2724-2729, 2014.

F. J. F. Martín, M. V. Llopis, J. C. C. Rodríguez, J. R. B. González, and J. M. Blanco, “Low-cost open-source multifunction data acquisition system for accurate measurements,” Measurement, vol. 55, pp. 265-271, 2014.

A. J. Lewis, M. Campbell, and P. Stavroulakis, “Performance evaluation of a cheap, open source, digital environmental monitor based on the Raspberry Pi,” Measurement, vol. 87, pp. 228-235, 2016.

V. Davidović, D. Danković, S. Golubović, S. Djoric-Veljkovic, I. Manić, Z. Prijić, A. Prijić, N. Stojadinović, and S. Stanković, “NBT Stress and Radiation Related Degradation and Underlying Mechanisms in Power VDMOSFETS,” Facta Universitatis, Series: Electronics and Energetics, vol 31, no. 3, pp. 367-388, 2018.

S. K. Mohapatra, K. P. Pradhan, and P. K. Sahu, “Resolving the bias point for wide range of temperature applications in high-k/metal gate nanoscale DG-MOSFET,” Facta Universitatis, Series: Electronics and Energetics, vol. 27, no. 4, pp. 613-619, 2014.

S. K. Mohapatra, K. P. Pradhan, and P. K. Sahu, “ZTC bias point of advanced fin based device: The importance and exploration,” Facta Universitatis, Series: Electronics and Energetics, vol. 28, no. 3 pp. 393-405, 2015.

I. Manić, D. Danković, V. Davidović, A. Prijić, S. Djorić-Veljković, S. Golubović, Z. Prijić, and N. Stojadinović, “Effects of pulsed negative bias temperature stressing in p-channel power VDMOSFETs,” Facta Universitatis, Series, Electronics and Energetics, vol. 29, no. 1, pp. 49-60, 2015.

X. Saura, M. Riccio, J. Suñé, A. Irace, and E. Miranda, “Study on the spatial generation of breakdown spots in MIM capacitors with different aspect ratios,” Facta Universitatis, Series Electronics and Energetics, vol. 28, no. 2 pp. 177-192, 2015.

P. Pejović, “Three-Phase Diode Rectifiers with Low Harmonics - Current Injection Methods,” Springer, 2007.

P. Pejović, M. Simić, “Virtual Instruments for Power Electronics Based on Free Software Tools,” In Proceedings of the17th International Symposium on Power Electronics, Ee 2013, Novi Sad, October-November 2013.

P. Pejović, M. Simić, “A System for Measuring Mains Voltage Parameters and Logging the Data,” In Proceedings of the 18th International Symposium on Power Electronics, Ee 2015, Novi Sad, October 2015.

V. Lazarević, M. Bjelica, P. Pejović, “Maximum Power Point Tracking Control System of Photovoltaic Module Using Free Software and Standard Laboratory Equipment,” In Proceedings of the 18th International Symposium on Power Electronics, Ee 2015, Novi Sad, October 2015.

P. Pejović, M. Bjelica, “A Simple System to Estimate On-Site Solar Energy Harvesting,” In Proceedings of the 18th International Symposium on Power Electronics, Ee 2015, Novi Sad, October 2015.

P. Pejović, A. Zeković, “Software Supported DC Voltage Calibrator,” In Proceedings of the XI International Symposium Industrial Electronics, INDEL 2016, Banja Luka, November 3-5, 2016.

P. Pejović, “Electrical Measurements Revisited — Experiences from Modernizing the Course,” In Proceedings of the IEEE EUROCON 2017, Ohrid, Republic of Macedonia, 6-8 July 2017, pp. 838-844.

P. Pejović, “An Automated System for Frequency Response Measurement Based on Free Software Tools,” In Proceedings of the XII International Symposium Industrial Electronics, INDEL 2018, Banja Luka, November 1-3, 2018.

Wikipedia contributors, IEEE-488, [online] Available: https://en.wikipedia.org/wiki/IEEE-488

Wikipedia contributors, Standard Commands for Programmable Instruments, [online] Available: https://en.wikipedia.org/wiki/Standard_Commands_for_Programmable_Instruments

Standard Commands for Programmable Instruments (SCPI), [online] Available: http://www.ivifoundation. org/docs/scpi-99.pdf

M. Banzi, Getting Started with Arduino, Second Edition, O’Reilly Media, 2011

Arduino Mega 2560 Rev3, [online] Available: https://store.arduino.cc/arduino-mega-2560-rev3

Universal Serial Bus Test and Measurement Class Specification (US-BTMC), Revision 1.0, April 14, 2003, [online] Available: http://sdpha2.ucsd.edu/Lab_Equip_Manuals/USBTMC_1_00.pdf

P. Pejović, usbtmcinstall.zip, [online] Available: http://tnt.etf.bg.ac.rs/~oe2em/usbtmcinstall.zip

Agilent Technologies Agilent 33220A 20 MHz Waveform Generator User’s Guide, [online] Available: http://cp.literature.agilent.com/litweb/pdf/33220-90002.pdf

TBS1000B-EDU Series Datasheet, [online] Available: https://www.tek.com/datasheet/digital-storage-oscilloscope-0

P. Pejović, Electrical Measurements, course web site, [online] Available: http://tnt.etf.bg.ac.rs/~oe2em/

Keysight Technologies Digital Multimeters, 34460A Digital Multimeter, 6 (1/2) Digit, Basic Truevolt, [online] Available: https://literature.cdn.keysight.com/litweb/pdf/5991-1983EN.pdf

VMEbus Extensions for Instrumentation TCP/IP Instrument Protocol Specification VXI-11, Revision 1.0, The VXIbus Consortium, 1995, [online] Available: http://www.vxibus.org/files/VXI_Specs/VXI-11.zip

Agilent 34410A and 34411A Multimeters, [online] Available: http://cp.literature.agilent.com/litweb/pdf/ 5989-3738EN.pdf

P. Pejović, “Laboratorijske vežbe iz električnih merenja” [online] Available: https://zenodo.org/record/ 1311557/files/prirucnik.pdf?download=1

CTAN Comprehensive TeX Archive Network, [online] Available: https://ctan.org/

ImageMagick convert, [online] Available: https://imagemagick.org/script/convert.php

Twelve Pulse Rectifier - Lab Report Example, [online] Available: http://tnt.etf.bg.ac.rs/~ms1ee2/report-12-pulse-2.pdf


Refbacks

  • There are currently no refbacks.


ISSN: 0353-3670 (Print)

ISSN: 2217-5997 (Online)

COBISS.SR-ID 12826626