PC Based Instrumentation and Control 3rd Edition Mike Tooley Ba - The ebook in PDF and DOCX formats is ready for download
PC Based Instrumentation and Control 3rd Edition Mike Tooley Ba - The ebook in PDF and DOCX formats is ready for download
https://ebookultra.com/download/electronic-circuits-fundamentals-and-
applications-3rd-edition-mike-tooley/
https://ebookultra.com/download/successful-instrumentation-and-
control-systems-design-michael-d-whitt/
https://ebookultra.com/download/sensors-and-actuators-control-systems-
instrumentation-1st-edition-de-silva/
https://ebookultra.com/download/instrumentation-and-control-systems-
documentation-2nd-edition-frederick-a-meier/
Electronic Instrumentation 3rd Edition H. S. Kalsi
https://ebookultra.com/download/electronic-instrumentation-3rd-
edition-h-s-kalsi/
https://ebookultra.com/download/maximum-pc-guide-to-building-a-dream-
pc-maximum-pc/
https://ebookultra.com/download/build-an-awesome-pc-2014-edition-easy-
steps-to-construct-the-machine-you-need-mike-riley/
https://ebookultra.com/download/reclaiming-education-1st-edition-
james-tooley/
https://ebookultra.com/download/mike-meyers-a-guide-pc-technician-
exams-220-602-220-603-220-604-2nd-edition-michael-meyers/
PC Based Instrumentation and Control 3rd Edition Mike
Tooley Ba Digital Instant Download
Author(s): Mike Tooley BA; Advanced Technological and Higher National
Certificates Kingston University
ISBN(s): 9780750647168, 0750647167
Edition: 3
File Details: PDF, 12.50 MB
Year: 2005
Language: english
PC Based Instrumentation
and Control
This page intentionally left blank
PC Based Instrumentation
and Control
Mike Tooley
The right of Mike Tooley to be identified as the author of this work has been asserted in
accordance with the Copyright, Design and Patents Act 1988
Preface xiii
Index 485
This page intentionally left blank
Preface
Aims The book aims to provide readers with sufficient information to be able to select
the necessary hardware and software to implement a wide range of practical
PC-based instrumentation and control systems. Wherever possible the book
contains examples of practical configurations and working circuits (all of which
have been rigorously tested). Representative software is also included in a var-
iety of languages including x86 assembly language, BASIC, Visual BASIC,
C, and C++. In addition, a number of popular software packages for control,
instrumentation and data analysis have been described in some detail.
Information has been included so that circuits and software routines can
be readily modified and extended by readers to meet their own particular
needs. Overall, the aim has been that of providing the reader with sufficient
information so that he or she can solve a wide variety of control and instrumen-
tation problems in the shortest possible time and without recourse to any other
texts.
Readership This book is aimed primarily at the professional control and instrumentation
specialist. It does not assume any previous knowledge of microprocessors or
microcomputer systems and thus should appeal to a wide audience (including
mechanical and production engineers looking for new solutions to control and
instrumentation problems). The book is also ideal for students at undergradu-
ate and post-graduate level who need a ‘source book’ of practical ideas and
solutions.
Chapter 1 This chapter provides an introduction to microcomputer systems
and the IBM PC compatible equipment. The Intel range of microprocessors is
introduced as the ‘legacy’ chipsets and VLSI support devices found in the
generic PC.
Preface xv
designed to assist the newcomer in the selection of a package which will satisfy
his or her needs.
Chapter 12 The general procedure for selection and specification of system
hardware and software is described in this chapter. Eight practical applications
of PC-based data acquisition, instrumentation, and control are described in
detail complete with specifications, circuit diagrams, screen shots and code
where appropriate.
Chapter 13 This chapter deals with reliability and fault tolerance. Basic
quality procedures are described together with diagnostic and benchmarking
software, and detailed fault-location charts.
A glossary is included in Appendix A while Appendices B and C deal with
fundamental SI units, multiples, and sub-multiples. A binary, hexadecimal,
and ASCII conversion table appears in Appendix D. A further nine appen-
dices provide additional reference information including an extensive list of
manufacturers, suppliers and distributors, useful web sites and a bibliography.
The third edition includes:
• Updated information on PC hardware and bus systems (including PCI,
PC/104 and USB).
• A new chapter on PC instruments complete with examples of measurement
and data logging applications.
• An introduction to software development in a modern 32-bit environment
with the latest software tools that make it possible for applications running
in a Windows NT or Windows XP environment to access system I/O.
• New sections on MASM32, C++, and Visual BASIC including examples
of the use of visual programming languages and integrated development
environments (IDE) for BASIC, assembly language and Visual Studio
applications.
• New sections on LabVIEW, DASYLab, Matlab with an updated section on
DADiSP.
• An expanded chapter with eight diverse PC applications described in detail.
• A revised and expanded chapter on reliability and fault-finding including
detailed fault-location charts, diagnostic and benchmarking software.
• Considerably extended and updated reference information.
• A companion web site with downloadable executables, source code, links to
manufacturers and suppliers, and additional reference material.
Companion website The companion website, www.key2control.com, has a variety of additional
resources including downloadable source code and executable programs. A visit
to the site is highly recommended!
This book is the end result of several thousand hours of research and devel-
opment and I should like to extend my thanks and gratitude to all those, too
numerous to mention, who have helped and assisted in its production. May it
now be of benefit to many!
Mike Tooley
1 The PC
Ever since IBM entered the personal computer scene, it was clear that its ‘PC’
(first announced in 1981) would gain an immense following. In a specification
that now seems totally inadequate, the original PC had an 8088 processor, 64–
256 kilobyte (KB) of system board RAM (expandable to 640 KB with 384 KB
fitted in expansion slots). It supported two 360 KB floppy disk drives, an 80
columns × 25 lines display, and 16 colours with an IBM colour graphics adapter.
The original PC was quickly followed by the PC-XT. This machine, an
improved PC, with a single 5¼ in. 360 KB floppy disk drive and a 10 megabyte
(MB) hard disk, was introduced in 1983. In 1984, the PC-XT was followed
by a yet further enhanced machine, the PC-AT (where XT and AT stood for
eXtended and Advanced Technology, respectively). The PC-AT used an 80286
microprocessor and catered for a 5¼ in. 1.2 MB floppy drive together with a
20 MB hard disk.
While IBM were blazing a trail, many other manufacturers were close behind.
The standards set by IBM attracted much interest from other manufacturers,
notable among whom were Compaq and Olivetti. These companies were not
merely content to produce machines with an identical specification but went on
to make further significant improvements. Other manufacturers were happy to
simply ‘clone’ the PC; indeed, one could be excused for thinking that the highest
accolade that could be offered by the computer press was that a machine was
‘IBM compatible’.
This chapter sets out to introduce the PC and provide an insight into the
architecture, construction, and operation of a ‘generic PC’. It should, perhaps,
be stated that the term ‘PC’ now applies to such a wide range of equipment that
it is difficult to pin down the essential ingredients of such a machine. However,
at the risk of oversimplifying matters, a ‘PC’ need only satisfy two essential
criteria:
• Be based upon an Intel 16-, 32-, or 64-bit processor, such as a ’x86, Pentium,
or a compatible device (such as a Celeron, Athlon, or Duron processor).
• Be able to support the Microsoft MS-DOS operating system, Microsoft
Windows, or a compatible operating system.
Other factors, such as available memory size, disk capacity, and display
technology remain secondary.
To illustrate the progress in technology over the last 20 or so years, Table
1.1 shows typical specifications for various types of PC. However, before con-
sidering PC architecture in more detail, we shall begin by briefly describing the
basic elements of a microcomputer system.
One of the jurors: Was it the case that any finger-marks had
been left by the criminal?
Some marks had been found on the bath, but the criminal had
worn gloves.
The Coroner: In the light of the evidence which you have just
heard, do you still press the charge against Alfred Thipps and Gladys
Horrocks?
Inspector Sugg: I consider the whole set-out highly suspicious.
Thipps’s story isn’t corroborated, and as for the girl Horrocks, how
do we know this Williams ain’t in it as well?
The Coroner: You will, no doubt, inquire into the matter. I seem
to recollect having seen some mention of it in the newspapers.
Thank you, Inspector, that will do.
“You are Sir Julian Freke,” said the Coroner, “and live at St.
Luke’s House, Prince of Wales Road, Battersea, where you exercise a
general direction over the surgical side of St. Luke’s Hospital?”
“I was.”
“I have.”
“Certainly not.”
“On arriving at the flat I found the deceased lying on his back in
the bath. I examined him, and came to the conclusion that death
had been caused by a blow on the back of the neck, dislocating the
fourth and fifth cervical vertebrae, bruising the spinal cord and
producing internal haemorrhage and partial paralysis of the brain. I
judged the deceased to have been dead at least twelve hours,
possibly more. I observed no other sign of violence of any kind upon
the body. Deceased was a strong, well-nourished man of about fifty
to fifty-five years of age.”
“In your opinion, could the blow have been self-inflicted?”
“If, for example, the deceased had been looking out of the
window, and the sash had shut violently down upon him?”
“He might.”
“It is difficult to say. Such a blow might very well cause death
instantaneously, or the patient might linger in a partially paralyzed
condition for some time. In the present case I should be disposed to
think that deceased might have lingered for some hours. I base my
decision upon the condition of the brain revealed at the autopsy. I
may say, however, that Dr. Grimbold and I are not in complete
agreement on the point.”
The reporters scribbled busily, and the court asked each other
what was meant, while the jury tried to look as if they knew already.
“In the matter of the eyeglasses found upon the body, Sir Julian.
Do these give any indication to a medical man?”
Inspector Sugg, recalled. Would he tell the jury what steps had
been taken to identify the deceased?
A description had been sent to every police station and had been
inserted in all the newspapers. In view of the suggestion made by
Sir Julian Freke, had inquiries been made at all the seaports? They
had. And with no results? With no results at all. No one had come
forward to identify the body? Plenty of people had come forward;
but nobody had succeeded in identifying it. Had any effort been
made to follow up the clue afforded by the eyeglasses? Inspector
Sugg submitted that, having regard to the interests of justice, he
would beg to be excused from answering that question. Might the
jury see the eyeglasses? The eyeglasses were handed to the jury.
The Coroner then addressed the jury, reminding them with some
asperity that they were not there to gossip about who the deceased
could or could not have been, but to give their opinion as to the
cause of death. He reminded them that they should consider
whether, according to the medical evidence, death could have been
accidental or self-inflicted, or whether it was deliberate murder, or
homicide. If they considered the evidence on this point insufficient,
they could return an open verdict. In any case, their verdict could
not prejudice any person; if they brought it in “murder,” all the whole
evidence would have to be gone through again before the
magistrate. He then dismissed them, with the unspoken adjuration
to be quick about it.
Sir Julian Freke, after giving his evidence, had caught the eye of
the Duchess, and now came over and greeted her.
“I haven’t seen you for an age,” said that lady. “How are you?”
“Hard at work,” said the specialist. “Just got my new book out.
This kind of thing wastes time. Have you seen Lady Levy yet?”
“No, poor dear,” said the Duchess. “I only came up this morning,
for this. Mrs. Thipps is staying with me—one of Peter’s eccentricities,
you know. Poor Christine! I must run round and see her. This is Mr.
Parker,” she added, “who is investigating that case.”
“Oh,” said Sir Julian, and paused. “Do you know,” he said in a
low voice to Parker, “I am very glad to meet you. Have you seen
Lady Levy yet?”
“Yes,” said Parker; “she thinks,” he added, “that Sir Reuben may
be detained in the hands of some financial rival or that perhaps
some scoundrels are holding him to ransom.”
At this moment the jury returned and took their places, and
there was a little rustle and hush. The Coroner addressed the
foreman and inquired if they were agreed upon their verdict.
“We are agreed, Mr. Coroner, that deceased died of the effects of
a blow upon the spine, but how that injury was inflicted we consider
that there is not sufficient evidence to show.”
Mr. Parker and Sir Julian Freke walked up the road together.
“Well, the household first of all, and then Sir Reuben’s uncle, Mr.
Levy of Portman Square, wrote to me to go on with the
investigation.”
“Yes. When I was a young man I—in short, Mr. Parker, I hoped
once to marry Lady Levy.” (Mr. Parker gave the usual sympathetic
groan.) “I have never married, as you know,” pursued Sir Julian. “We
have remained good friends. I have always done what I could to
spare her pain.”
“Ah, yes,” said Sir Julian. “Dear me, here we are at home.
Perhaps you would come in for a moment, Mr. Parker, and have tea
or a whisky-and-soda or something.”
Parker promptly accepted this invitation, feeling that there were
other things to be said.
The two men stepped into a square, finely furnished hall with a
fireplace on the same side as the door, and a staircase opposite. The
dining-room door stood open on their right, and as Sir Julian rang
the bell a man-servant appeared at the far end of the hall.
“After that dreadfully cold place,” said Parker, “what I really want
is gallons of hot tea, if you, as a nerve specialist, can bear the
thought of it.”
“Very often,” said Sir Julian, “the only time I get for any research
work—necessitating as it does the keenest observation and the
faculties at their acutest—has to be at night, after a long day’s work
and by artificial light, which, magnificent as the lighting of the
dissecting room here is, is always more trying to the eyes than
daylight. Doubtless your own work has to be carried on under even
more trying conditions.”
“Quite so, quite so,” said Sir Julian; “you mean that the burglar,
for example, does not demonstrate his methods in the light of day,
or plant the perfect footmark in the middle of a damp patch of sand
for you to analyze.”
“They do, they do,” said Sir Julian, laughing, “and it is my pride,
as it is yours, to track them down for the good of society. The
neuroses, you know, are particularly clever criminals—they break out
into as many disguises as—”
“No doubt,” said Sir Julian, who did not, “and they cover up their
tracks wonderfully. But when you can really investigate, Mr. Parker,
and break up the dead, or for preference the living body with the
scalpel, you always find the footmarks—the little trail of ruin or
disorder left by madness or disease or drink or any other similar
pest. But the difficulty is to trace them back, merely by observing
the surface symptoms—the hysteria, crime, religion, fear, shyness,
conscience, or whatever it may be; just as you observe a theft or a
murder and look for the footsteps of the criminal, so I observe a fit
of hysterics or an outburst of piety and hunt for the little mechanical
irritation which has produced it.”
He sat for some minutes gazing into the fire, while the red light
played upon his tawny beard and struck out answering gleams from
his compelling eyes.
“I shall be very grateful for any help you can give me,” he said.
“I’m afraid it’s more in the nature of hindrance,” said Sir Julian,
with a short laugh. “It’s a case of destroying a clue for you, and a
breach of professional confidence on my side. But since—
accidentally—a certain amount has come out, perhaps the whole had
better do so.”
“Sir Reuben Levy’s visit on Monday night was to me,” said Sir
Julian.
“I see,” said Sir Julian. “Yes. Well, I will tell you in confidence
that I saw grave grounds of suspicion, but as yet, no absolute
certainty of mischief.”
“It would have been, and is, a breach of confidence,” said Sir
Julian, “and I only tell you now because Sir Reuben was accidentally
seen, and because I would rather tell you in private than have you
ferretting round here and questioning my servants, Mr. Parker. You
will excuse my frankness.”
“Certainly,” said Parker. “I hold no brief for the pleasantness of
my profession, Sir Julian. I am very much obliged to you for telling
me this. I might otherwise have wasted valuable time following up a
false trail.”
“I have.”
“Lady Swaffham rang up, my lord, and said she hoped your
lordship had not forgotten you were lunching with her.”
“Mr. who?”
“Good God, Bunter, why didn’t you say so before? Have I time to
get there before he does? All right. I’m off. With a taxi I can just—”
“Oh, Bunter,” pleaded his lordship, “do let me—just this once.
You don’t know how important it is.”
“I wish to God I’d never let you grow into a privileged family
retainer, Bunter,” said Lord Peter, bitterly, dashing his walking-stick
into the umbrella-stand. “You’ve no conception of the mistakes my
mother may be making.”
“Do come and sit down and talk to me, Mr. Milligan,” she said. “I
do so love talking to you great business men—let me see, is it a
railway king you are or something about puss-in-the-corner—at
least, I don’t mean that exactly, but that game one used to play with
cards, all about wheat and oats, and there was a bull and a bear, too
—or was it a horse?—no, a bear, because I remember one always
had to try and get rid of it and it used to get so dreadfully crumpled
and torn, poor thing, always being handed about, one got to
recognise it, and then one had to buy a new pack—so foolish it must
seem to you, knowing the real thing, and dreadfully noisy, but really
excellent for breaking the ice with rather stiff people who didn’t
know each other—I’m quite sorry it’s gone out.”
“Dear boy,” she said, “I am so glad you met him, Mr. Milligan.
Both my sons are a great comfort to me, you know, though, of
course, Gerald is more conventional—just the right kind of person for
the House of Lords, you know, and a splendid farmer. I can’t see
Peter down at Denver half so well, though he is always going to all
the right things in town, and very amusing sometimes, poor boy.”
“Ah, well,” said the Duchess, “I don’t know if you’re the best
judge of that, Mr. Milligan. Not that I know anything about business
myself,” she added. “I’m rather old-fashioned for these days, you
know, and I can’t pretend to do more than know a nice man when I
see him; for the other things I rely on my son.”
“I’m sure it was very kind of you,” said the Duchess. “You are
coming to the Bazaar, then?” she continued, gazing into his face
appealingly.
“I hope so very much,” said the Duchess. “I must see what can
be done about the date—of course, I can’t promise—”
“No, no,” said Mr. Milligan heartily. “I know what these things are
to fix up. And then there’s not only me—there’s all the real big men
of European eminence your son mentioned, to be consulted.”
The Duchess turned pale at the thought that any one of these
illustrious persons might some time turn up in somebody’s drawing-
room, but by this time she had dug herself in comfortably, and was
even beginning to find her range.
“I can’t say how grateful we are to you,” she said; “it will be
such a treat. Do tell me what you think of saying.”
“How are you, dear?” replied the Duchess. “You really oughtn’t
to have turned up just yet. Mr. Milligan was just going to tell me
what a thrilling speech he’s preparing for the Bazaar, when you came
and interrupted us.”
“‘Did you hear anything unusual in the night?’ says the little
man, leaning forward and screaming at her, and so crimson in the
face and his ears sticking out so—just like a cherubim in that poem
of Tennyson’s—or is a cherub blue?—perhaps it’s a seraphim I mean
—anyway, you know what I mean, all eyes, with little wings on its
head. And dear old Mrs. Thipps saying, ‘Of course I have, any time
these eighty years,’ and such a sensation in court till they found out
she thought he’d said, ‘Do you sleep without a light?’ and everybody
laughing, and then the Coroner said quite loudly, ‘Damn the woman,’
and she heard that, I can’t think why, and said: ‘Don’t you get
swearing, young man, sitting there in the presence of Providence, as
you may say. I don’t know what young people are coming to
nowadays’—and he’s sixty if he’s a day, you know,” said the Duchess.
“Y’see,” said Lord Peter, balancing a piece of duck on his fork and
frowning, “it’s only in Sherlock Holmes and stories like that, that
people think things out logically. Or’nar’ly, if somebody tells you
somethin’ out of the way, you just say, ‘By Jove!’ or ‘How sad!’ an’
leave it at that, an’ half the time you forget about it, ’nless somethin’
turns up afterwards to drive it home. F’r instance, Lady Swaffham, I
told you when I came in that I’d been down to Salisbury, ’n’ that’s
true, only I don’t suppose it impressed you much; ’n’ I don’t suppose
it’d impress you much if you read in the paper tomorrow of a tragic
discovery of a dead lawyer down in Salisbury, but if I went to
Salisbury again next week ’n’ there was a Salisbury doctor found
dead the day after, you might begin to think I was a bird of ill omen
for Salisbury residents; and if I went there again the week after, ’n’
you heard next day that the see of Salisbury had fallen vacant
suddenly, you might begin to wonder what took me to Salisbury, an’
why I’d never mentioned before that I had friends down there, don’t
you see, an’ you might think of goin’ down to Salisbury yourself, an’
askin’ all kinds of people if they’d happened to see a young man in
plum-coloured socks hangin’ round the Bishop’s Palace.”
“Quite. An’ if you found that the lawyer and the doctor had once
upon a time been in business at Poggleton-on-the-Marsh when the
Bishop had been vicar there, you’d begin to remember you’d once
heard of me payin’ a visit to Poggleton-on-the-Marsh a long time
ago, an’ you’d begin to look up the parish registers there an’
discover I’d been married under an assumed name by the vicar to
the widow of a wealthy farmer, who’d died suddenly of peritonitis, as
certified by the doctor, after the lawyer’d made a will leavin’ me all
her money, and then you’d begin to think I might have very good
reasons for gettin’ rid of such promisin’ blackmailers as the lawyer,
the doctor an’ the bishop. Only, if I hadn’t started an association in
your mind by gettin’ rid of ’em all in the same place, you’d never
have thought of goin’ to Poggleton-on-the-Marsh, ’n’ you wouldn’t
even have remembered I’d ever been there.”
“I don’t think so,” said Lord Peter; “the name threads no beads
in my mind. But it might, any day, you know.”
“Oh, yes,” said Lord Peter, “but most of us have such dozens of
motives for murderin’ all sorts of inoffensive people. There’s lots of
people I’d like to murder, wouldn’t you?”
“So hard on poor Inspector Sugg,” said the Duchess. “I quite felt
for the man, having to stand up there and answer a lot of questions
when he had nothing at all to say.”
Lord Peter applied himself to the duck, having got a little
behindhand. Presently he heard somebody ask the Duchess if she
had seen Lady Levy.
“It is,” said Mr. Milligan. “I guess my brothers are having a good
time there now. I’ll be joining them again before long, as soon as
I’ve fixed up a little bit of work for them on this side.”
Lord Peter spent the afternoon in a vain hunt for Mr. Parker. He
ran him down eventually after dinner in Great Ormond Street.
“All these men work with a bias in their minds, one way or
other,” he said; “they find what they are looking for.”
“Oh, they do,” agreed the detective; “but one learns to discount
that almost automatically, you know. When I was at college, I was
all on the other side—Conybeare and Robertson and Drews and
those people, you know, till I found they were all so busy looking for
a burglar whom nobody had ever seen, that they couldn’t recognise
the footprints of the household, so to speak. Then I spent two years
learning to be cautious.”
“Hum,” said Lord Peter, “theology must be good exercise for the
brain then, for you’re easily the most cautious devil I know. But I
say, do go on reading—it’s a shame for me to come and root you up
in your off-time like this.”
The two men sat silent for a little, and then Lord Peter said:
“Oh, nothing,” said Peter. “It’s a hobby to me, you see. I took it
up when the bottom of things was rather knocked out for me,
because it was so damned exciting, and the worst of it is, I enjoy it
—up to a point. If it was all on paper I’d enjoy every bit of it. I love
the beginning of a job—when one doesn’t know any of the people
and it’s just exciting and amusing. But if it comes to really running
down a live person and getting him hanged, or even quodded, poor
devil, there don’t seem as if there was any excuse for me buttin’ in,
since I don’t have to make my livin’ by it. And I feel as if I oughtn’t
ever to find it amusin’. But I do.”
“There’s old Milligan, f’r instance,” said Lord Peter. “On paper,
nothin’ would be funnier than to catch old Milligan out. But he’s
rather a decent old bird to talk to. Mother likes him. He’s taken a
fancy to me. It’s awfully entertainin’ goin’ and pumpin’ him with stuff
about a bazaar for church expenses, but when he’s so jolly pleased
about it and that, I feel a worm. S’pose old Milligan has cut Levy’s
throat and plugged him into the Thames. It ain’t my business.”
“Well, but look here!” said Parker. “If Milligan has cut poor old
Levy’s throat for no reason except to make himself richer, I don’t see
why he should buy himself off by giving £1,000 to Duke’s Denver
church roof, or why he should be forgiven just because he’s
childishly vain, or childishly snobbish.”
“No, but—”
Welcome to our website – the ideal destination for book lovers and
knowledge seekers. With a mission to inspire endlessly, we offer a
vast collection of books, ranging from classic literary works to
specialized publications, self-development books, and children's
literature. Each book is a new journey of discovery, expanding
knowledge and enriching the soul of the reade
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebookultra.com