A Low-Cost PC-Based Virtual Oscilloscope: IEEE Transactions On Education June 2004
A Low-Cost PC-Based Virtual Oscilloscope: IEEE Transactions On Education June 2004
A Low-Cost PC-Based Virtual Oscilloscope: IEEE Transactions On Education June 2004
net/publication/3050916
CITATIONS READS
29 1,747
5 authors, including:
Some of the authors of this publication are also working on these related projects:
Transformer insulation condition monitoring using dielectric response techniques View project
All content following this page was uploaded by Prithwiraj Purkait on 27 November 2014.
Abstract—The integration of personal computers (PCs) with the develop a low-cost, affordable, plug-in kind of data acquisition
present-day measurement and instrumentation world has opened card that can be used with any common-purpose PC with the as-
up the door for “virtual instrumentation.” This paper describes the sociated software and can make the expensive DSO redundant
development of a low-cost, PC-based, virtual digital oscilloscope. A
data acquisition device using the computer parallel port has been for elementary signal analysis purposes.
fabricated with full analog interface and 8-b analog-to-digital con- The main contribution of this paper is to present the integrated
verter with associated control-logic and timing circuitries. A soft- system with PC-based data acquisition hardware, software, and
ware package aimed at managing the acquisition process and dis- display modules, and highlight how it is being used for under-
playing the acquired signal has also been developed. This device graduate laboratory demonstration and instructional purposes.
has been conceived as a simple plug-in board to be incorporated
to any IBM PC parallel port—thus, in many cases, eliminating
the requirements of multiple, expensive, digital oscilloscopes. The
project, initially designed as an undergraduate thesis, is currently II. PC-BASED VIRTUAL INSTRUMENTATION
being used for laboratory instructional purposes. The features of
this device make it suitable for implementing as an educational re- The instrumentation industry is moving steadily and rapidly
source for undergraduate students from Electrical, Electronics, In- in the direction of virtual instrumentation. Virtual instruments
strumentation, and Computer Science faculties. are centered on a PC, used with as little specialized hardware as
Index Terms—Analog-to-digital (A/D) conversion, data acquisi- possible to link it to the devices it must measure/control. This
tion, digital oscilloscope, parallel port, virtual instrumentation. hardware typically is plug-in boards for digitizing a signal di-
rectly or for controlling stand-alone instruments. Virtual instru-
I. INTRODUCTION mentation is known for its flexibility, modularity, and low cost.
Celma et al. [3] presented the idea behind development of a
(IC)] is used for selecting the eight channels of the 0808 ADC low-level tasks, such as parallel port configuration, timer pro-
for sequential data transfer. The IC 7404 is used as an inverter gramming, handshaking with the ADC for data capture, data
for strobing the IC 7493 with proper level of signal coming out acquisition, and data storage in the hard disk. The flow chart
of the PC parallel port. The A741 IC is used for the purpose corresponding to the main program is illustrated in Fig. 3.
of providing adequate delay between the activation of the The abbreviations used in the flowchart of Fig. 3, such as SOC
0808 ADC input channel and the start of A/D conversion; this (start of conversion), EOC (end of conversion), and ALE (ad-
corresponds to the normal response time of the 0808 ADC IC. dress latch enable) are communication signals between the PC
Further detailed description of the interface circuit is beyond and the data acquisition hardware indicating different timing
the scope of this paper. and control signals. The detailed functionalities of these sig-
3) Auto Ranging Module: The auto-ranging module is used nals can be found in [9], [15]. The GUI was developed in VB
to convert the input analog signal range of 100 V to the range 5.0. Apart from real-time display of the eight different analog
of 2.5 V through a potentiometric arrangement. Another elec- signals, the GUI also allows demonstration of common oscil-
tronic clamping circuit using the LM324 IC-s is used to convert loscope tasks like time-scale and voltage-scale changes. It can
this range of voltage into the required 0–5-V range for the ADC display the value at any point of the signal by simply placing the
input. cursor over the required point on the waveform. Fig. 4 shows
Adequate, zener-based protection circuits are used in critical a sample GUI window of the developed system. Further anal-
places so that the circuit does not get damaged because of ac- ysis of the acquired signal, such as the root mean square (rms),
cidental overvoltages. The positions of these zeners are not ex- mean value, and average values can be obtained from the corre-
clusively shown in the Fig. 2 to avoid too much crowding in the sponding submenus under the “Tool” menu.
diagram.
IV. APPLICATIONS
D. Software—Data Acquisition and GUI The display systems available with most commercially avail-
Fully dedicated software was developed for controlling the able data acquisition systems usually provide single-channel or
data acquisition system. The software was written in Turbo C++ at the most dual-channel simultaneous display. When the dis-
to run under DOS 6.0. The program is made up of a main func- play system is needed to monitor three or more input channels
tion and several subfunctions for management of the associated simultaneously (for example, when monitoring a three-phase
298 IEEE TRANSACTIONS ON EDUCATION, VOL. 47, NO. 2, MAY 2004
3) “Authentic” diagnostic problems can be presented based [9] M. Rodriguez, A. Ayala, F. Rosa, F. Herrera, S. Rodriguez, M. Diaz-
on stored data. Gonzalez, and S. R. Buenafuente, “A low-cost interface circuit to enable
A/D conversion using the parallel port,” Int. J. Electr. Eng. Educ., vol.
4) Comparisons can be offered between different problem 38, no. 3, pp. 222–231, 2001.
solutions. [10] C. C. Ko, B. M. Chen, S. H. Chen, V. Ramakrishnan, R. Chen, S. Y. Hu,
5) Virtual exercises can be planned around the technology. and Y. A. Zhuang, “A large-scale web-based virtual oscilloscope labora-
tory experiment,” Inst. Elect. Eng. IEE—Engineering Science Education
Moreover, the detailed treatment of the topic PC interfacing by J., vol. 9, no. 2, pp. 69–76, 2000.
using the PC printer port will enable interested students to im- [11] M. Shaheen, A. Loparo, and M. R. Buchner, “Remote laboratory exper-
imentation,” in Proc. American Control Conf., 1998, pp. 1326–1329.
plement other innovative ideas. [12] (2003, Mar.) Virtual Oscilloscope From NTNU Virtual Physics
Laboratory. [Online] Available: http://www.phy.ntnu.edu.tw/java/oscil-
loscope/oscilloscope.html
V. CONCLUSION [13] B. R. Land, B. R. Johnson, R. A. Wyttenbach, and R. R. Hoy. (2003,
January) Stimscope: A Virtual Instrument for Neurophysiology in the
Teaching Lab. [Online] Available: http://www.nbb.cornell.edu/neu-
A PC-based, low-cost, portable, plug-in-type virtual oscillo- robio/land/PROJECTS/Poster2002/NS%2702StimScopePos.pdf
scope based on the communication features of the PC parallel [14] (2003, Mar.) LabVIEW Overview From National Instruments.
port has been developed. The user specifications of the devel- [Online] Available: http://volt.ni.com/niwc/common.jsp?page=lab-
view_overview
oped system have been set up in accordance with the require- [15] Standard Signaling Method for Bidirectional Parallel Peripheral Inter-
ments of common undergraduate-level laboratories in electrical, face for Personal Computers, IEEE Standard 1284-1994, 1994.
electronics, and computer engineering courses. The interface
circuit hardware has been developed with few affordable elec-
tronic components for conversion and processing of the analog
Chandan Bhunia received the Bachelor of Instrumentation Engineering degree
signal in the digital form before being acquired by the PC. In- from Haldia Institute of Technology, Haldia, India, in 2002. He is currently pur-
tegrated software has been developed to manage the acquisi- suing the Master’s degree in the Department of Computer Science and Engi-
tion, signal representation, and post-processing of the signal. neering, Bengal Engineering College, Shibpur, India.
The system was successfully tested with several forms of input
waveforms, such as sinusoidal, square, and triangular signals.
The developed system has possible expansion capacities in the Saikat Giri received the Bachelor of Instrumentation Engineering degree from
form of additional signal processing modules. The virtual DSO Haldia Institute of Technology, Haldia, India, in 2002.
can be used for real-time data acquisition in most common-pur- He is currently a Software Analyst with Computer Maintenance Company
(CMC) Ltd., Kolkata, India.
pose low-power- and low-frequency-range applications for un-
dergraduate laboratories. It can also be used as an instructional
tool for undergraduate data acquisition courses for illustrating
complex concepts concerning parallel port programming, A/D Samrat Kar received the Bachelor of Instrumentation Engineering degree from
Haldia Institute of Technology, Haldia, India, in 2002.
conversion, and detailed circuit development. He is currently employed as Executive Engineer with Bhaba Atomic Research
Centre (BARC), Mumbai, India.
REFERENCES
[1] Tektronix Inc. (2003, Mar.). [Online] Available: http://www.tek.com
Sudarshan Haldar received the Bachelor of Instrumentation Engineering de-
[2] Gage—A Tektronix Technology Co. (2003, Mar.). [Online] Available:
gree from Haldia Institute of Technology, Haldia, India, in 2002.
http://www.gage-applied.com/tektronix.asp
He is currently employed as an Executive Engineer with BHaldia Petrochem-
[3] S. Celma, A. Carlosena, and P. A. Martinez, “PC-based spectrum ana-
icals, Ltd. (HPL), Haldia, India.
lyzer,” IEEE Trans. Educ., vol. 35, pp. 204–210, Aug. 1992.
[4] S. A. Chickamenahalli and A. Hall, “Interfacing a digital oscilloscope to
a personal computer using GPIB,” in Proc. 27th Annu. Conf. Frontiers
in Education—Teaching and Learning in Era of Change, vol. 2, 1997,
p. 904. Prithwiraj Purkait (M’97) received the B.E.E., M.E.E., and Ph.D. degrees
[5] C. E. Smith and M. D. Tew, “Data acquisition in the undergraduate lab- from Jadavpur University, Kolkata, India, in 1996, 1999, and 2002, respectively.
oratory,” IEEE Trans. Educ., vol. 38, pp. 95–96, Feb. 1995. He formerly worked with M/s Crompton Greaves, Ltd., Mumbai, India, as
[6] C. E. Smith, M. D. Tew, and J. Aschberger, “Computer aided data acqui- a Design Engineer for one year. He served as Lecturer with the Department of
sition in undergraduate laboratories,” in Proc. 22nd Annu. Conf. Fron- Electronics and Instrumentation Engineering, Haldia Institute of Technology,
tiers in Education, 1992, pp. 710–713. Haldia, India, from 1998 to 2002, and he served as Postdoctoral Researcher with
[7] P. H. Anderson. (2003, March) Use of a PC Printer Port for Control the University of Queensland, Queensland, Australia, from 2002 to 2003. He is
and Data Acquisition. [Online] Available: http://et.nmsu.edu/~etti/ currently an Assistant Professor in the Department of Electrical Engneering,
fall96/computer/printer/printer.html Haldia Institute of Technology. His current research includes transformer insu-
[8] I. Harries. (2003, Mar.) Interfacing to the IBM-PC Parallel Printer Port. lation condition assessment techniques and advanced signal processing appli-
[Online] Available: http://www.doc.ic.ac.uk/~ih/doc/par/ cations in high-voltage engineering.