1/i unclassified lilllllllllll bethesda md r …naval medical research institute 500".u5a2. 13...
TRANSCRIPT
AD-A122 551 COMPUTER-ASSISTED SYSTEM FOR DIGITAL DATA ACQUISITION 1/IOF RESPIRATORY FUNC.. (U) NAVAL MEDICAL RESEARCH INST
BETHESDA MD R P LAYTON ET AL. APR 82 NMRI-82-2UNCLASSIFIED F/G 6/5 NLlilllllllllll
IIIIIIIIIIIIIIEIEEIIIIIIIEEE
I/I////II/E//
liilis 'Lo
4MICROCOPY RESOLUTION4 TEST CHARTNATIONALJ BUREAU OF STAN4DARDS-1963-A
. ~ .' .. ..
MRp.~'
I ~ .-- ,
-- - 17 7 , - , ,.
jA
4 ckowedant
Nava Meia eerhadDveomnomnsWr
UntNo 099P'-.03 Teoinosan serin
cotie herein, ar h rvteoe ftewrtr n rno ob ostuda fiia rrfetngteveso
N. aval fohedilrsarc assa nd Dlpeto C.Gans for
containe hrering tre theusriat.nso h rtr n r
UNCLASSIFIEDSECURITY CLASSIFICATION OF THIS PAGE MSI&M D06 ftuem0_______________
REPORT DOCUMENTATION4 PAGE .zvrom opxuoyr1. REPORT "NMUER 2GOTACCESSION NO ISRCIP1IEMTS CATALOG NUMBER1
82-2
4. TITLE (mod Subhite) L. TYPE OF REPORT G PERfIOD COVERED
COMNPUTER-ASSISTED SYSTEM FOR DIGITAL DATA MEDICAL RESEARCH PROGRESSACQUISITION OF RESPIRATORY FUNCTION TESTS REPORT,______Final__
AND ANALYSIS OF ISOVOLUME RESISTANCE S. PURFORMINGO DOw REZPORT NGMER
7. AU)THOR(*) &. CONTRACT OR GRANT IOU0990CI
R.P. Layton, P.11. Catron, and S.H. Prince
S. PERFORMING ORGANIZATION NAME AMC ADDRSS 10. PROGRAM ELEMENT PROECT. TASKAREA A WONRK UNIT Nt=ER
Naval Medical Research Institute 500".u5a2. 13Bethesda, Maryland 2081.4 *umat ft6* 2 C3
11. CONTROLLING OFFICE NAME AND ADDRESS 12. REPORT OATS
April 1982Naval Medical Research & Development Command Is. NUNUERf P0 EBethesda. Mryland 20814
14. MONITORING AGNYNAME a AODRESS(If diffeel &GIN COR.a&*# Ofiep) IS. SECURITY CLASS. (of &We ,.peee
Bureau of Medicine & Surgery UNCLASSIFIEDDepartment of the Navy fk IAIN01"RINWashington, DC 20372 Ia U%
IS. DISTRIBUTION STATEMENT (of etle RePWc)
APPROVED FOR PUBLIC RELEASE AND SALE. DISTRIBUTION UJNLIMITED.
17. OISTRISUTION STATEMENT (of the abactW tom Stoc ite d.ifferent ftes ROMa
1S. SUPPLEMENTARY NOTES
MINIz 13901?. APRIL 1982. 8099.
It. K EY WORDS (Cetuue an tevoe.e fie. fiaeeety am I*.tIr by' bleek Raa)
pulmonary function, computer, isovolume resistance, human, airways
omputerized methods for collection and transfer of data from pulmonaryfunction tests and for analysis of isovolume resistance data are described.Detailed user instructions are provided for the programs, which are writtenfor a desktop computer.
DO 1473 CDITION oF I NOV5 Is is 0OLETE NLSSFES/N 0102-L-014-6601 i UNCLASSI--OWAM FIeDWmo
TABLE OF CONTENTS
Page Number
Acknowledgments ......... ....................... on back of front page
Abstract ........... ................................. I
I. Introduction ............ .......................... 1
II. Data Acquisition and Transfer ........ .................. 3
A. Program "NDATA .......... ....................... 31. Introduction ....... ....................... 32. User Instructions ......... .................... 6
B. Program "PDPtfr" ............. .................... 111. Introduction .......... ...................... 112. User Instructions ..... .................... 153. User Instructions for PDP Program to be used with
"PDPtfr".. ........................ 16
C. Program "Nictfr" User Instructions ...... ............. 17
D. Program "ERASE" User Instructions .... .............. ... 18
III. Isovolume Resistance .......... ...................... 19
A. Program "ISOR" ....................... 191. Introduction .......... ...................... 192. User Instructions ..... .................... 273. User Instructions for PDP Program to be used with
SOtfr" . . .36
B. Program "ISOtfr" ............ .................... 371. Introduction ....... ....................... 372. User Instructions ...... ..................... 39
C. Program "ISORED ................. .. ....... 401. Introduction ................... 402. User Instructions ................... . 41
List of Figures
Fig. 1. Flowchart for program"NDATA" . . . . . . . . . . . . 4Fig. 2. Flow chart for program "PDPtfr" . . . . ........... 13Fig. 3. Typical transducer signals for isovolume resistance
measurements . . . . . . 0 * , , . . . . . : ...... . 20Fig. 4. Flow chart for program " 1" . . . .... .. . . 21Fig. 5. Flow chart for program "TSOtfr" . . . ..... . . . 38
K
t List of Appendices
Page Number
Appendix 1. "NDATA"a. Equipment List ....................... 43b. Program Listing ......................... 44c. Variable Assignments ........ .................... 49d. Details of Header and Time String Variables .. ........ . 50
Appendix 2. "PDPtfr"a. Program Listing............ ...... . ............ 51b. Listing for PDP Program "LFSRECTB"............... 53
Appendix 3. "Nictfr"a. Equipment List ........ ....................... .... 55b. Program Listing ......... ...................... .. 56
Appendix 4. "ERASE" Program Listing .......... ....... 57
Appendix 5. "ISOR"a. Equipment List ........ ....................... .... 58b. Program Listing ......... ...................... .. 59c. Variable Assignments ....... .................... .. 67
Appendix 6. "ISOtfr"a. Program Listing.. . ......... ... ........... .. 69b. Listing for PDP Program "LFSRC21B" .............. 71
Appendix 7. "ISO1FD"a. Equipment List ........ ....................... ... 73b. Program Listing ......... ...................... .. 74
Appendix 8. Identification of Files of Program Tape .. ......... ... 75
*ooesslan ForXTID OawlD'.TO TAOlkaaiuiued 0tluslemetl
Diatwibutlmr/
£vsabIlIty Cod s
lot 0000lal
ii
OTIS
I. Introduction
The computer programs described in this report were developed to improve
the speed and accuracy with which pulmonary function measurements can be made.
Two main systems are discussed. The first makes use of a digital storage
oscilloscope to acquire the output signals of transducers on a body
plethysmograph. These signals are used to obtain pressure-volume curves,
flow-volume loops, and FRC determinations. Multiple measurements can be made
with the oscilloscope only if data previously acquired are transferred to a
permanent storage medium. This function is performed by a desktop computer
which uses the program "NDATA," (programs are described in section II) to
record the data onto magnetic tape. Later, when sufficient information has
been collected, the data are transferred to a computer system which has the
large memory capacity, high computational speed, and sophisticated peripheral
devices needed to properly perform the analysis. The program "PDPtfr" directs
this second data transmission. An experiment in which flow-volume loops were
recorded and subsequently analyzed using this system has been reported
previously (1). Details also are given for two additional programs: "Nictfr"
and "ERASE." The former allows data previously recorded to be displayed again
on the Nicolet oscilloscope; the latter completely erases program or data tapes
whose contents are no longer needed and thus permits them to be reused.
The second system measures isovolume resistance. This determination
cannot be made using the digital oscilloscope since three signals (pressure,
volume, and flow) must be recorded simultaneously. The traces, which are put
on a three-channel strip chart recorder, are analyzed using the desktop
computer, its digitizer, and program "ISOR" (described in section III). The
computer-assisted system for handling isovolume resistance data greatly
increases the speed and accuracy with which this measurement can be made when
|, 1
I
compared to the standard method of measuring distances on the chart paper with
a ruler and calculating values by hand.
In the following sections of this report are given detailed user
Instructions for all the programs required for digital data acquisition and
transfer, and for analysis of £sovolue resistance data. Proram listns,
variable assignment lists, and required equipment are given in the appendices.
The programs for the desktop computer are written in HPL, a language developed
by Hewlett-Packard for its 9825 series computers. The remaining software is
written in FORTRAN IV for Digital Equipment Corporation PDP-11/34 and PDP-11/70
computers using the RSX-11M operating system.
2
00 J_
It. Data Acquisition .and Transfer
A. Program "DA"
1. 'Introduction
The program "NDATA" is used to transfer data stored in a Nicolet
digital oscilloscope (model 2090) to the magnetic tape cassette of the desktop
computer. The transfer is effected using an IEEE-488 interface bus between the
two instruments. The program is written for a Hewlett-Packard 9825 computer
with an external printer, a real-time clock, and the appropriate ROM's (see
Appendix 1). Each cassette can store up to 32 data transfers from the Nicolet.
The system is designed to acquire and store data with as little
operator interaction as possible. The interaction that is required is
accomplished by the use of step-by-step prompts on the LED alphanumeric display
of the computer. User instructions, which follow, describe in detail how to
run the program. A flow chart is show in Fig. 1. Complete program and
variable assignment lists are provided in Appendix 1.
When the program is run, "YES" is assigned to special function key
fO; "NO" is assigned to key f6" Before any data can be recorded the cassette
first must be "marked" into files. It is advisable to use the tape marking
portion of program "UDATA" to prepare a number of tapes before an experiment
instead of waiting until the last minute. Up to 32 data transfers from the
Nicolet can be stored on a single cassette; however, once some data Is stored
on a tape and then the program subsequently is stopped or the tape is remved,
no further data can be transferred to that particular tape. This feature is
designed to prevent loss of data by recording new data over old.
Before it is recorded on tape, each data transfer has attached to
it a descriptive header, a portion of which is common to all files on a given
tape and a segment which is unique to each transfer. The following items are
f 3
"#NDATA"t
Checm*Tape
Yet N
No TIPOOK, TAMPNoTape yesHv- 1 4Y
-
Fig.~~Va 1.Fomhetfrpora NAA
InputHMAI
requested by the program and make up the fixed part of the header: subject
identification number, subject age, code number for subject sex, code number
for subject race, subject height, subject weight, barometric pressure, room
temperature, and a comment line of up to 47 characters. The unique portion of
the header is entered just before each transfer of data from the Nicolet. This
section consists of an experimental type number (1 digit), a four-character
(alphanumeric) record type code, and an event time. The first two items are
chosen by the user to identify the experiment; the event time defaults to a
value of "1 -l" until a specific time is entered. This value can be the tine
at which some treatment or procedure important to the experiment occurs.
Additionally, the time (month:day:hour:mln:sec format) at which a transfer
occurs is read from the computer clock and recorded as part of the header.
5
r
2. User Instructions
1. Insert: Tape cassette with program recorded
2. Press: ERASEType : aPress: EXECUTE
3. Press: LOAD
Type : 1Press: EXECUTE
4. Wait for end of line mark (I-) to be displayed.
5. Press: RUN
6. When "REMOVE PROGRAM CASSETTE" is displayed;a. Remove tapeb. Press: CONTINUE
7. When "Do you want to mark tapes?" is displayed;a. If no,
1) Press "NO" (key f6)2) Go to step 10
b. If yes,1) Press "YES" (key f0 )2) Go to step 8
8. When "Number of tapes to be marked?" is displayed;a. Type: number of tapesb. Press: CONTINUE
9. When "INSERT TAPE CASSETTE" is displayed;a. Insert blank unmarked tapeb. Press: CONTINUEc. If "Tape is not blank--use new tape" is displayed;
1) Remove current tape2) Replace with blank unmarked tape3) Press: CONTINUE
d. If "INSERT TAPE CASSETTE" is displayed again, either tape is notproperly seated in tape drive or no tape is present;1) Properly insert tape2) Press: CONTINUE
e. If "CASSETTE IS WRITE PROTECTED" is displayed;1) Remove cassette2) Slide tab on cassette to "RECORD" position3) R-insert cassette4) Press: CONTINUE
f. If "SYSTEM MALFUNCTION**GET HELPI" is displayed;1) Error number (ern) and error line (erl) are printed on built-in
printer2) A serious software or hardware problem exists and must be
corrected3) Once problem is solved, start over at step 1
6
g. If "MAMKING CASSETTE" is displayed;1) Tape is being properly marked2) Program will return to step 9 until the number of tapes specified
in step 8 are marked3) When last cassette is marked, program will proceed to step 10
10. When "3-digit Subject number - ?" is displayed;a. ype: number wanted (maximum of three digits allowed)b. Press: CONTINUE
11. When "2-digit Subject age - ?" is displayed;a. Type: age (maximum of two digits)b. Press: CONTINUE
12. When "Sex code (1-M, 2-F) - ?" is displayed;a. Type: number wantedb. Press: CONTINUE
13. When "l-digit race code - ?" is displayed;a. Type: number wanted (maximum of one digit)b. Press: CONTINUE
14. When "2-digit Ht. in inches - ?" is displayed;a. Type: number wanted for heightb. Press: CONTINUE
15. When "3-digit Wt. in pounds - ?" is displayed;a. Type: number wanted for weightb. Press: CONTINUE
16. When "Enter Barometric Pressure (im Hg)" is displayed;a. Type: number for pressure in mm of mercuryb. Press: CONTINUE
17. When "2-digit Room Temperature - V" is disalayedSa. Type: number for temperature (Either C or F can be used since this
number is not used for any computations)b. Press: CONTINUE
18. When "Enter heading line" is displayed;a. Type: up to 47 charactersb. Press: CONTINUE
19. When "Do you want to change heading?" is displayed;a. If yes,
1) Press: YES2) Go to step 10
b. If no,1) Press: NO2) Go to step 20
7
20. When "Clock reads: <time>" is displayed;a. Time is displayed as voath:day:hour:min:secb. Press: CONTINUE
21. When "Do you want to reset clock?" is displayed;a. If yes,
1) Press: YES2) Go to step 22
b. If no,1) Press: NO2) Go to step 23
22. "Enter time as two-digit number" is displayed for three seconds:a. When "Month?" is displayed;
1) Type: 2-digit month number2) Press: CONTINUE
b. When "Day?" is displayed;1) Type: 2-digit day number2) Press: CONTINUE
c. When "Hour?" is displayed;1) Type: 2-digit hour using 24 hour clock2) Press: CONTINUE
d. When "Minute?" is displayed;1) Type: 2-digit minute2) Press: CONTINUE
e. When "Second?" is displayed;1) Type: 2-digit second2) Press: CONTINUE
f. As clock is internally reset, "Resetting Clock (Be patientl)" isdisplayed. This process may take two minutes.
g. "CLOCK NOW READS: <time>" is displayed;Press: CONTINUE
h. When "DO YOU WANT TO RESET CLOCK?" is displayed;1) If yes,
a) Press: YESb) Go to step 22
2) If no,a) Press: NOb) Go to step 23
23. When "ID number of first data tape - ?" is displayed;a. Type: number to be assigned to first tape (N)b. Press: CONTINUE
24. When "INSERT MARKED TAPE # <N>" is displayed;a. Insert tape on which data is to be recorded (Note: tape must be
previously marked but cannot have any data recorded on it).b. Press: CONTINUEc. If "Tape not marked--use marked tape" is displayed;
1) Remove tape2) Insert a tape which has been marked
8
3) Press: CONTINUE4) Go to step 23
d. If "Tape not blank--use new tape" is displayed;1) Remove tape2) Insert a tape on which no data has been previously recorded3) Press: CONTINUE4) Go to step 23
e. If "SYSTEM MALFUNCTION**GET HELPI" is displayed;1) A serious hardware or software problem exists which must be
corrected2) Program can be started without re-entering header by the following
procedure:a) Type: cont 37b) Press: EXECUTE
25. When "l-digit experimental type # = ?" is displayed;a. Type: number to identify type of experiment for which this data
has been recordedb. Press: CONTINUE
26. When "4-character record type code - "is displayed;a. Type: 4 characters to identify the type of respiratory
maneuver for which this data was takenb. Press: CONTINUE
27. When "Do you have event time yet?" is displayed;a. If yes,
1) Press: YES2) When "4-digit event time - ?" is displayed;
a) Type: time wanted in 24-hour clock notationb) Press: CONTINUE
3) Go to step 28b. If no,
1) Press: NO2) Go to step 28
28. When "Do you want to change data?" is displayed;a. If yes,
1) Press: YES2) Go to step 25
b. If no,1) Press: NO2) Go to step 29
29. When "Hit CONTINUE to read data" is displayed;a. Wait until data wanted is stored in Nicolet oscilloscopeb. Press: CONTINUEc. During transfer, "Data is being recorded" is displayedd. If fewer then 32 data transfers have ben recorded on the current
tape, so to step 25a. If 32 data transfers have been recorded, tape Is full; go to step 30
30. ["REWINDING TAPE CASSETTE" is displayed.]
-- __9
31. When tape has been removed;a. N is incremented by 1b. Go to step 24
32. To stop program at any time;a. Press: STOPb. Press: REWINDC. When tape stops rewinding, remove itd. Program is finished
10
B. Program "PDptfr"
1. Introduction
The limited memory sie sad cumputational speed of the HP 9825 desktop
computer make it unsuitable for analysis of the large volume of data which
rapidly can be accmAlated with program "IDATA." Various analysis routines
have been successfully developed for the PDP-11 series computers available at
this facility (1). Thus, once the HP 9825 system has performed its job as a
portable data acquisition device it must be able to transfer the data stored on
its tape cassettes to the larger computer. The software to accomplish this
task consists of program "PDPtfr" for the UP 9825 and program '"FSRECIB" for
the PDP-11/34 computer. User instructions are given in the next section.
Program listings appear in Appendix 2.
The PDP-11/34 must be equipped with a General Instruments GPIB-11
interface. This hardware is connected to the UP-IB interface of the HP-9825
which enables the two computers to communicate using the hand-shake conventions
of the IEEE-488 standard. The program listed in Appendix 2 for the PDP
requires the RSX-11M operating system with the addition of the GPIB driver
supplied by General Instruments.
Once the data transfer has started, it is automatic and only requires
the operator to remove and insert data tapes when the appropriate prompts are
displayed on the UP 9825. Since the data from a single experiment may fill
several tapes, the user must enter the number of tapes that are to be stored in
a single data file in the PDP computer. The tapes themselves need not be
completely full for the transfer to proceed properly. Each file stored on the
larger system is organixed into groups of three records. All three are written
onto the PDI disk in unformatted binary form just as they are received. The
first record contains parameters describing the data and is Identical to the
11
/
- - - -. - - - -------------
header detailed in Appendix 1. Similarly, the second record contains the time
at which the data was acquired and has the format of the time variable
explained in Appendix 1. The third record contains the actual data as
originally transmitted by the Nicolet oscilloscope. It should be noted that
the binary data are byte-reversed relative to the standard PDP-11/34 word and
must be inverted before any analysis programs can be run. once all the data
tapes that constitute one file have been transcribed to the disk of the
PDP-ll/34, both programs end. To transfer another file, the programs must be
started over.
12
Fig. 2. Flow chart for program "PDPtfr"
"PDPttr"
START
\*FTAES
J-1 trki--I
- ISET TAPE
N=L
N 13 E r
L-L+I L<32?
NO
YESO
14
2. User Instructions
1. Insert program tapePress: LOADType: 2Press: EXECUTE
2. When end of line (H) mark is displayed,Press: RUN
3. When "Remove Program Tape" is displayed;a. Remove tapeb. Press: CONTINUE
4. When "Start PDP computer program" is displayed;a. Start programb. Press: CONTINUE
5. When "Press CONTINUE to start transfer" is displayed,Press: CONTINUE
6. When "Enter # of cassettes to be read" is displayed;a. Type: number of cassettes whose data are to be stored in a single
data file on the PDP computer.b. Press: CONTINUE
7. When "ID number of first cassette - "is displayed;-' a. Type: number (This Is used for operator prompts only)
b. Press: CONTINUE
8. When "INSERT TAPE # <N>" is displayed;a. Insert tape with ID INb. Press: CONTINUE
9. "File being transferred # <n>" is displayed (The number ni is incrementedas all the files on the tape are automatically transferred.)
10. "REWINDING TAPE" is displayed after last file on a tape has beentransferred.
11. Have the number of tapes specified in step 6 been transferred?a. If no,
1) N is incremented by 12) Go to step 8
b. If yes,1) End-of-file character is sent to PDP computer2) "DATA TRANSFER COMPLETED" is displayed
____ 15__
3. User Instructions for PDP Program to be Used with "PDPtfr"
It is assumed that the operator has properly logged onto the PDP computer
and that the transfer program, named "LFSRECIB," is accessible to him.
1. On the PDP computer terminal;Type: RUN LFSRECIBPress: RETURN
2. When "DATA FILE NAME [NAME.EXT]:" is displayed;a. Type: name wanted for PDP data fileb. Press: RETURN
3. [PDP program is now ready for transfer to start.]
4. When data transfer is completed, "STOP-TTnn" is displayed, where nn isthe number of the terminal being used.
16•i + f
C. Program "Nictfr" User Instructions
This program, called "Hctfr," allows the user to transumit data which has
been stored on a cassette back to the Nicolet oscilloscope for display.
Appendix 3 contains the program listing.
1. Insert: Tape cassette with program
2. Press: ERASEType: aPress: EXECUTE
3. Press: LOADType: 3Press: EXECUTE
4. Wait for end of line mark (1-) to be displayed.
S. Press: REWINDRemove: program tapeInsert: data tapePress: RUN
6. When "Enter number of data dump wanted" is displayed;a. Type: number (between 1 and 32, inclusive)b. Press: CONTINUE
7. Data is displayed on Nicolet screen.Header is printed on external printer.Go to step 6 for another transfer.(Press: STOP to end program)
17
OMNI"I Il
D. Program "ERASE" User Instructions
Program "ERASE" can be used to erase completely any data or program tape
whose contents are no longer wanted. The only equipment needed is a
Hewlett-Packard 9825 computer. Appendix 4 contains the program listing.
1. Insert: tape cassette with program
2. Press: ERASEType: aPress: EXECUTE
3. Press: LOADType: 4Press: EXECUTE
4. Wait for end of line mark (i-) to be displayed.
5. Press: RUN
6. When "Remove Program Tape" is displayed;a. Remove tapeb. Press: CONTINUE
7. When "Insert tape to be erased" is displayed;a. Slide tab on tape cassette to "RECORD" position.b. Insert: tapec. Press: CONTINUEd. If "***TAPE IS BEING ERASED**" is displayed;
1) Program is functioning2) When tape is erased, go to step 7
e. If "ERROR OCCURRED" is displayed;1) rom and ern values are printed2) Problem must be corrected3) Start over with step 5
18
Ar1
III. Isovolume Resistance
A. Program "SO"
1. Introduction
Program "ISOR" computes the value of isovolume resistance from
volume, pressure, and flow data obtained for individual breaths during quiet
breathing. Signals from the three types of transducers are recorded
concurrently on a three-channel recorder so that each trace has the same time
base. Two points of equal volume are selected on the volume trace for a single
breath. The two pressure and flow values corresponding in time to these
volumes are taken from the appropriate curves, as depicted in Fig. 3. The
isovolume resistance is computed from the expression: RIS0 - F1 F 2
The program is written for a Hewlett-Packard 9825 desktop
computer with an external printer, a digitizer, and the appropriate ROM's
(read-only-memory modules). A flow chart is given in Fig. 4; a program
listing, variable allocations, and required equipment list are provided in
Appendix 5.
When the program is run, "ISOR" automatically assigns "YES" to
special function key f0 and "NO" to key f6 " These keys should be used as
responses to the appropriate operator prompts that are displayed on the
internal LED display of the computer. Before any analyzed results can be
stored on a cassette, the tape must be "marked" into files with the marking
routine of this program. Up to 400 groups of data (with a maximam of 10
breaths in each group) can be stored on each of the two tracks of a single
cassette. The same tape can be used repeatedly for different analysis
sessions. Unlike "NDATA," program "11SOR" finds the first available empty file
on which to record data even if the tape has been removed from the computer or
the program has been stopped and subsequently restarted.
L 19
" * . --- * - - -*-- - *..--..---".-- ----
V, V2
P1P2
C/)C,,uLJcc
F2
U-
aF,
ttz t 2 TIME
Fig. 3. Typical transduLd, signals for isovolume resistance measurement. V1 andV2 are points of uqual volume which occur at times tj and t2 , respectively.
Pl is the value of transpulmonary pressure at time ti and Fl thecorresponding flow. Similarly, P2 and F2 represent the pressure and flowmeasurements at time t2.
20
Fig. 4. Flow chart f or program "ISOR"
yesMark Tapes? Nark Tapes
No
YRecord
Ye
In ut Oriiae aW K
\Time/
No
No Recalibrate? No It Breath? CmTre Proton
yet Yes
\ForIVFio~WCaI.
R e p e a t
Y "
I o
FParI
21
-14
Reea Ye
Re p di
yes
Me
Scage Yeas
Valuaes?
No
Int DamieSaeFact
Dalaue.
22
I _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
~-ior
DWdw 2pf"SweDate Pon.
RweW Van
R = I&PII& Fj
It"m YM
Axw? set Diodow
No
yes momareadw?
No
-tm-
onputs NowMam6 Min R
Prhw Vahm
ltwwd V40 TOW No cArrmt
ON OK? P,
No y4m
yes Mwe ReewdNOWO
t4o
STOP
23
r
The analyzed data is organized as follows: A maxim- of 10
separate breaths may be analyzed for a given single period of data collection;
the isovolume resistances calculated for these breaths are printed and also
stored on tape as a group. Before being recorded, the data for a one-hour
group have appended to them a header which is identical in format to that
previously described for "NDATA" (See Appendix 1). The individual terms are
also similar, with the following exceptions:
a. The experimental type digit is called the C/E code
(control/experiment) in the printout.
b. The four-character record type code is automatically chosen
to be "ISOR."
c. The event time section of the header is not used; it is
filled with four blank spaces.
d. The actual time at which the data was originally recorded
must be manually entered for each hour group.
Each file recorded has the format: 80-character header; 14-character date and
time; hour number (data collection period number); 4-digit time in 24-hour
clock notation; 10 values of isovolume resistance corresponding to each of the
10 breaths analyzed. If fewer than 10 breaths are measured, the unused
variables are assigned the value zero.
The HP 9864A digitizer is easy to use, but a few precautionary
comments are in order. This device consists of a flat bed, to which the chart
paper must be firmly taped, and a cursor with cross-hairs to electronically
select the point of interest on the tracing. Although the cursor has four
buttons, only two need concern the user of this program. The "0" is pressed to
denote the origin of an axes pair; "S" is used for all other points. The red
24
sample light on the digitizer cursor indicates when the origin has been
properly set. Once the origin is set, the cursor may be moved anywhere on the
digitizer bed, but it must not be lifted from the surface until the origin is
to be reset. If the cursor is moved improperly, the digitizer beeps and the
sample light goes out to indicate the origin has been lost. The origin must be
re-established before any further entries can be made. Note that the exact
positioning of the origin is not critical since all computations are performed
by taking the difference between various points. The origin merely provides a
point of reference for the digitizer; however, to facilitate the determination
of the X-axis direction, it should be placed on one of the horizontal (i.e.,
time axis) lines of the chart paper. Since the paper most likely is not
perfectly aligned on the digitizer bed, the program must measure the angle of
rotation between the axes of the chart record and the internal, fixed coordinate
system of the digitizer. Each time the origin is set, "ISOR" determines this
angle by instructing the operator to read five points along the X-axis. The
actual values of these points are immaterial and they need not be equally
spaced. The requirements are:
a. The points should span a significant distance on the chart
record to make possible on accurate determination of the
angle.
b. The line chosen for these five points must parallel the time
axis of the chart record and must contain the point chosen as
the origin.
c. The origin itself must not be used as one of these five
points or an error will occur that aborts the program.
In order to calculate a scale factor, two flow and two pressure
calibration signals must be recorded. When the program instructs the user to
25
OrF
read the flow calibration levels, it assumes the first point corresponds to a
condition of zero flow and the second to a level that spans5 the range of
Interest. The pressure signals are treated similarly.
Once the calibration is completed, the calibration chart record
is removed, the data tracing is placed on the digitizer, and the origin and
axes are again fixed. Data from several breaths can now be read. It is not
necessary to reset the origin unless the chart paper is moved or replaced or
the cursor is lifted off the digitizer surface.
The only remaining information required by the program to
calculate isovolume resistance are the full-scale and scale-multiplier settings
of the chart recorder amplifiers. The program prompts the operator for these
values in a way that permits the pressure and flow channels to have different
settings and allows these settings to be varied between calibration and data
runs.
26
2. User Instructions
1. Insert: Tape cassette with programa. Press: ERASEb. Type: ac. Press: EXECUTE
2. Press: LOADType: 5Press: EXECUTE
3. Wait for end of line mark (-) to be displayed
4. Press: RUN
5. When "Remove Program Tape" is displayed;a. Remove tapeb. Press: CONTINUE
6. When "Do you want to mark tapes?" is displayed;a. If yes,
1) Press: YES (key f0)2) Go to step 6.c.
b. If no,1) Press: No (key f6)2) Go to step 7
c. When "Number of tapes to be marked?" is displayed;1) Type: number2) Press: CONTINUE
d. When "INSERT TAPE CASSETTE" is displayed;1) Insert: blank tape2) Press: CONTINUE
e. If "Tape is not blank--use new tape" is displayed;1) Remove tape2) Insert: new blank tape3) Press: CONTINUE4) Go to step 6.e.
f. Go to "HELP"1) If a problem was found by "HELP" go to step 6.d.2) If no problem was found by "HELP" go to step 6.g.
g. When 'ARKING CASSETTE" is displayed, tape is being marked.h. Programs returns to step 6.d. until the number of tapes specified in
6.c. are marked. When all are marked it proceeds to step 7.
7. When "TURN ON DIGITIZER! t" is displayed;a. Turn on digitizerb. Press: CONTINUE
8. When "Results to be recorded on tape?" is displayed;a. If yes,
1) Press: YES (key f0)2) Go to stop 9
27
b. If no,1) Press: NO2) Go to step 10
9. When "Track to be recorded?" is displayed;a. Type: 0 or 1 to choose tape track to be usedb. Press: CONTINUE
10. When "3-digit subject number = ?" is displayed;a. Type: numberb. Press: CONTINUE
11. When "2-digit subject age - ?" is displayed;a. Type: numberb. Press : CONTINUE
12. When "Sex Code (l-M, 2-F) - ?" is displayed;a. Type: number (single digit)b. Press: CONTINUE
13. When "l-digit race code = ?" is displayed;a. Type: numberb. Press: CONTINUE
14. When "2-digit Ht. in inches - ?" is displayed;a. Type: number for heightb. Press: CONTINUE
15. When "3-digit Wt. in pounds - ?" is displayed;a. Type: number for weightb. Press: CONTINUE
16. When "l-digit experimental type - ?" is displayed;a. Type: numberb. Press: CONTINUE
17. When "Enter Barometric pressure (mn Rg)" is displayed;a. Type: number for pressure in millimeters of mercuryb. Press: CONTINUE
18. When "2-digit room temperature is displayed;a. Type: number (may be in 0C or 0F)b. Press: CONTINUE
19. When "Enter heading line" is displayed;a. Type: alphanumeric header (47 characters maximum)b. Press: CONTINUE
20. When "Do you want to change heading?" is displayed;a. If yes,
1) Press: YES2) Go to step 10
b. If no,1) Press: NO2) Go to step 21
21. When "How many hours of data?" is displayed;a. Type: number (10 breaths can be analyzed for each hour group)b. Press% CONTINUE
22. When "'Number of first hour of data = ?" is displayed;a. Type: numberb. Press: CONTINUE
23. Is data to be put on tape?a. If you answered NO in step 8, go to step 24.b. If you answered YES in step 8,
1) Go to "HELP"; return to next line.2) If "HELP" found a problem go to step 23.b.3) If "HELP" found no problem go to step 24.
24. When "ENTER TIME AS 2-DIGIT NUMBER" is displayed;a. Wait three seconds, enter time of original data as requested in the
following lines:b. When "Month?" is displayed;
1) Type: 2-digit month number of original data2) Press: CONTINUE
c. When "Day?" is displayed;1) Type: 2-digit day2) Press: CONTINUE
d. When "Hour?" is displayed;1) Type: 2-digit hour (24-hour clock notation)2) Press: CONTINUE
e. When "Minute?" is displayed;1) Type: 2-digit minute2) Press: CONTINUE
f. When "Second?" is displayed;1) Type: 2-digit second2) Press: CONTINUE
g. When "Time entered: <time>" is displayed;Press: CONTINUE to proceed
h. When "Re-enter time?" is displayed;1) If yes,
a) Press: YESb) Go to step 24
2) If no,a) Press: NOb) Go to step 25
25. If "Do you want to RECLIBRATE?" is displayed;a. If yes,
1) Press: YES2) Go to step 26
b. If no,1) Press: NO2) Go to step 41
29I _________________________________
26. When "Set origin for Flow cal." is displayed;a. Set digitizer origin using cursorb. Press: CONTINUEc. Go to "DIGSET," then proceed to step 27
27. When "Hit COT to read 2 Flow cal. pts." is displayed;a. Press: CONTINUEb. Go to "DATA" to read first point (must be a 0 flow signal); return
to next linec. Go to "DATA" to read second point (must be a non-zero flow); return
to next lined. When "Reread Flow cal. points?" is displayed;
1) If yes,a) Press: YESb) Go to step 27
2) If no,a) Press: NOb) Gc to step 28
28. When "Hit COT to read 2 P cal. pts." is displayed;a. Press: CONTINUEb. Go to "DATA" to read first point (must be zero pressure); return to
next linec. Go to "DATA" to read second point (must be non-zero pressure); return
to next lined. When "Reread Pressure cal. points?" is displayed;
1) If yes,a) Press: YESb) Go to step 28
2) If no,a) Press: NOb) Go to step 29
29. When "Calibration Flow (liters/sec) = ?" is displayed;a. Type: numberb. Press: CONTINUEc. Value is printed
30. When "Volts Full Scale (Cal. Flow) i ?" is displayed;a. Type: number that represents chart recorder full scale (in volts)
when flow calibration signals were recordedb. Press: CONTINUE
31. When "Scale Multiplier (Cal. Flow) - ?" is displayed;a. Type: number that represents scale multiplier on chart recorder
when flow calibration signals were recordedb. Press: CONTINUEc. Values for volts full scale and scale multiplier are printed
32. When "Calibration prescure (cm H2 0) - ?" is displayed;a. Type: numberb. Press: CONTINUEc. Value is printed
30
-. *!*.•*!
33. When "Volts Full Scale (Cal. Press) = ?" is displayed;a. Type: number that represents chart recorder full scale (in
volts) when pressure calibration signals were recordedb. Press: CONTINUE
34. When "Scale Multiplier (Cal. Press) = ?" is displayed;a. Type: number that represents scale multiplier on chart recorder
when flow calibration signals were recordedb. Press: CONTINUEc. Values for volts full scale and scale multiplier are printed
35. When "Change Calibration values?" is displayed;a. If yes,
1) Press: YES2) Go to step 29
b. If no,1) Press: NO2) Go to step 36
36. When "Volts Full Scale (Data Flow) = ?" is displayed;a. Type: number that represents chart recorder full scale (in
volts) when the flow data points that are to be digitized wereoriginally recorded
b. Press: CONTINUE
37. When "Scale Multiplier (Data Flow) - ?" is displayed;a. Type: number that represents scale multiplier on chart recorder
when flow data that are to be digitized were originally recordedb. Press: CONTINUEc. Full-scale and multiplier values are printed
38. When "Volts Full Scale (Data Press) - ?" is displayed;a. Type: number that represents chart recorder scale multiplier
setting when pressure data points that are to be digitized wererecorded
b. Press: CONTINUE
39. When "Scale Multiplier (Data Press) - ?" is displayed;a. Type: number that represents chart recorder scale multiplier
setting when pressure data points that are to be digitized wererecorded
b. Press: CONTINUEc. Full-scale and multiplier values are printed
40. When "Change data scale values?" is displayed;a. If yes,
1) Press: YES2) Go to step 36
b. If no,1) Press: NO2) Go to step 41
31
4741. When "Set origin for Data axes" is displayed;
a. Set digitizer origin using cursor
b. Press: CONTINUEc. Go to "DIGSET," return to step 42
42. When "Number of breaths this hour - ?" is displayed;
a. Type: number of individual breaths for this hour that are to beanalyzed (maximum of 10 allowed)
b. Press: CONTINUE
43. When "Hit CONT*Read 2 Flow pts. B-<n>" is displayed (note: <n> represents
the number of the breath which currently is being digitized);a. Press: CONTINUEb. When "Read Flow point Fl" is displayed;
1) Go to "DATA"2) Return to next line
c. When "Read Flow point F2" is displayed;
1) Go to "DATA2) Return to step 44
44. When "Reread 2 Flow data points?" is displayed;a. If yes,
1) Press: YES
2) Go to step 43b. If no,
1) Press: NO2) Go to step 45
45. When "Hit CONT*Read 2 Pres. pts. B-<n>" is displayed;a. Press: CONTINUE when ready to digitize pressure data pointsb. When "Read Pressure data point P" is displayed;
1) Go to "DATA"2) Go to next line
c. When "Read Pressure data point P2" is displayed;1) Go to "DATA"2) Go to step 46
46. When "Reread 2 Pressure data points?" is displayed;a. If yes,
1) Press: YES2) Go to step 45
b. If no,1) Press: NO2) Go to step 47
47. When "Do you want to reset axes?" is displayed;a. If tracing for next breath is on another chart paper or if the
current paper must be moved to accommodate the next tracing,1) Press: YES
2) When "Set origin for axes," is displayed;a) Press: CONTINUEb) Go to "DIGSET"c) Go to step 48
b. If tracing for next breath is already positioned on digitizer so that
32
nothing needs to be changed,1) Press: NO2) Go to step 48
48. Have the number of breaths entered in step 42 been analyzed for this hour?a. If no, go to step 43b. If yes, go to step 49
49. Data for each breath of this hour as well as mean, maximum, and variationof isovolume resistance are printed.a. If data is not to be recorded (you answered NO in step 8), go to step 55.b. If data is to be recorded (you answered YES in step 8), go to step 50.
50. If "DATA IS BEING RECORDED" is displayed;a. The data just printed is stored on tapeb. Go to step 52
51. If the program detects an error in trying to record data;a.* Go to "HELP"b. Go to step 50
52. If "Tape is full--remove it" is not displayed, go to step 55
53. If "Tape is full--remove it" is displayed you have two options:a. If the current tape still has one track which has not been used,
you may do the following:1) Leave tape in the computer2) Type: n -~ D, where n, either 0 or 1, is the number of the
unused but properly marked track3) Press: EXECUTE4) Press: CONTINUE5) Go to step 54
b. If you change the tape;1) Insert: new properly marked but blank tape2) Press: CONTINUE3) Go to step 54
54. "INSERT HARKED TAPE" is displayed as a reminder that you must haveperformed step 53.a. or 53.b. by this time. If not, then you now must
insert a new tape.a. Press: CONTINUEb. If "Tape full--replace" is displayed, the new track or new tape has
been filled previously;1) Remove: tape2) Press: CONTINUE3) Go to step 54.b.
c. If "TAPE NOT HARKED-USE HARKED TAPE" is displayed;1) Remove: tape2) Press: CONTINUE3) Go to step 54.b.
d. Go to "HELP"; go to next linee. Return from "HELP"
1) If a problem was found by "HELP" &4 to step 54.b.2) If no problem was found by "HELP" go to step 55.
33
55. Have the number of hour groups entered in step 21 been analyzed?a. If no, go to step 24b. If yes, go to step 56
56. If data was recorded on tape "REWINDING TAPE CASSETTE" is displayed.
57. When "TURN OFF DIGITIZER!!" is displayed do so.
58. When "End of Data Reduction" is displayed;
1) Program has finished2) Turn equipment off3) Remove data tape
3
I JI
. . . . . . . .4l . . . . . . . . i i I 1 1 1. . . . m l . . . . . . z ' - : 'L - . . " . . . . - -
a. If "INSERT TAPE CASSETTE" is displayed the tape is not properlyinserted.1) Correctly insert tape2) Press: CONTINUE3 Return to main program
b. If "CASSETTE IS WRITE PROTECTED" is displayed;1) Remove: cassette2) Slide tab on cassette to "RECORD" position3) Insert tape into computer4) Press: CONTINUE5) Return to main program
c. If "SYSTEM MALFUNCTION**GET HELP" is displayed, there is a serioushardware or software problem which must be remedied. The ROMidentifying character, ern, and erl are printed on the internalcomputer printer.
"DIGSET":
a. When "Read point on X axis" is displayed;1) Slide digitizer cursor to a point along chart paper X-axis2) Press: "S" button on cursor3) When data point is properly read, computer will beep once.4) Go back to step a.l. until 5 points are read.
b. When "Do you want to reread points?" is displayed;1) If yes,
a) Press: "YES"b) Go to step a.
2) If no,a) Press: "NO"b) Return to main program
"DATA":
a. Slide digitizer cursor to point to be read.b. Press: button "S" on cursor to read point.c. Computer will beep when point is properly recorded.d. Return to main program.
35
3. User Instructions for PDP Program to bu used with "ISOtfr"
It is assumed that the operator has properly logged onto the PDP computer
and that the transfer program, named "LFSRC21B" is accessible to him.
1. On the PDP computer terminalType: RUN LFSRC21BPress: RETURN
2. When "DATA FILE NAME [NAME.EXT]:" is displayed,a. Type: name wanted for PDP data fileb. Press: RETURN
3. [PDP program is now ready for transfer to start.]
4. When data transfer is completed, "STOP-TTnn" is displayed where nn isthe number of the terminal being used.
36
i/- /T
B. Program "ISOtfr"
1. Introduction
Program "ISOR" computes the isovolume resistance for individual
breaths and records these results on a tape cassette. Thus it is not necessary
to transfer the raw data to the PDP computer for analysis. However, for the
purpose of making statistical comparisons of isovo'.ume resistance between
subjects and/or experimental conditions, the analyzed values are best
transcribed to files on the PDP disk. The programs that effect this transfer
are "ISOtfr" for the HP 9825 and "LFSRC2IB" for the PDP-11/34. The hardware
requirements are the same as described for "PDPtfr."
Each data file from the tape is stored as three records on the PDP
disk. The first two consist of the descriptive and time headers, respectively,
as previously described for "ISOR." The third file holds the actual data: 12
numbers with format F10.5. The first number is the hour number, the second the
time in 24-hour clock notation, and the remaining 10 are the calculated
isovolume resistances (liters/sec-cm H20). All the data on a given track of
the tape cassette are stored on one file in the PDP computer.
Detailed user instructions follow in the next section; program
listings are given in Appendix 6.
37
P,
ISO*
START
ENTER TRACKTO BE
TRANSFEWD?
N=I
FXE N YES TRF END OF
EMPTY? YES FLE CHAR.TO PDP
N NO0
PDP
FTL
TFR DATAFILE TO REWIND TAPE
IF4
TFR YESN-N+1 ANOTHER
TAPE?
NO
STOP
Fig. 5. Flow chart for program "ISOtfr'l
38
2. User Instructions
1. Insert program tapePress: LOADTypo: 7Press: EXECUTE
2.* When end of line mark 0V-) is displayed
Press: RUN
3. ("REWINDING TAPE" is displayed.-]
4. When "Remove Program Tape" is displayed;a. Remove tapeb. Press: CONTINUE
5. When "Insert Data Tape" is displayed;a. Insert: tape containing data files produced by "1501"b. Press: CONTINUE
6. When "Track to be transf erred?" is displayed;a. Type: either 0 or 1 to specify which track on the tape is to be
transferredb. Press: CONTINUE
7.* When "Start PDP computer program" is displayed;a. Start programb. Press: CONTINUE
8.* When "Press CONTINUE to start transfer" is displayedPress: CONTINUE
9. ("DATA IS BEING TRANSFERRED" is displayed until an empty file isencountered on the tape, then the end-of-file character is sent to the PDPcomputer.]
10. ("REWINDING TAPE" is displayed.]
11. When "DATA TRANSFER IS FINISHED" is displayedPress: CONTINUE
12.* When "Another data transfer?" is displayed;a. If yes,
1) Press: YES (key f 0)2) Go to stop 3
b. If no,1) Press: NO (key f)2) Program ends
39
rm
C. Program."ISORED"
1. Introduction
Program "ISORED" reads data tapes containing isovolume resistance
values calculated and recorded by program "ISOR." These values are then
printed on an external printer. A program listing is given in Appendix 7.
The format of the printout is as follows:
Tape Track # Tape File#HeaderTime and Date of Original DataHour # Time of Data10 Values of Isovolume Resistance (1 for each breath analyzed)
40
__!
2. User Instructions
1. Insert: tape cassette containing program
2. Press: ERASEType: aPress: EXECUTE
3. Press: LOADType: 6Press: CONTINUE
4. Wait f or end of line mark Q)to be displayed
5. Press: RUN
6. When "Rmove program tape" is displayed;a. Rmve tapeb. Press: CONTINUE
7. When "Insert data tape" is displayed;a. Insert: data tapeb. Press: CONTINUE
8. When "Tape track (0 or 1) wanted - "is displayed;a. Type: numberb. Press: CONTINUE
9. When "File number to be read - "is displayed;a. Type: file number (between 1 and 400)b. Press: CONTINUE
10. [Data is printed.]
11. Go to step 9 (To end program, Press: STOP)
41
References
1. Catron, P.W.; Layton, R.P.; Krupa, T.A. A compterized method for
acquisition and analysis of flow-volume loops. Bethesda, Md: Naval
Medical Research Institute; [1981]; No. 81-13, Available from: Naval
Medical Research Institute, Hyperbaric Medicine, Bethesda, Md.
4 2
APPENDIX IaF#1DATA"'
EqupMEnt List
1. Nicolet oscilloscope (model 2090)
2. Hewlett-Packard (HP) 9825B Computeror
HP 9825A Computer vith the following ROMl's:a. general I/0b. extended 1/0c. advanced programingd. string variable
3. IEEE-488 (HP-ID) interface bus (HP 98034A)
4. Printer for HP 9825, such as HP 9866 (Note: program assumes select code ofprinter is 6; if not, all "wrt" commands must be changed to reflect actualselect code.)
5. Real-Time Clock (HP 98035A)
43
APPENDIX lb
0 *
CL e'.~0 0-4
(04
41 D.1
S 0 Q34
04.C 144 '
10 4 F U
9 00'1~0 rz3 -4O %
F-4 tO r. to wC- 2 f- ~0 CO -AA- 4%.- Aj nM 40 A 49 C4 ft 0 4 0C, 41 w ON
A- C Wi -r 411 02 .:'-' n~ (L Aj *t1" 00t' C4 III~ V) Mr ) C 0 Al4to41 a%4 *.o 0 )1W N - 0. 00 - 5
P4 02 0 P44 Ai *-t.1 4 - P -Al-mO +
-4 1 - 0 .0 ..- 0 ft'. J 4 a a -041 i a 41 '-4O .Cp :9- V4+A 1 ClodC" 0 112 0'-- - -rT- o 1 ) 4 Aj4
00 b1! *j N m~ -4 - pa *4 0.-4C r- 2 03 - N 4 A ..404 C' ..(f 4f ar4"w m$ 3 $00 - - (DCw IGO
- Q, as. 31%if 0 -4 O C 41w4*1 1 C3 - C. p44 st . .- 0 *. -#4 -@ ( . 0b
&j A) 0P r- -. 4-r4 J04 1 0N E) Cr Go..r 4-
r*3 *0 U4V -Or 0 -P4 -oo w o 3.@4 Q C411w
hi4141 u) 04 W -040 * 0'00O0 UWp#..-t 0.14 to w ; -' CY~ '.4 U'41a.i A A I O O ... '44. 1% 1 4.1
4C 0) (a Afbe il 0 C 414 t- %4 C- C541 -0 C C C 0 C Ao O0e 4b £h4 -A -V4 -P4 0 Us (PC 1 'C 00C- 4) 9MA0)
*. 1 1 C,-0.4 0.4 41114114:11*0900.o G* 061.I~ C' C 1 .a e go S* 0C Co *00 t 0 o00
*.......e * .. .. . o .. .. 0 v-44 I" "r 0 r 0 0% 0-4 NM In 41 in %D r%0 M~ 0 4-4 (4
P4 no i of 0 olP4P - 4 - - 4P1P4 C4 NN N 4N N NMMNNC4f lII4
0J
.3 +.u 010
1 0 01
4J4 P1U 4j
-r4 C44
0 ....
r-4.1-4
0* 0 D ft
"1 =
hi. o .; .. - Ut- .. ,
C'. 0. Eu
C'.b~ -! , .4,i • a 0P s -
0M..: .... e
r4 -w 414 4 n .to .U to 4
0.- (0 a 0 4 0-
u) 0 . I I 0. ai ., ( (, * v
to U 0) U -0. fIJUI:
W CJ04* W1. N -r t4 * b4 63 tE4 ~.41 o,> 0 atf JN 4 * a '.M4J 03 4C'C .4 U). go 044 0 00CUMe 34 ,2 W
Ujc 0 Eu I-40 *. Is 0 n ai40 4 2L4 93t t)N0f I -Z0' 0 IA C I-U - -Iu ~
0%%o Ii a a P4M 1 P4 02 0aa 4J%0 4 $4tfl oft E1
A04 4 i F- 6 g. j UA 4j hi 4.-- O 0 A j4 4 1 ro 1 %) E4 906 XP9% 0) EuC a %a 2N v £ i4 1q 1v- )I 4 3 J. 1wr
0O. to 40o ot t 0s * * *U go go go0 o og oo 00 of4~ 0 s f os
0 0 ~ C-U U C'(A0 DaU ~ h~'O n45
474
0 c..41.9 - q -
04A - L
414t 4
.4+0 -41 - - J441 04 (1).-
00'j 1 C
Ai 41 .- 4-4'U Qi -4) zr.
4.. 0 W U
ft C1 An 04 -.A 4 ~ '*
461 X 'U 'Cta 41C 0 41to ft 0 ) *.zr ON4 .
Ai3 40) r7 ~ AJ -.
4 0) .-0 1.4~ .. f 91 u N1
%0I 44 00 1 . t
N N1 '4- b4 o -P, U ~ .3 *.
Go00- 1= -4 (13. a ZwN 0: a oc
%O 4 flAC4 2 E4 0 .0 0u.4 41U A I+ o
%0w 04 gJ 4j %0 w 4 A.4je10
a0-4M 4-4 C C t7% a CPOCO e0 0of -441 0n W *-00 0.03j411 -t.4Uf =
"4 "44 " a4-s 0. tn~u 0 * + II NO0.-4*.4 -4 w P-G-4 .Ad 91-4 v- M Ag to >4 V.EU 4 4 * .C4r4o n 1
0UI w S L -M + ucwb~I~ E NrE-4tfn N 0 P-441s 2 a-48 P-4
0 J 9%. 41" 0. 03" S4 0 F4 44 A31 u it A )41 AjA A 30wa0 M..Ws J1 w w w'
o1 VO4 1~vw0 0 P4* U4 31 1Z41WainOV0VOu *4
** * ** ** ** ** of of 9. go * ** 99*** 99 * .9 so *. 06 ** *e *. es *. *- *. .. 09 * 0 F4 N of4.
46
Ci
0. +
,--l '.0
W. 2, 3:m 4.) 0-.{3 4(11 1 .-
m4
I 41 +1 . J -4. 1
to " x --- 41 41 4
4) N. )
P4 4. 3 0 % q0 '4-
.4 ,)1 -- * -4 *'-- I
at- w 0 t.0f'.140 m4wPi ..
,0 0Ed .-
:0 C t I m7p, fn U). 4 ;~4 4 .0
. 1 ..4.. . "- -' - .... .... ...41 :
.U 0 -. 0 to ft - 0in 39'400 13 41 w 4 LAO Z P-4 xmE
r-4 .0 D 0 A- 0 .. 0
*4 0 .4 W (3 4-a .0 fai a 'o%, w
*-> C *-A 0 (3W 4 saO CA - Oi4 *. a t &S1
MON AO 0 0 U.~ ). :3 0,~4 7r.- = LA (n.04 g3(aU w * w-. At 0J + -0 ..J
Uj 4 j 4) 4JA K 4v4p444 X0 -4 0 44 W 0W J iQ 0 t w0 P.4.4 449 w9 aZ 4 +0 00 4O j0 .444- 0~o E-4 a %4w 0) = 1 o
47
0 04
%00a411 .
o 4'U
'-42 -.4
Oc.4 0 wtlt.4
N 04 .-
W~~ 0%2r-4 0 u)0
N J
+-
0 0)fC4 ( jwA+U +
W40 Owq w w F
~a2 C'4*
APPENDIX lc
"NDATA"
Variable Assignments
A usedF tape file # in which header is recordedG usedH usedI, 3 used as countersK ID # of tapeL used as error flag
N # of tapes to be markedP tape file # in which data is recordedQ usedZ # of data transfer
A$ headerB$ computer clock timeC$ computer clock reset timeD$ character identifying ROM in which error has
occurredE$ usedX$ used for data buffer
rl yes/no indicatorr15 used
49
/
APPENDIX id"IDATA"
Details of Header and TimeStrins Variables
The header is stored in the string variable A$, dimensioned as A$[80].
A$[1,31 3-digit subject number (right-adjusted)A$[4,5] 2-digit subject ageA$[6,6] 1-digit sex codeA$[7,7] 1-digit race codeA$18,8] 0 (used as spacer)A$[9,10] 2-digit height (inches)A$(11,131 3-digit weight (pounds)A$[(14,14] 1-digit experimental type codeA$[15,18] 4-character record type codeA$[19,22] 4-digit event time (default value is
1100-111)A$[23,23] "1space"A$[(24,28] barometric pressure (m Hg)A$[29,29] "1space"A$[C30,31] 2-digit room temperatureA$[32,32] "1space"A$[33,80] free comment section
The value of the real-time clock is stored in string variable 5$, di men sionedas B$[14].
B$[1,21 monthB$[3,3] "fspace"B$[4,5] dayB$16,6] "space"B$[7,8] hourB$[9,9] "1space"B$[10,111 minuteB$[12,121 "space"B$[13,141 second
50
APPENDIX 2a
20: 0t045~0 m L.~~
o ad C)-44
r-4 0 -4 C
0 13
Ai 0 M -0 0
W 0 41U)c lo
45 w -4 to. Li0
U) t 4' Ai
C 0!(a4. ) W 4 0)
S. ) _-4 ri (DU
In In = .. 0,(P 1(0 . C A3 W 0)'C
41U U) U
'44~ ~ ~ 0 4.5 m4 N j 0 ?aD01 to W mm i Aij(a1V .J 0 . ~ 0 CO) W09(go40~a .0 .Ai W~a OU) 0
tf) .n U)) Ow0 AA 5
0.0u~~ 0 to W ej 0 j W(a'- 10~aa fl. 0-4 Ul M1)0
-4) 4 LiiJ -4 002LOQ> C 4J0O - to1. to5%W.- 0.4)0 .L -cJa. %_- z00.0 04 W co . ot L
4j r% to4 .LiUU)4545~ '-400 v-4M f"'14W
r-004 U)VlQID. %0 r. 0. & .fnud 45 1(40 N
w'ic r. 44 -2~4U bd0 'tn 0. 4
f-4 94 CSP . 0- m U 0 u4% - 2 W tU W ~ -Ai: e.-. I .,r- tgo A a Q+ 45 .-. 4
W~a5 0 0 M 0' W 00-wu),4 4JA C 0JWIf0- 4 M (1 XE-43 4-4L s- 0 U"V 3 A0 m
-*04 ~ ~ ~ .ON, ** **o ol r-Ow mo 00 * * * *. ** .. 0 .0" *1 00 * 0.* * * ** ** 00
o 0 0 Q
o 0 0 0 4
6-40 0 0 0 r
dC It Ot U 5ji N a, - - _ tz - ru
~fn) A1 ft1 A 41J 41 fn)
N 4b9 % u. 4fl r- co b vj.
n14 P2a iw j N~. at 4 '(A4 ". ft aJ -4 %4 4 F-*.~ ~ %O 1 .. 4 %.. 4 * -P4 EU **v **04 %
% 44 9. P4. *0 4 *. to AJ b- U) 0I C) A~-A Uq U) 2t.i-.Ie.I'.3 C u4 o!t'
%0 ? .4 0%otlc 44r 4 4' 4 40+
0 Wa2 1 4 t Vt U)1UJ tf1.41 a *eW 9 A41 X O-
01k 2 -A~1 -i4 4 F-42 hi w i 39I tw 411w I U-4 2 Ca 2 a 31 wV 00
52
APPENIX 2b
PDP PROGRAM "LFSRECIB"
CC S.PRINCE 19-FEB-82 CCC TRANSFERS DATA FROM DR. CATRONS EXPERIMENT FROM THE HP-9825C TO THE 11/34 BY WAY OF THE GPIB-11 BUSS. THE HEADERS ANDC THE ACTUAL DATA ARP. TRANSFERED TO A FILE. NO CONVERSIONSC ARE DONE.CC NOTE: THE TRANSFER OF NICOLET DATA CONTAINS VALUES THAT AREC BYTE REVERSED RELATIVE TO THE PDP-11 WORD. IN ORDER TO DOC ANYTHING WORTH WHILE WITH THIS DATA IT WILL BE NECESSARY TOC SWAP THE BYTES IN EACH WORD.C
LOG ICAL *1 LB3YTE (8192) .DOLLAREQUIVALENCE (LBYTE(1) FIN)DATA STnP/'STOP'/.IREAD/1/.1D2/'D2V/
CIDATSZ-8192 I SIZE OF 3RD TRANSFER
CC-- GET FILE NAMEC
TYPE 55 FORMAT(' DATA FILE NAME [NAME.EXTJ 'S
READ(5,7) CLBYTE (I) .I-1,40)7 FORMAT (40A1)
CALL ASSqIGN (2,LBYTE)CALL FDBSET(2, 'NEW')
CC-- READ FIRST HEADER LINE (80 CHARS)C10 J-IBUP(IREAD.3.LBYTE.80)
IF(J.EO.-4)GOTO 10 1 TIMEOUT, REPEAT READIF(J.LT.0)GOTO 100IF (FIN.EQ.STOP) STOP
CC-- OUTPUT LINE TO TERMINAL AND FILEC
WRITECS,20) (LBYTE(I),I-1.80)*20 FORMAT (IH ,80A1)
VRITE(2) (LEYTE (I) .1.1,80)CC-- READ SECOND HEADER LINE (14 CHARS)C30 J'IBUP(IREAD.3.LBYTE.14)
IFCJ.EO.-4)GOTO 30 1 TIMEOUT, REPEAT READIFCJ.LT.0)GOTO 100WRITE (5,40) CLBYTE (DI)1-1,14)
40 PFJMAT(1H , 14A1)VRIYPE(2) CLBYTE CI) .1-1,14) I TO OUTPUT FILE
CC-- READ DA"'A BUFFER C'IDATSZ' BYTES)Cs0 J-IBUP(IREAD.3 .LBYTE.IDATSZ) ITMO~,RPA E
IF(J.EQ.-4)0=T 50 1TMOT EETRA
i ________________53
IVCJ.LT.0)GOTO 100YPE 6 0
60 FORXAT(' DATA BUFFER RUCEIVEDI')WRIlYE(2) (LE7TE(I),I11.IDATSZ) I DATA BUFFER TO OUTPUT FILEGOTO 10
C-- WRITE OUT ERROR NES SAGE
100 WRrPEC5.110)J110 FOIATC' J- 1#15)
STOP 'ERROR'END
1 __ ____ ____ ___54
APPEDIX 3a
"Nictfr'
Equipment List
1. Nicolet oscilloscope (Model 2090)
2. HP 9825 B desktop computeror
HP 9825 A computer with following ROM's:a. general I/0b. extended I/0c. advanced prograumingd. string variable
3. IEEE-488 (HP-IB) interface bus for HP 9825 (HP 98034A)
4. Printer for HP 9825, such as HP 9866(Note: program assumes select code of printer is 6; if not, line 8 mst bechanged to reflect actual select code)
55
/*.'EflhZ 3b
a 044
w0 00w
0 03
U jMi4
is 0n. r-= ~ 0 wc
41b
we .0 A
*44j AJ0 " 0
U).0~ -a W 0.4 o '
-.44 CW h
0 ~ ~ E4 0 Po O'- .- : i-a'4j0
WJJ41O 4 *C4 M1 uI in
0 NM 00% 1-0 M P-4 "4 14w4P
w0.J ~ 4 1 1 .a.a *.-4s~56
Wb yp vqRo N Its~
4 APPENDIX 4
.00
tnto0CL4
00 0. c
44C- (.4 .. cc
-~A 0:a.
410.. VIP1
10
S 0a)0 0'oa W0j 4
Ad.- W 0 -4a s 0 C. 9 0 0 A
$a 0 )tA WA 0 *4 AjbC- 0 SOW to 8 WjisWW- r .t
as 0 00o o o 0Ii) to ot0 00OJU) v Owl 0
0 ~ ~ ~ c P4 MM M e -00 4P4#4#4 o4s- -
6'0~ 0U~2Md .,57
hr
APPDIX 5a
"ISOR1,
Eguipient List
1. HP 9825B desktop computeror
HP 9285A desktop computer with following ROM's:a. general I/0b. extended I/0c. advanced programmingd. string variable
2. HP 9864A digitizer
3. Printer for HP 9825, such as HP 9866.(Note: program assumes printer select code is 6; if not, line 12 must bechanged to reflect actual select code.)
58
APPENDIX 5b
-42
O=
0 $4 Wi
-4C'
0 x0
-A*go w 0 %
4 E-4 13
0. +0. A
0-u~ to 0~h co0 J to (D .19 0ui 4
41 Eu 4.0 1(~. U
UQa to ix 0I r- wi " Sj
to -1 Eu aV 0 E0 cc tew) -4 to M* 41 uO 41 - Cr-4 14 4 >-. W u ~
ig) Z f(A 0e Ce 0 ) m t0 U 0* 2h 4 4 Aj C-4 a As%0 a j e
r~t >0 % Go% * 0 .0 -F4 ~w 0 h
W --1 OF s-U 0 A.I 41Wul C r C.. ".4 C . 1OU ) C c c*.4*.4111Eu * 0-4e--moo 0 go-01.I '44 " u4p-A P4 3W-'r4I..r.,-a y ,-1*4 4..4 0- *0 m 3 w-m ,.4 -0 3 '-4 4-r Eu0 4 ' ft f"Xach.41% W N W* ;m 0 ft 0 Z %4 % P4 w -on + -
to 1 c c 4 4M b 0A C) m4 L4e~.Q a0 t 0 80 wW~ ~ ~ ~ " A * N fw %0F4P N* a~f w . 0 .40
W OI-4 C .-4 cor~-..- F41 000 0 ne~ 0 Aj MI4 * j >.~ '0o
(- P-4J*. CO V i#-4 -43 w *p 0 W 0 i-4 ' Na 9-0 aOU 0 -0 m- 0 d in 0-t, % LA4 2 zc "4 41 ue .e 0 1 h
$4 V~ to V m 41 QIA1U 4 4J4 AJ w fn -4 41E-41G 00 .5U- I 4 .4 44 WC4.4 1 .. 400
59
o -
* 3
I
1 0
2-
*0 -> C4
41 -u 0
M C% N0rC
:- j - - *4 -1 -
01 -- M-c 0t3 ntr
El 01 -. A Ul OdC)
41 .61 to4 4) r4 4.4-
No *4 4 0110-4 01V) 0 0dL :3 01 > n
'U'U41 0 -~ 0-4 -z -
ra. r44*' 0Oj 61 49 44to P-4 0U 0 C) CAU j1 0
0 41 Uo 49 -1 -4 ( 01 01-4h in 481 c 'U jj,- a .... 1
4 .4 .. 4 to - UU. -A0 cU r-4 CCj 4j ** f-4 Aj n
C44 0r - 'l 'U - -- '0. 41 4 Wo-0M-
U C14 ZJ 0) Old Mu0 -I0 V j 04 00~a 3tL .Go 4 0 C- 0- i
f3 .-4 U0 a 1 to)0 0 49C 4) 0) 41 F1'U 0' r4 00(n 'U 41V% tt 4 OC 0 (U.J 4 4 % .- 4'U4J (l wa eU tr M % A
hA U 0 A a fU.J ~ oa 4 4 l -0 r4 0 a -. 01 0 01 A'CUog "1404P C 0V4.01"4 4 U U -0)Us -AP 44 2 r- MP
0 - !. a v4 0 01 13: 'U i s s.- P -4 ' .0e 41s rl2% LO r
,4il o 430A CL P4 1 w 0olp 1 P-4 4 J N AJ A) %0A *D o4r J%
P4 0P 0Cu4A 4W0v-44 41C% 2CC-4 W-Ca..C 1U- W %'4 -5C
0 %4 0 '4) -A 0 0 O . W014 010wm 1Q 0-. 0 %"314 0.4 0:0 04 0%000 sa .tos).0 0 .0 o0 ogo0 0o o 4t # 010So ci) JJ0 to0 toi *0-4 .. ha..- 0 Ci) *0 00 $
tnq uDCd~C oI M 0 k~ft CO % p C ) Usr VIA-4G*% 01--, 40M " M40- q 4 w4w- 4 q q n m n m nininini -UI clh U %0% N% 0 DD%
* ~ 1 s .. a .4 SU .- 0.~Sa -4~~ .41 60~-
0_4
* >4
.5 41
41 004 U *
-44. r'4 1H n C4 0 M
U ) .4) to d.4 0w 66 0 -4 x1to 4 m 'U I Ant
oj to -4 w4 00
00 #13 CIA wO) 41 (p*~~- 04 EU E E3O '
0 0 o.
C" E 4 30 ICD CD 1 a A0 - - '0 > -4 ~zCa ..
0 w 0U %A4 124 C1 0 Ov0 a0 f_4 'w ~4G 4 C4 V
to 3t 4) uN AII A) 41 Fo4 004-m0. z$4 0 . EU $4 0 aa 4 r) -i z' 4w 040 Ca. m (U Ca- D4 -C .- 4 CCOr c1% t ip . E4 "
It lz E N i "a 0'U0I"Q o4 1 I d ts P- fC*I0 2 N0 0-4 r* H % . Ir M
Aj w E4j 01 A0 A* 144 Or 0j el E-4 w 0 CAi4 r44AJU N W044 4J r- XU 0'~ P4 w 0 *4 24 *. m .0,a. 40 tEl $ .. V-.4 Cf E @1%"4 4 A4r4k e4 +. r-4 4 )I WJ M 43 HM4 ,
Im3 O-4 ' W7 30 H * V O s . 0 - 4 aH P5 C C) loco -
0% OH4 N M~ 4' inl %Dt- w M% 0 H- N M V' in %0 r'- M0' 0 H- N Mo o'il %0t'-t v 0% 0 0 0 0 0%0r of -r -r -r -C OZ "C 0 2 %0M0Md N0 - - 4rlv
61
en -4 ~ ~
Irz
oo N
o4 -.
-u 0 Ka-4
42- c =(40 sa
-f 0z 3 0 -A 3 3 a-
>. C,.. +4 0 .- J; ii
.a. -4 0- (f) m *Z14WLM04('4 w 4 4 8 4
C- C CaElsd 24 4 0W 244I - -44$ 4$ 44. 4 A-
0.~~~~ to .. 0 .0 9* o0 - 0. 00 o0 o00s 0 # .s .* o t0 ot os fLnar-r m0 4,- t q L o - o s 4c4m- n r ej .im v-c.. en ows o -%wa0 00 0P-4P- pl #4 4 4 o4 4 4 P4 NM 4 (4N MC4M ( fl M. ~Jfq "4P-1-4P4.4 4pq.4 4 M 04 4 4 -4P4 4 4 - - . . . - V . 4 N4plP4P4elt4P 4r
62 .OF- ~ K
hi - '~~ A
.4.4
0-4 41
4.4 '-441 0 ~ U - l
:3 0
-I C 4 C%
2 12 0 wj '44
N . *2U-- 2 L C%1 * z ft N
3: 0 >7, N - .004 *- ItU 1-
S I N 0 f n1
:3 4 (.0 rI - 4 )a -4 (. In0 -a u 6-4 V Z 4 U
0a- > ~ > *~ M+>-* 0 -04. 4 -r - H 1
3N N - M-- M'~ 0 i-i 0
3--- m=0 0!zr 0- w *U.N04 4.4 U nw 9 L 0 u I% S
Ml - .4> w P C) 0)f r64: -4 la 4-ZaU..6 (D 0 -0'. :u (a m ' w t .4 *.-f6 r414C -1 r%.4' 1 --
go IS .(%4 ~ 41M0A 4P U 0P4 ) -- W i an: H0N -w >4 = 0 -U J. 0->
d) 0 16m Iwv4 U- 0-i' IO mflI w M*N0(AE*C A a~ Vl WO -H 0 a %C) f ) ) O PHO -4D-4- 0M *l n >0.04 0 Ii , C J - U -A wA U e 44.Oil -) )04 P4 0,4P- -4H M U)44A40C4M -
.7 '4- U*+ -a 0 Us t) -*C -P4 H 0o 00- 4 I i of H Mu0- E-4 U
P4~ - -- PA -q'-z (A s 0
0) .4 0 H Ya6C) C r-, .4 F U,-4 40CF . E wDC( 0 0 HiJ PS: w tA. %WCN H $4 1 )040-40 (Pa 3 D*0a 43t( )W a a.~ V I-
4 04e i naC o(A0 4MV DP-(n M Uu0-4UN -0 ra%0r-to0%0 .4 f o 11%.0 IV ro 0- r. r0LN% I Ak 1 mk 0% 0 %0 % %D %0~ %D %D C% r-.. .. fl I'-H% "
P4#- -4P- 4 - P4 - P 4 N#- r4P- I P-OC-1rI v-4 4P- f-4.H P 4 4P -0: r4~ voolP v4P
H *.4 0 H-I N.. wuIH 4.06-a63
Ir,
o4 41 C
-44 P4(- 4 0t
0) -V0
tnz ;T*A J Ma
u~~~~~ 4a 1 a " m1 *1 U-jr3 Jc 0a - C4 V-e. 4
fV1.C -4 4 ha toh 0*4 C
O. 0 .-4) Aj A 0% r4in o
cn lb -4 4; Ca AjI - S1
3 j MJ~ lq. w a N. -- to
UN, - (/I 441 o-o AOf0. Aj U) 44 Aj 41414 mG 40% C(
0t 4+ 4 f 114N Ih4 3.z- 0 0%: a% t3%4 a% 0 -
-A) a0 CD- b Kr P. u',4 0 0%4 >446 %-4jN%3f t,44fl~ LetC LaO to12r C aP f4 N( j& 4
Cc 4 wmU) N ,-4 N 0-4 0 N m J U).*u 'I V3 -0 .C1 ;20
- 0 0c - 0.I " I 4 + 8 -
AJ j3 4J W 4 C . A 1 11 ... 41AiIw 2 4 41 41 .3A a j j AM Vw- UAtr~4 4) M)4 C )4 44 0' 4 u t cc
?a w 4 a0 r - a.0V0 II on (p C) 41 *a 02aW0 W ato
2 0'u14 c 1- co 1. 4 pF- -4 - 40 - -* - 4olP 4 0- (f-4 r4 p 041 4 4 4 1a( 0- P4 E.-' P-4 N a 4c 4N
O *.4 4*u * .~64...4 a '-a
C4 7a
0.0 41Aj 49
004J.
004 4 8w* W 0.
44 0 u
Ciah + 0 41 - n$4- P4 P4 4 av
0 1V). ty 4.1 0 54 0C!0 0 (A$
.-.- 4 0.. 4 A 4 41 e04 z 0%40 Ir 0a t IA-4w . X6 -- "4 . - ci0). r-4 LM. P-0. 4 5 w
m N r-4 + +0 .+0 q0; W d%**-4 z 4 0 N o) N 0 as4 4b0
U 0. .. A c0cc% - m) . -4 wf 1-u 0 ' 61 ca$ 0 1 $
48 '4* 40 01 (n 4b4~ C4 a)C-4 in- M- 1-- ft. CAC
F-4 f-4 3 41 to c 04 0c l0 4 c
OM. U. $4 0.. c cn 4j a
cc ca04AJO 40 Oo 0! v 0O40 w cdft C N- vc U. W WA1 C.~~ 0
~00C6 P4 4 4* - 0. j0.0(l4) .41J 40 P..4 a w E- Wi~a E-..b14h w Om Cl )Yoc 0v aZ39I 4% Ca r3 W. 4 +~ C) l~4
C0.4ll U) *- 1tl 0. 0 ).a-4 .q4 il TV4).-V 4 'A ~ mOW (0 -~ 44 .-4 a kd hi'4 - *f 4 0 * Z *. 0 o Oft
24~ w0~ ~,4i-in N P-*.. 4 N.-"Nu " 4jhiw IN N
3 a .. 0 .4 U i0+W4+ *- $4+ 4' NO~ 0li W.A44J J J44. JJ tZ g44 0 W jg.s0- M 4J ra 0Q0.0a a C41
0 6 IC 44 0 U 0 C WiV44j4W4 ~4j 0 44W4jL4 = i4wa. w +c0 44 31 CO404Wh 2 FOO 0 44.0 2 fO Ct4h $4 t~l10 1 W 4) P4 "4 #-4 01
C.* * *C C CC 0 C P4 N C v* wC r C; *** 0C** CC- CCC * * ** o a** * * ** A* 'we **0 %*a, (. *
#- #-48#-4 P4 P-4 ..4 -4 N v44. N N N N N N 4 M M~ M M~ fn M~ M~ V8 4844 V 4I 484848f q
65
0
-4.
S0+ r 0. 40(
.b44 J
*f30 Gi40 n .4 &J
4.J od S. U(:w 4 0 0 0*- 111)0
ba t .4 bd
fAj 7x 4 0. 0.CP-4 4 .lt 0 0
N 4. 0. C "o 4 4 So - %b 1 j04A
%IJ AT Ad M~0 ...- 3kF*o44 d3 A 14
So0 0g 4' 0'. 0 t f o tog to0 $0som%.. Os %D w n 1o
UN.. .%a. %0 %4 (% 0 %Dw%
1.41 0 .Oh66
APPERDIX Sc
Varible Assinumts
A hour numberB I of breaths for a given hourC flag for recording data on tapeD track of tape on which data is recordedE usedF calibration flow valueG usedH # of hours of dataI used as counterJ used as counterK usedL used as counterM used as counterN used as counter0 # of first hour of dataP usedQ usedt # of tapes to be markedS time of dataT usedW calibration pressure valueY usedZ used as flag
B[*] used
C[*]: used for calibration informationC[1] recorder volts full scale, calibration flowC[2] recorder scale multiplier, calibration flowC[3] recorder volts full scale, calibration pressureC[4] recorder scale multiplier, calibration pressureC[5] recorder volts full scale, data flowC16] recorder scale multiplier, data flowC[7] recorder volts full scale, data pressureC[8] recorder scale multiplier, data pressure
D[*] D[I] is average isovolume resistance for data of hour I IF[*]: flow data
F1l] digitizer value for data flow point FlF[2] digitizer value for data flow point F2F[6] scale factor for flow
I*] I[L] is isovolume resistance for breath #LP[*]: pressure data
P111 digitizer value for data pressure point PIP[2] digitizer value for data pressure point P2P[5] scale factor for pressure
67i °,
QN: resistance valuesQ11] max. isovolume resistanceQ(21 min. isovolume resistanceQ(31 variation in isovolume resistance
X(*] usedY[*] used
A$ header stringB$ clock time stringE$ usedF$ used
ri yes/no indicatorr12 printer select code
j 68
APPENDIX 6a
41ON
V. ab) C)0 m
41 G i
4-44. w t
WO a
w0 E-4 1
'414-4j 0 1 ) bC) U-3 NOwa
N f7 0 Oa En 4 60nJ
1 a *.4 4A
h C 0~ n4 0 1' 0) U- 0"AM%0 0aWr-4 '- o0 %-A + - v-On ~ ~ 04 a at A.w -. 0 r-w
wU 1W00 w 0% 04tCV .4j wq P3 cc r4q 4). V. of U -
1.0 E haA x4 ~- 0- 4 4- a E4~w0. -M a "4 0 - 0: 9 r 104 Zz Ct-r-P4.9 4 0 A A M" 4a r. Ag r4 06% S40UMai
E -4 00 0. a 4 % S 3i # 1b
a$ 0* so .e .L es0 o* 9f o0 n *s 00 0s O 4*00 so .. of go0 *0 "Ne Vi~ %co ~ 40 %Nor.4 vblC'i4E0aJe V 00 %iM 1%WMr 4 4P4o -448~ P4'. mP4i M *
~o 'ia. * - 2 O 0'~daW~(~d e~.69~
-4 F
.0 &
0 41
P4 0 ."AVs
O 4 c - 0 c
0t 39 0.A# w
,f- 0 P4 M ~ M f0 OI- C 4M Wim ~ ~ ~ ~~~~~~~~d f"4 4o 4 04 v 0 r ino 4 oI
41,-i 00
[ 7 1 APP ENIX 6 b
PDP PRtOGRAM ILFSRC2IBN
* CC S-aPRINCE 19-FEB-82 ACtC
* C TRANSFERS DhMA FROM DR* CATROES EXEIMENNT FROM THE EP-9825C TO THE 11/34 BY WAY OF THE GPIB-11 BUSS. THE HEADERS ANDC THE ACTUAL DATA AiR TRANSFERED TO A FILE. NO CONVERSIONSC AIR DONE.CC NOTE: THE TRANSFER OF HICOLET DATA CONTAINS VALUES THAT AREC BYTE REVERSED RELATIVE TO THE PDP-11 WORD. IN ORDER TO DOC AN YTH ING WORTH WHILE WITH THIS DATA IT WILL BE NECESSARY TOC SWAP THE BYTES IN EACH WORD.C
LOGICAL*1 LBYTE (8192) .DOLLAREQUIVALENCE ([BYTE Cl) .FIN)DATA STfP/'STOP/.IREAD//PID2/ 'D2'/
CIDATSZ-120 I SIZE OF 3RD TRANSFER
CC-- GET FILE NAMEC
TYPE 55 FOIATC' DATA FILE NAME CNANE.EXTl It$
READC5r7) (LBYTECI),I-1,40)7 POINAT (40A1)
CALL ASrIGN (2oWYTB)CALL PDBSETC2,'NEW')
CC-- READ FIRST HEADER LINE (S0 CHARS)C10 J-IBUP (IREAD -3 -LBYTE -80)
IF(J.EO.-4)GOTO 10 1 TIMEOUTP REPEAT READIF(j.LT.0)GOTO 100
* IF(FIN.EQ.STOP)STOPCC-- OUTPUT LINE Tn TERMINAL AND FILEC
WRITE(5v20) CLBYTE(I) .1.1.80)* 20 POEIATC1H v 80A1
READ (2(LBYTE(I) .Iilv80)
C-- EADSECOND HEADER LINE (14 CHARX)C30 J-IBUPCIREAD.3.LBYTE.14)
IFCJ.EQ.-4)GOT0 30 1 TIMEOUT* REPEAT READIF(J.LT.0)GOTO 100
4 WRITE(5,,40)(LBYTE(I).Iu1.14)40 PFNIT(1E #14A1)
VRI'P3(2)(LBYTECI).I.1.14) I TO OUTPUT FILE*C
C-- READ DATA BUFFER C'IDATSZ' BYTES)C50 J-IBUP(IR9AD.3.LBYT2.IDATSZ)
IVCJ.9Q.-4)GOT0 50 1 TIMEOUT# REPEAT READ
71
IFCJ.LT.0)GOTO 100WPPE 6 0
60 FONIAT(' DATA BUFPER RECEIVBDI )VRIYrE(2) CLBYT(I) .I-1IDATSS) I DATA BUFFER TO OUTPUT FILEGOTO 10
cC-- WRITE OUT SUROR MESSAGEC
*100 VRI'EZ(5,110)J11a FOIAT(' J- I5)
STOP 'ERROR'END
j 72
APPEM)IX 7a
"ISOED"
-u:lpment List
1. UP 9825 B desktop computeror
UP 9825 A computer with following ROM's:a. general I/0b. extended I/0t. advanced programmingd. string variable
2. Printer for HP 9825, such as HP 9866.(Note: program assumes printer select code is 6; if not, all "wrt"statements must be modified to reflect actual select code.)
73
IE
APPENDTX 7b
00
0cto 0
410(d hi
:0'
4 Aj
00
-2 fl ~ 0
U l fl) *. -. LM A0 . O s- 4.-4 4) %A
v)to f .0 0t0-4CG q 0- EnJ~. U3.
-- 4CL % 0 i- 4 fe i
4 w .-- a~ a .44 P4
Ajeu A * f4 A w X ft SA *3 a V) 0 W.W $4.4 eqr4
0 4 f-W fto%0 4
to %4 . -0~ m . *t~m q 0 *-u 4c~U. r- L3Cq a-~~ th00Q--4 a 4 Q 4-4 e
0 3c, t I -f 1,4 Q,4.4 P4VJ -4t Ow J4% #4P, -4-414 D -4P
0~~~ U ~ %A- 0AJ-A0WW JXA
APPENDIX 8
Identification of Files of Proaram Tae
Tape File # File Size Program Name
0 1.00 (special function keys)1 5000 "UDATA"2 2000 "PDPtf r"3 1000 "Nictfr"4 1000 "ERASEff5 8000 "ITSOR"l6 1000 "ISORED"7 2000 "ISOtfr"
75
DATE