LabView advanced programming techniques 2nd ed Edition Rick Bitter pdf download
LabView advanced programming techniques 2nd ed Edition Rick Bitter pdf download
https://ebookname.com/product/labview-advanced-programming-
techniques-2nd-ed-edition-rick-bitter/
https://ebookname.com/product/programming-arduino-with-
labview-1st-edition-marco-schwartz/
https://ebookname.com/product/digital-signal-processing-system-
design-second-edition-labview-based-hybrid-programming-nasser-
kehtarnavaz/
https://ebookname.com/product/mac-os-x-advanced-development-
techniques-1st-ed-edition-joe-zobkiw/
https://ebookname.com/product/processing-and-finishing-of-
polymeric-materials-1st-edition-wiley/
Cultivating the Spirit How College Can Enhance Students
Inner Lives 1st Edition Alexander W. Astin
https://ebookname.com/product/cultivating-the-spirit-how-college-
can-enhance-students-inner-lives-1st-edition-alexander-w-astin/
https://ebookname.com/product/student-centered-coaching-a-guide-
for-k-8-coaches-and-principals-1st-edition-diane-sweeney/
https://ebookname.com/product/eratosthenes-geography-
eratosthenes-editor/
https://ebookname.com/product/iraq-and-the-use-of-force-in-
international-law-1st-edition-marc-weller/
https://ebookname.com/product/improving-k-12-stem-education-
outcomes-through-technological-integration-1st-edition-michael-j-
urban-editor-david-a-falvo-editor/
Signal and Image Multiresolution Analysis 1st Edition
Abdelialil Ouahabi
https://ebookname.com/product/signal-and-image-multiresolution-
analysis-1st-edition-abdelialil-ouahabi/
3325_C000.fm Page i Tuesday, August 22, 2006 2:25 PM
Title Page
3325_C000.fm Page iv Tuesday, August 22, 2006 2:25 PM
CRC Press
Taylor & Francis Group
6000 Broken Sound Parkway NW, Suite 300
Boca Raton, FL 33487-2742
© 2007 by Taylor & Francis Group, LLC
CRC Press is an imprint of Taylor & Francis Group, an Informa business
This book contains information obtained from authentic and highly regarded sources. Reprinted
material is quoted with permission, and sources are indicated. A wide variety of references are
listed. Reasonable efforts have been made to publish reliable data and information, but the author
and the publisher cannot assume responsibility for the validity of all materials or for the conse-
quences of their use.
No part of this book may be reprinted, reproduced, transmitted, or utilized in any form by any
electronic, mechanical, or other means, now known or hereafter invented, including photocopying,
microfilming, and recording, or in any information storage or retrieval system, without written
permission from the publishers.
For permission to photocopy or use material electronically from this work, please access www.
copyright.com (http://www.copyright.com/) or contact the Copyright Clearance Center, Inc. (CCC)
222 Rosewood Drive, Danvers, MA 01923, 978-750-8400. CCC is a not-for-profit organization that
provides licenses and registration for a variety of users. For organizations that have been granted a
photocopy license by the CCC, a separate system of payment has been arranged.
Trademark Notice: Product or corporate names may be trademarks or registered trademarks, and
are used only for identification and explanation without intent to infringe.
Bitter, Rick.
LabVIEW : advanced programming techniques / Richard Bitter, Taqi
Mohiuddin, Matthew R. Nawrocki. -- 2nd ed.
p. cm.
ISBN 0-8493-3325-3 (alk. paper)
1. Computer programming. 2. LabVIEW. 3. Computer graphics. I. Mohiuddin,
Taqi. II. Nawrocki, Matt. III. Title.
QA76.6.B5735 2006
005.1--dc22 2006044686
Preface and
Acknowledgments
As the power of the standard personal computer has steadily evolved, so have the
capabilities of LabVIEW. LabVIEW has simplified the working lives of thousands
of scientists, engineers, and technicians, and has increased their productivity. Auto-
mation has reduced the costs and increased the manufacturing outputs of factories
around the world. Cycle times for product development have been shortened and
quality of many products has steadily improved. LabVIEW does not get credit for
all of these improvements, but has without question played a valuable role in many
organizations for accomplishing these goals.
In our earlier experiences with LabVIEW, we found that adequate coverage of
key topics was lacking. Subjects that are useful to users without a formal background
in computer science such as approaches to software development, exception han-
dling, and state machines were very difficult to find. In addition, newer areas such
as multi-threading and ActiveX are even harder to locate and sometimes documen-
tation is non-existent. Part of our intent in this book is to cover these topics that are
difficult to find in other books on LabVIEW.
The chapters in this book are written in a manner that will allow readers to study
the topic of interest without having to read the contents in sequential order. Users
of LabVIEW with varying levels of expertise will find this book beneficial.
Proficiency with a programming language requires an understanding of the
language constructs and the tools needed to produce and debug code. The first two
chapters provide an overview of LabVIEW’s Integrated Development Environment,
programming constructs, and main features. These chapters are meant to supplement
LabVIEW’s documentation, and provide some good background information for
programmers new to the language.
Effective programmers have an understanding of programming techniques that
are applicable to a large number of programming problems. Programming tools such
as state machines that simplify logic of handling various occurrences and the use
of instrument drivers are two such programming tools. Exception handling is left
out of more applications than we want to discuss (including some of our own), but
we have included a chapter specifically on exception handling in LabVIEW.
Advanced programmers understand the operation of the language they are work-
ing with and how it interacts with the system. We present a chapter on multi-
threading’s impact on LabVIEW. Version 5.0 was LabVIEW’s debut into the world
of multi-threaded capable programming languages. A number of the issues that occur
with multi-threading programming were abstracted from the programmer, but a
working knowledge of muti-threaded interactions is needed.
3325_C000.fm Page vi Tuesday, August 22, 2006 2:25 PM
The Authors
Rick Bitter graduated from the University of Illinois at Chicago in 1994. He has
presented papers at Motorola and National Instruments-sponsored symposia. Rick
currently develops performance testing applications as a Senior Software Engineer.
Matt Nawrocki graduated from Northern Illinois University in 1995. He has written
papers and has done presentations on LabVIEW topics at Motorola, National Instru-
ments, and Tellabs.
3325_C000.fm Page viii Tuesday, August 22, 2006 2:25 PM
3325_book.fm Page ix Monday, August 21, 2006 2:07 PM
Contents
Chapter 1 Introduction to LabVIEW....................................................................1
1.1 Virtual Instruments...........................................................................................1
1.1.1 The Front Panel....................................................................................2
1.1.2 Block Diagram .....................................................................................2
1.1.3 Executing VIs .......................................................................................3
1.1.4 LabVIEW File Extensions ...................................................................5
1.2 LabVIEW Projects ...........................................................................................5
1.3 Help ..................................................................................................................6
1.3.1 Built-in Help ........................................................................................7
1.3.2 Websites................................................................................................8
1.4 Data Flow Programming..................................................................................8
1.5 Menus and Palettes ..........................................................................................9
1.6 Front Panel Controls ......................................................................................11
1.6.1 User Control Sets ...............................................................................12
1.6.1.1 Numeric...............................................................................13
1.6.1.2 Boolean ...............................................................................15
1.6.1.3 String & Path ......................................................................16
1.6.1.4 Ring & Enum, List & Table...............................................18
1.6.1.5 Array, Cluster, and Matrix..................................................20
1.6.1.6 Graphs and Charts ..............................................................22
1.6.1.7 String & Path and I/O ........................................................24
1.7 Block Diagram Functions ..............................................................................26
1.7.1 Structures............................................................................................26
1.7.1.1 Sequence Structure .............................................................27
1.7.1.2 Case Structure.....................................................................30
1.7.1.3 For Loop .............................................................................32
1.7.1.4 While Loop .........................................................................37
1.7.1.5 Event Structure ...................................................................38
1.7.1.6 Disable Structure ................................................................38
1.7.1.7 Timed Structure ..................................................................39
1.7.1.8 Formula Node .....................................................................41
1.7.2 Numeric, Boolean, String, and Comparison .....................................42
1.7.3 Array and Cluster...............................................................................45
1.7.4 Timing ................................................................................................47
1.7.5 Dialog and User Interface..................................................................48
1.7.6 File I/O ...............................................................................................49
1.7.7 Instrument I/O, Connectivity, and Communication ..........................51
1.7.8 Creating Connectors...........................................................................52
1.7.9 Editing Icons ......................................................................................54
3325_book.fm Page x Monday, August 21, 2006 2:07 PM
9.1.2UNIX ................................................................................................398
9.1.3Multitasking .....................................................................................398
9.1.3.1 Preemptive Multithreading ...............................................399
9.1.4 Kernel Objects..................................................................................400
9.1.5 Thread...............................................................................................400
9.1.6 Process..............................................................................................401
9.1.7 Application .......................................................................................401
9.1.8 Priority..............................................................................................402
9.1.8.1 How Operating Systems Determine which Threads........402
9.1.9 Security.............................................................................................402
9.1.10 Thread Safe ......................................................................................402
9.2 Thread Mechanics ........................................................................................403
9.2.1 Thread States....................................................................................404
9.2.2 Scheduling Threads..........................................................................404
9.2.3 Context Switching............................................................................404
9.3 Win32 Multithreading ..................................................................................405
9.4 Pthreads ........................................................................................................406
9.5 Multithreading Problems..............................................................................407
9.5.1 Race Conditions ...............................................................................408
9.5.2 Priority Inversion..............................................................................408
9.5.3 Starvation..........................................................................................409
9.5.4 Deadlocking .....................................................................................409
9.5.5 Operating System Solutions.............................................................410
9.6 Multithreading Myths ..................................................................................410
9.6.1 The More Threads, the Merrier .......................................................410
9.6.2 More Threads, More Speed .............................................................411
9.6.3 Makes Applications More Robust ...................................................411
9.6.4 Conclusion on Myths .......................................................................412
9.7 Hyper-Threading ..........................................................................................412
9.8 Multithreaded LabVIEW .............................................................................413
9.8.1 Execution Subsystems......................................................................414
9.8.2 The Run Queue ................................................................................417
9.8.3 DLLs in Multithreaded LabVIEW ..................................................418
9.8.4 Customizing the Thread Configuration ...........................................421
9.9 Thread Count Estimation for LabVIEW .....................................................423
9.9.1 Same as Caller or Single Subsystem Applications .........................426
9.9.2 Multiple Subsystem Applications ....................................................427
9.9.3 Optimizing VIs for Threading .........................................................428
9.9.4 Using VI Priorities ...........................................................................432
9.10 Subroutines in LabVIEW.............................................................................434
9.10.1 Express VIs ......................................................................................435
9.10.2 LabVIEW Data Types......................................................................435
9.10.3 When to Use Subroutines ................................................................437
9.11 Summary ......................................................................................................441
Bibliography ..........................................................................................................441
3325_book.fm Page xviii Monday, August 21, 2006 2:07 PM
Index ......................................................................................................................491
3325_C001.fm Page 1 Tuesday, August 22, 2006 9:11 AM
1 Introduction to LabVIEW
1
3325_C001.fm Page 2 Tuesday, August 22, 2006 9:11 AM
FIGURE 1.1
Introduction to LabVIEW 3
"Frequency"
Number of Measurements per Average Output
Measurement Type
stop
FIGURE 1.2
to run. Elements can be primitive operators such as addition, or more complex such
as a subVI. If LabVIEW successfully constructs all the wire tables, you are presented
a solid arrow indicating that the VIs can be executed. If the wire table cannot be
created, then a broken arrow is presented for the VIs with a problem, and also for
each VI loaded in memory that requires that VI for execution. LabVIEW runs in
several subsystems, which will be described throughout this book. All that we need
to understand now is that the main execution subsystem compiles diagrams while
you write them. This allows programmers to write code and test it without needing
to wait for a compiling process, and programmers do not need to worry about
execution speed because the language is not interpreted.
The wire diagrams that are constructed do not define an order in which elements
are executed. This is an important concept for advanced programmers to understand.
LabVIEW is a dataflow-based language, which means that elements will be executed
in a somewhat arbitrary order. LabVIEW does not guarantee which order a series
of elements is executed in if they are not dependent on each other. A process called
arbitrary interleaving is used to determine the order elements are executed in. You
may force an order of execution by requiring that elements require output from
another element before execution. This is a fairly common practice, and most
programmers do not recognize that they are forcing the order of execution. When
programming, it will become obvious that some operations must take place before
others can. It is the programmer’s responsibility to provide a mechanism to force
the order of execution in the code design.
FIGURE 1.3
the palette, you will find the Continuous Run, Stop, and Pause buttons. If you
compare Figures 1.1 and 1.3, the last three buttons in Figure 1.1 disappear in Figure
1.3. These buttons are used for alignment of objects on the panel or diagram, and
are not available while a program is running. VIs are normally run from the front
panel; however, they can also be executed from the block diagram. This allows the
programmer to run the program and utilize some of the other tools that are available
for debugging purposes.
If the Run button appears as a broken arrow, this indicates that the LabVIEW
program or VI cannot compile because of programming errors. When all of the
errors are fixed, the broken Run button will be substituted by the regular Run button.
LabVIEW has successfully compiled the diagram. While editing or creating a VI,
you may notice that the palette displays the broken Run button. If you continue to
see this after editing is completed, press the button to determine the cause of the
errors. An Error List window will appear displaying all of the errors that must be
fixed before the VI can compile. Debugging techniques are discussed further in
Chapter 6, which covers exception handling.
The palette contains four additional buttons on the block diagram that are not
available from the front panel. These are typically used for debugging an application.
The button with the lightbulb is for Execution Highlighting and the three following
it are used for stepping through the code. Figure 1.4 shows the code diagram with
Execution Highlighting activated. You can see bubbles that represent the data flowing
along the wire, from one block to the next. You can step through the code as needed
when the Pause button is used in conjunction with Execution Highlighting. As stated
earlier, debugging techniques will be covered in Chapter 6.
3325_C001.fm Page 5 Tuesday, August 22, 2006 9:11 AM
Introduction to LabVIEW 5
FIGURE 1.4
FIGURE 1.5
the second branch of the tree: Build Specifications. Information relating to the
target machine environment you are building an application to is located in the
last branch: System Definition. Applications that use the same operating system
as the development platform will not find the System Definition folder to be of
value. If a compile target is something like a Palm Pilot, then this folder is where
definitions specific to a Palm based target would be configured. The project window
is shown in Figure 1.5.
Among other things worth noting on the project explorer window is the toolbar,
which contains buttons to create, save, and save all VIs in the application; compile;
the standard cut, copy, and paste buttons; buttons to support compilation of VIs; and
buttons to support source code control tools. All of these features will be elaborated
on in Chapters 2 and 4.
In general, most work will be done in the Sources branch which provides a
listing of all VIs and variables in the project. The Dependencies section is for VIs,
DLLs, and project libraries that are called statically by a VI.
1.3 HELP
For beginning users of LabVIEW, there are various sources for assistance to aid in
learning the language. Because this book is not a comprehensive guide for begin-
Another Random Document on
Scribd Without Any Related Topics
Lady-day 1730; and in his Principal, as will appear, soon afterwards,
very unexpectedly, found a Patron.
The Doctor gave Mr. Pegge the choice of three Cures under him—
of Sundrich, of a London Living, or the Chaplainship of St. Cross, of
which the Doctor was then Master. Mr. Pegge preferred Sundrich,
which he held till Dr. Lynch exchanged, that Rectory for
Bishopsbourne, and then removed thither at Midsummer 1731.
Within a few months after this period, Dr. Lynch, who had married
a daughter of Archbishop Wake, obtained for Mr. Pegge, unsolicited,
the Vicarage of Godmersham (cum Challock), into which he was
inducted Dec. 6, 1731.
We have said unsolicited, because, at the moment when the Living
was conferred, Mr. Pegge had more reason to expect a reproof from
his Principal, than a reward for so short a service of these Cures.
The case was, that Mr. Pegge had, in the course of the preceding
summer (unknown to Dr. Lynch) taken a little tour, for a few months,
to Leyden, with a Fellow Collegian (John Stubbing, M. B. then a
medical pupil under Boerhaave), leaving his Curacy to the charge of
some of the neighbouring Clergy. On his return, therefore, he was
not a little surprized to obtain actual preferment through Dr. Lynch,
without the most distant engagement on the score of the Doctor's
interest with the Archbishop, or the smallest suggestion from Mr.
Pegge.
Being now in possession of a Living, and independent property,
Mr. Pegge married (April 13, 1732) Miss Anne Clarke, the only
daughter of Benjamin, and sister of John Clarke, Esqrs. of Stanley,
near Wakefield, in the county of York, by whom he had one Son
[Samuel, of whom hereafter], who, after his Mother's death, became
eventually heir to his Uncle; and one Daughter, Anna-Katharina, wife
of the Rev. John Bourne, M.A. of Spital, near Chesterfield, Rector of
Sutton cum Duckmanton, and Vicar of South Winfield, both in
Derbyshire; by whom she had two daughters, Elizabeth, who
married Robert Jennings, Esq. and Jane, who married Benjamin
Thompson, Esq.
While Mr. Pegge was resident in Kent, where he continued twenty
years, he made himself acceptable to every body, by his general
knowledge, his agreeable conversation, and his vivacity; for he was
received into the familiar acquaintance of the best Gentlemen's
Families in East Kent, several of whom he preserved in his
correspondence after he quitted the county, till the whole of those of
his own standing gave way to fate before him.
Having an early propensity to the study of Antiquity among his
general researches, and being allowedly an excellent Classical
Scholar, he here laid the foundation of what in time became a
considerable collection of books, and his little cabinet of Coins grew
in proportion; by which two assemblages (so scarce among Country
Gentlemen in general) he was qualified to pursue those collateral
studies, without neglecting his parochial duties, to which he was
always assiduously attentive.
The few pieces which Mr. Pegge printed while he lived in Kent will
be mentioned hereafter, when we shall enumerate such of his
Writings as are most material. These (exclusively of Mr. Urban's
obligations to him in the Gentleman's Magazine) have appeared
principally, and most conspicuously, in the Archæologia, which may
be termed the Transactions of the Society of Antiquaries. In that
valuable collection will be found more than fifty memoirs, written
and communicated by him, many of which are of considerable
length, being by much the greatest number hitherto contributed by
any individual member of that respectable Society.
In returning to the order of time, we find that, in July 1746, Mr.
Pegge had the great misfortune to lose his Wife; whose monumental
inscription, at Godmersham, bears ample testimony of her worth:
"MDCCXLVI.
Anna Clarke, uxor Samuelis Pegge
Vicarii hujus parochiæ;
Mulier, si qua alia, sine dolo,
Vitam æternam et beatam fidenter hic sperat;
nec erit frustra."
This event entirely changed Mr. Pegge's destinations; for he now
zealously meditated on some mode of removing himself, without
disadvantage, into his Native County. To effect this, one of two
points was to be carried; either to obtain some piece of preferment,
tenable in its nature with his Kentish Vicarage; or to exchange the
latter for an equivalent; in which last he eventually succeeded
beyond his immediate expectations.
We are now come to a new epoch in the Doctor's life; but there is
an interval of a few years to be accounted for, before he found an
opportunity of effectually removing himself into Derbyshire.
His Wife being dead, his Children young and at school, and himself
reduced to a life of solitude, so ungenial to his temper (though no
man was better qualified to improve his leisure); he found relief by
the kind offer of his valuable Friend, Sir Edward Dering, Bart.
At this moment Sir Edward chose to place his Son[12] under the
care of a private Tutor at home, to qualify him more competently for
the University. Sir Edward's personal knowledge of Mr. Pegge, added
to the Family situation of the latter, mutually induced the former to
offer, and the latter to accept, the proposal of removing from
Godmersham to Surrenden (Sir Edward's mansion-house) to
superintend Mr. Dering's education for a short time; in which
capacity he continued about a year and a half, till Mr. Dering was
admitted of St. John's College, Cambridge, in March 1751.
Sir Edward had no opportunity, by any patronage of his own,
permanently to gratify Mr. Pegge, and to preserve him in the circle of
their common Friends. On the other hand, finding Mr. Pegge's
propensity to a removal so very strong, Sir Edward reluctantly
pursued every possible measure to effect it.
The first vacant living in Derbyshire which offered itself was the
Perpetual Curacy of Brampton, near Chesterfield; a situation
peculiarly eligible in many respects. It became vacant in 1747; and,
if it could have been obtained, would have placed Mr. Pegge in the
centre of his early acquaintance in that County; and, being tenable
with his Kentish living, would not have totally estranged him from his
Friends in the South of England. The patronage of Brampton is in
the Dean of Lincoln, which Dignity was then filled by the Rev. Dr.
Thomas Cheyney; to whom, Mr. Pegge being a stranger, the
application was necessarily to be made in a circuitous manner, and
he was obliged to employ more than a double mediation before his
name could be mentioned to the Dean.
The mode he proposed was through the influence of William the
third Duke of Devonshire; to whom Mr. Pegge was personally known
as a Derbyshire man (though he had so long resided in Kent), having
always paid his respects to his Grace on the public days at
Chatsworth, as often as opportunity served, when on a visit in
Derbyshire. Mr. Pegge did not, however, think himself sufficiently in
the Duke's favour to make a direct address for his Grace's
recommendation to the Dean of Lincoln, though the object so fully
met his wishes in moderation, and in every other point. He had,
therefore, recourse to a friend, the Right Rev. Dr. Fletcher, Bishop of
Dromore, then in England; who, in conjunction with Godfrey
Watkinson, of Brampton Moor, Esq. (the principal resident
Gentleman in the parish of Brampton) solicited, and obtained, his
Grace's interest with the Dean of Lincoln: who, in consequence,
nominated Mr. Pegge to the living.
One point now seemed to be gained towards his re-
transplantation into his native soil, after he had resisted considerable
offers had he continued in Kent; and thus did he think himself
virtually in possession of a living in Derbyshire, which in its nature
was tenable with Godmersham in Kent. Henceforward, then, he no
doubt felt a satisfaction that he should soon be enabled to live in
Derbyshire, and occasionally visit his friends in Kent, instead of
residing in that county, and visiting his friends in Derbyshire.
But, after all this assiduity and anxiety (as if admission and
ejection had pursued him a second time), the result of Mr. Pegge's
expectations was far from answering his then present wishes; for,
when he thought himself secure by the Dean's nomination, and that
nothing was wanting but the Bishop's licence, the Dean's right of
Patronage was controverted by the Parishioners of Brampton, who
brought forward a Nominee of their own.
The ground of this claim, on the part of the Parish, was owing to
an ill-judged indulgence of some former Deans of Lincoln, who had
occasionally permitted the Parishioners to send an Incumbent
directly to the Bishop for his licence, without the intermediate
nomination of the Dean in due form.
These measures were principally fomented by the son of the last
Incumbent, the Rev. Seth Ellis, a man of a reprobate character, and
a disgrace to his profession, who wanted the living, and was
patronised by the Parish. He had a desperate game to play; for he
had not the least chance of obtaining any preferment, as no
individual Patron, who was even superficially acquainted with his
moral character alone, could with decency advance him in the
church. To complete the detail of the fate of this man, whose
interest the deluded part of the mal-contents of the parish so
warmly espoused, he was soon after suspended by the Bishop from
officiating at Brampton[13].
Whatever inducements the Parish might have to support Mr. Ellis
so strenuously we do not say, though they manifestly did not arise
from any pique to one Dean more than to another; and we are
decidedly clear that they were not founded in any aversion to Mr.
Pegge as an individual; for his character was in all points too well
established, and too well known (even to the leading opponents to
the Dean), to admit of the least personal dislike in any respect. So
great, nevertheless, was the acrimony with which the Parishioners
pursued their visionary pretensions to the Patronage, that, not
content with the decision of the Jury (which was highly respectable)
in favour of the Dean, when the right of Patronage was tried in
1748; they had the audacity to carry the cause to an Assize at
Derby, where, on the fullest and most incontestable evidence, a
verdict was given in favour of the Dean, to the confusion and
indelible disgrace of those Parishioners who espoused so bad a
cause, supported by the most undaunted effrontery.
The evidence produced by the Parish went to prove, from an entry
made nearly half a century before in the accompts kept by the
Churchwardens, that the Parishioners, and not the Deans of Lincoln,
had hitherto, on a vacancy, nominated a successor to the Bishop of
the Diocese for his licence, without the intervention of any other
person or party. The Parish accompts were accordingly brought into
court at Derby, wherein there appeared not only a palpable
erasement, but such an one as was detected by a living and credible
witness; for, a Mr. Mower swore that, on a vacancy in the year 1704,
an application was made by the Parish to the Dean of Lincoln in
favour of the Rev. Mr. Littlewood[14].
In corroboration of Mr. Mower's testimony, an article in the Parish
accompts and expenditures of that year was adverted to, and which,
when Mr. Mower saw it, ran thus:
"Paid William Wilcoxon, for going to Lincoln to the Dean
concerning Mr. Littlewood, five shillings."
The Parishioners had before alleged, in proof of their title, that
they had elected Mr. Littlewood; and, to uphold this asseveration,
had clumsily altered the parish accompt-book, and inserted the
words "to Lichfield to the Bishop," in the place of the words "to
Lincoln to the Dean."
Thus their own evidence was turned against the Parishioners; and
not a moment's doubt remained but that the patronage rested with
the Dean of Lincoln.
We have related this affair without a strict adherence to
chronological order as to facts, or to collateral circumstances, for the
sake of preserving the narrative entire, as far as it regards the
contest between the Dean of Lincoln and the Parish of Brampton; for
we believe that this transaction (uninteresting as it may be to the
publick in general) is one of very few instances on record which has
an exact parallel.
The intermediate points of the contest, in which Mr. Pegge was
more peculiarly concerned, and which did not prominently appear to
the world, were interruptions and unpleasant impediments which
arose in the course of this tedious process.
He had been nominated to the Perpetual Curacy of Brampton by
Dr. Cheyney, Dean of Lincoln; was at the sole expence of the suit
respecting the right of Patronage, whereby the verdict was given in
favour of the Dean; and he was actually licensed by the Bishop of
Lichfield. In consequence of this decision and the Bishop's licence,
Mr. Pegge, not suspecting that the contest could go any farther,
attended to qualify at Brampton, on Sunday, August 28, 1748, in the
usual manner; but was repelled by violence from entering the
Church.
In this state matters rested regarding the Patronage of Brampton,
when Dr. Cheyney was unexpectedly transferred from the Deanry of
Lincoln to the Deanry of Winchester, which (we may observe by the
way) he solicited on motives similar to those which actuated Mr.
Pegge at the very moment; for Dr. Cheyney, being a Native of
Winchester, procured an exchange of his Deanry of Lincoln with the
Rev. Dr. William George, Provost of Queen's college, Cambridge, for
whom the Deanry of Winchester was intended by the Minister on the
part of the Crown.
Thus Mr. Pegge's interests and applications were to begin de novo
with the Patron of Brampton; for, his nomination by Dr. Cheyney, in
the then state of things, was of no validity. He fell, however, into
liberal hands; for his activity in the proceedings which had hitherto
taken place respecting the living in question had rendered fresh
advocates unnecessary, as it had secured the unasked favour of Dr.
George, who not long afterwards voluntarily gave him the Rectory of
Whittington, near Chesterfield, in Derbyshire; into which he was
inducted Nov. 11, 1751, and where he resided for upwards of 44
years without interruption[15].
Though Mr. Pegge had relinquished all farther pretensions to the
living of Brampton before the cause came to a decision at Derby, yet
he gave every possible assistance at the trial, by the communication
of various documents, as well as by his personal evidence at the
Assize, to support the claim of the new Nominee, the Rev. John
Bowman, in whose favour the verdict was given, and who afterwards
enjoyed the benefice.
Here then we take leave of this troublesome affair, so nefarious
and unwarrantable on the part of the Parishioners of Brampton; and
from which Patrons of every description may draw their own
inferences.
Mr. Pegge's ecclesiastical prospect in Derbyshire began soon to
brighten; and he ere long obtained the more eligible living of
Whittington. Add to this that, in the course of the dispute concerning
the Patronage of Brampton, he became known to the Hon. and Right
Rev. Frederick (Cornwallis) Bishop of Lichfield and Coventry; who
ever afterwards favoured him not only with his personal regard, but
with his patronage, which extended even beyond the grave, as will
be mentioned hereafter in the order of time.
We must now revert to Mr. Pegge's old Friend Sir Edward Dering,
who, at the moment when Mr. Pegge decidedly took the living of
Whittington, in Derbyshire, began to negotiate with his Grace of
Canterbury (Dr. Herring), the Patron of Godmersham, for an
exchange of that living for something tenable with Whittington.
The Archbishop's answer to this application was highly honourable
to Mr. Pegge: "Why," said his Grace, "will Mr. Pegge leave my
Diocese? If he will continue in Kent, I promise you, Sir Edward, that
I will give him preferment to his satisfaction[16]."
No allurements, however, could prevail; and Mr. Pegge, at all
events, accepted the Rectory of Whittington, leaving every other
pursuit of the kind to contingent circumstances. An exchange was,
nevertheless, very soon afterwards effected, by the interest of Sir
Edward with the Duke of Devonshire, who consented that Mr. Pegge
should take his Grace's Rectory of Brinhill[17] in Lancashire, then
luckily void, the Archbishop at the same time engaging to present
the Duke's Clerk to Godmersham. Mr. Pegge was accordingly
inducted into the Rectory of Brindle, Nov. 23, 1751, in less than a
fortnight after his induction at Whittington[18].
In addition to this favour from the Family of Cavendish, Sir Edward
Dering obtained for Mr. Pegge, almost at the same moment, a scarf
from the Marquis of Hartington (afterwards the fourth Duke of
Devonshire), then called up to the House of Peers, in June 1751, by
the title of Baron Cavendish of Hardwick. Mr. Pegge's appointment is
dated Nov. 18, 1751; and thus, after all his solicitude, he found
himself possessed of two livings and a dignity, honourably and
indulgently conferred, as well as most desirably connected, in the
same year and in the same month; though this latter circumstance
may be attributed to the voluntary lapse of Whittington[19]. After Mr.
Pegge had held the Rectory of Brinhill for a few years, an
opportunity offered, by another obliging acquiescence of the Duke of
Devonshire, to exchange it for the living of Heath (alias Lown), in his
Grace's Patronage, which lies within seven miles of Whittington: a
very commodious measure, as it brought Mr. Pegge's parochial
preferments within a smaller distance of each other. He was
accordingly inducted into the Vicarage of Heath, Oct. 22, 1758,
which he held till his death.
This was the last favour of the kind which Mr. Pegge individually
received from the Dukes of Devonshire; but the Compiler of this little
Memoir regarding his late Father, flatters himself that it can give no
offence to that Noble Family if he takes the opportunity of testifying
a sense of his own personal obligations to William the fourth Duke of
Devonshire, when his Grace was Lord Chamberlain of his Majesty's
Household.
As to Mr. Pegge's other preferments, they shall only be briefly
mentioned in chronological order; but with due regard to his
obligations. In the year 1765 he was presented to the Perpetual
Curacy of Wingerworth, about six miles from. Whittington, by the
Honourable and Reverend James Yorke, then Dean of Lincoln,
afterwards Bishop of Ely, to whom he was but little known but by
name and character. This appendage was rendered the more
acceptable to Mr. Pegge, because the seat of his very respectable
Friend Sir Henry Hunloke, Bart. is in the parish, from whom, and all
the Family, Mr. Pegge ever received great civilities.
We have already observed, that Mr. Pegge became known,
insensibly as it were, to the Honourable and Right Reverend
Frederick (Cornwallis), Bishop of Lichfield, during the contest
respecting the living of Brampton; from whom he afterwards
received more than one favour, and by whom another greater
instance of regard was intended, as will be mentioned hereafter.
Mr. Pegge was first collated by his Lordship to the Prebend of
Bobenhull, in the Church of Lichfield, in 1757; and was afterwards
voluntarily advanced by him to that of Whittington in 1763, which he
possessed at his death[20].
In addition to the Stall at Lichfield, Mr. Pegge enjoyed the Prebend
of Louth, in the Cathedral of Lincoln, to which he had been collated
(in 1772) by his old acquaintance, and Fellow-collegian, the late
Right Reverend John Green, Bishop of that See[21].
This seems to be the proper place to subjoin, that, towards the
close of his life, Mr. Pegge declined a situation for which, in more
early days, he had the greatest predilection, and had taken every
active and modest measure to obtain—a Residentiaryship in the
Church of Lichfield.
Mr. Pegge's wishes tended to this point on laudable, and almost
natural motives, as soon as his interest with the Bishop began to
gain strength; for it would have been a very pleasant interchange, at
that period of life, to have passed a portion of the year at Lichfield.
This expectation, however, could not be brought forward till he was
too far advanced in age to endure with tolerable convenience a
removal from time to time; and therefore, when the offer was
realized, he declined the acceptance.
The case was literally this: While Mr. Pegge's elevation in the
Church of Lichfield rested solely upon Bishop (Frederick) Cornwallis,
it was secure, had a vacancy happened: but his Patron was
translated to Canterbury in 1768, and Mr. Pegge had henceforward
little more than personal knowledge of any of his Grace's Successors
at Lichfield, till the Hon. and Right Reverend James Cornwallis (the
Archbishop's Nephew) was consecrated Bishop of that See in 1781.
On this occasion, to restore the balance in favour of Mr. Pegge,
the Archbishop had the kindness to make an Option of the
Residentiaryship at Lichfield, then possessed by the Rev. Thomas
Seward. It was, nevertheless, several years before even the tender
of this preferment could take place; as his Grace of Canterbury died
in 1783, while Mr. Seward was living.
Options being personal property, Mr. Pegge's interest, on the
demise of the Archbishop, fell into the hands of the Hon. Mrs.
Cornwallis, his Relict and Executrix, who fulfilled his Grace's original
intention in the most friendly manner, on the death of Mr. Seward, in
1790[22].
The little occasional transactions which primarily brought Mr.
Pegge within the notice of Bishop (Frederick) Cornwallis at
Eccleshall-castle led his Lordship to indulge him with a greater share
of personal esteem than has often fallen to the lot of a private
Clergyman so remotely placed from his Diocesan. Mr. Pegge had
attended his Lordship two or three times on affairs of business, as
one of the Parochial Clergy, after which the Bishop did him the
honour to invite him to make an annual visit at Eccleshall-castle as
an Acquaintance. The compliance with this overture was not only
very flattering, but highly gratifying, to Mr. Pegge, who consequently
waited upon his Lordship for a fortnight in the Autumn, during
several years, till the Bishop was translated to the Metropolitical See
of Canterbury in 1768. After this, however, his Grace did not forget
his humble friend, the Rector of Whittington, as will be seen; and
sometimes corresponded with him on indifferent matters.
About the same time that Mr. Pegge paid these visits at Eccleshall-
castle, he adopted an expedient to change the scene, likewise, by a
journey to London (between Easter and Whitsuntide); where, for a
few years, he was entertained by his old Friend and Fellow-collegian
the Rev. Dr. John Taylor, F. S. A. Chancellor of Lincoln, &c. (the
learned Editor of Demosthenes and Lysias), then one of the
Residentiaries of St. Paul's.
After Dr. Taylor's death (1766), the Bishop of Lincoln, Dr. John
Green, another old College-acquaintance, became Mr. Pegge's
London-host for a few years, till Archbishop Cornwallis began to
reside at Lambeth. This event superseded the visits to Bishop Green,
as Mr. Pegge soon afterwards received a very friendly invitation from
his Grace; to whom, from that time, he annually paid his respects at
Lambeth-palace, for a month in the Spring, till the Archbishop's
decease, which took place about Easter 1783.
All these were delectable visits to a man of Mr. Pegge's turn of
mind, whose conversation was adapted to every company, and who
enjoyed the world with greater relish from not living in it every day.
The society with which he intermixed, in such excursions, changed
his ideas, and relieved him from the tædium of a life of much
reading and retirement; as, in the course of these journeys, he often
had opportunities of meeting old Friends, and of making new literary
acquaintance.
On some of these occasions he passed for a week into Kent,
among such of his old Associates as were then living, till the death
of his much-honoured Friend, and former Parishioner, the elder
Thomas Knight, Esq. of Godmersham, in 1781[23]. We ought on no
account to omit the mention of some extra-visits which Mr. Pegge
occasionally made to Bishop Green, at Buckden, to which we are
indebted for the Life of that excellent Prelate Robert Grosseteste,
Bishop of Lincoln;—a work upon which we shall only observe here,
that it is Dr. Pegge's chef-d'œuvre, and merits from the world much
obligation. To these interviews with Bishop Green, we may also
attribute those ample Collections, which Dr. Pegge left among his
MSS. towards a History of the Bishops of Lincoln, and of that
Cathedral in general, &c. &c.
With the decease of Archbishop Cornwallis (1783), Mr. Pegge's
excursions to London terminated. His old familiar Friends, and
principal acquaintance there, were gathered to their fathers; and he
felt that the lot of a long life had fallen upon him, having survived
not only the first, but the second class of his numerous distant
connexions.
While on one of these visits at Lambeth, the late Gustavus
Brander, Esq. F. S. A. who entertained an uncommon partiality for
Mr. Pegge, persuaded him, very much against his inclination, to sit
for a Drawing, from which an octavo Print of him might be engraved
by Basire. The Work went on so slowly, that the Plate was not
finished till 1785, when Mr. Pegge's current age was 81. Being a
private Print, it was at first only intended for, and distributed among,
the particular Friends of Mr. Brander and Mr. Pegge. This Print,
however, now carries with it something of a publication; for a
considerable number of the impressions were dispersed after Mr.
Brander's death, when his Library, &c. were sold by auction; and the
Print is often found prefixed to copies of "The Forme of Cury," a
work which will hereafter be specified among Mr. Pegge's literary
labours[24].
The remainder of Mr. Pegge's life after the year 1783 was, in a
great measure, reduced to a state of quietude; but not without an
extensive correspondence with the world in the line of Antiquarian
researches: for he afterwards contributed largely to the
Archæologia, and the Bibliotheca Topographica Britannica, &c. &c. as
may appear to those who will take the trouble to compare the dates
of his Writings, which will hereafter be enumerated, with the time of
which we are speaking.
The only periodical variation in life, which attended Mr. Pegge after
the Archbishop's death, consisted of Summer visits at Eccleshall-
castle to the present Bishop (James) Cornwallis, who (if we may be
allowed the word) adopted Mr. Pegge as his guest so long as he was
able to undertake such journeys.
We have already seen an instance of his Lordship's kindness in the
case of the intended Residentiaryship; and have, moreover, good
reasons to believe that, had the late Archdeacon of Derby (Dr. Henry
Egerton) died at an earlier stage of Mr. Pegge's life, he would have
succeeded to that dignity.
This part of the Memoir ought not to be dismissed without
observing, to the honour of Mr. Pegge, that, as it was not in his
power to make any individual return (in his life-time) to his Patrons,
the two Bishops of Lichfield of the name of Cornwallis, for their
extended civilities, he directed, by testamentary instructions, that
one hundred volumes out of his Collection of Books should be given
to the Library of the Cathedral of Lichfield[25].
During Mr. Pegge's involuntary retreat from his former associations
with the more remote parts of the Kingdom, he was actively awake
to such objects in which he was implicated nearer home.
Early in the year 1788 material repairs and considerable
alterations became necessary to the Cathedral of Lichfield. A
subscription was accordingly begun by the Members of the Church,
supported by many Lay-gentlemen of the neighbourhood; when Mr.
Pegge, as a Prebendary, not only contributed handsomely, but
projected, and drew up, a circular letter, addressed to the Rev.
Charles Hope, M. A. the Minister of All Saints (the principal) Church
in Derby, recommending the promotion of this public design. The
Letter, being inserted in several Provincial Newspapers, was so well
seconded by Mr. Hope, that it had a due effect upon the Clergy and
Laity of the Diocese in general; for which Mr. Pegge received a
written acknowledgment of thanks from the present Bishop of
Lichfield, dated May 29, 1788.
This year (1788), memorable as a Centenary in the annals of
England, was honourable to the little Parish of Whittington, which
accidentally bore a subordinate local part in the History of the
Revolution; for it was to an inconsiderable public-house there (still
called the Revolution-house) that the Earl of Devonshire, the Earl of
Danby, the Lord Delamere, and the Hon. John D'Arcy, were driven
for shelter, by a sudden shower of rain, from the adjoining common
(Whittington-Moor), where they had met by appointment, disguised
as farmers, to concert measures, unobservedly, for promoting the
succession of King William III. after the abdication of King James II.
[26]
2. Whittington Rectory.
This View was taken also, in 1789, by Mr. Schnebbelie; and the
account of it drawn up in 1793 by Dr. Pegge, then resident in it, at
the advanced age of 88.
"The Parsonage-house at Whittington is a convenient substantial
stone building, and very sufficient for this small benefice. It was, as I
take it, erected by the Rev. Thomas Callice, one of my predecessors;
and, when I had been inducted, I enlarged it, by pulling down the
West end, making a cellar, a kitchen, a brew-house, and a pantry,
with chambers over them. There is a glebe of about 30 acres
belonging to it with a garden large enough for a family, and a small
orchard. The garden is remarkably pleasant in respect to its fine
views to the North, East, and South, with the Church to the West.
There is a fair prospect of Chesterfield Church, distant about two
miles and a half; and of Bolsover Castle to the West; and, on the
whole, this Rectorial house may be esteemed a very delightful
habitation.
S. Pegge."
In this Parsonage the Editor of the present Volume, accompanied
by his late excellent Friend Mr. Gough, spent many happy hours with
the worthy Rector for several successive years, and derived equal
information and pleasure from his instructive conversation.
Whittington Rectory.
Gent. Mag. Sep. 1810. Pl. II, p. 217.
Schnebbelie del.
1. Mr. Deakin's: Flag, blue, with orange fringe, on it the figure of Liberty, the
motto, "The Protestant Religion, and the Liberties of England, we will
maintain."
2. Mr. Bluett's: Flag, blue, fringed with orange, motto, "Libertas; quæ sera,
tamen respexit inertem." Underneath the figure of Liberty crowning
Britannia with a wreath of laurels, who is represented sitting on a Lion,
at her feet the Cornucopiæ of Plenty; at the top next the pole, a Castle,
emblematical of the house where the club is kept; on the lower side of
the flag Liberty holding a Cap and resting on the Cavendish arms.
3. Mr. Ostliff's: Flag, broad blue and orange stripe, with orange fringe; in the
middle the Cavendish arms; motto as No. 1.
4. Mrs. Barber's: Flag, garter blue and orange quarter'd, with white fringe,
mottoes, "Liberty secured." "The Glorious Revolution 1688."
5. Mr. Valentine Wilkinson's: Flag, blue with orange fringe, in the middle the
figure of Liberty; motto as No. 1.
6. Mr. Stubbs: Flag, blue with orange fringe, motto, "Liberty, Property, Trade,
Manufactures;" at the top a head of King William crowned with laurel, in
the middle in a large oval, "Revolution 1688." On one side the Cap of
Liberty, on the other the figure of Britannia; on the opposite side the flag
of the Devonshire arms.
Mrs. Ollerenshaw's: Flag, blue with orange fringe; motto as No. 1. on both
sides.
Mr. Marsingale's: Flag, blue with orange fringe; at the top the motto, "In
Memory of the Glorious Assertors of British Freedom 1688," beneath, the
figure of Liberty leaning on a shield, on which is inscribed, "Revolted
from Tyranny at Whittington 1688;" and having in her hand a scroll with
the words "Bill of Rights" underneath a head of King William the Third;
on the other side the flag, the motto, "The Glorious Revolter from
Tyranny 1688" underneath the Devonshire arms; at the bottom the
following inscription, "Willielmus Dux Devon. Bonorum Principum Fidelis
Subditus; Inimicus et Invisus Tyrannis."
The Members of the Clubs were estimated 2000
persons, each having a white wand in his hand
with blue and orange tops and favours, with
the Revolution stamped upon them.
Attendants on horseback.
Attendants on horseback.
Attendants on horseback.
Attendants on horseback.
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.
ebookname.com