^ma21 60^pl 88 4 4 ^ceMOVING STATISTICS ------------------- ^juThis program will provide the ability to analyse a set of data and to update it on a regular basis. Once the User has Created an SDATA file and Loaded it on the first use of the program he/she may update the SDATA file by merely adding the new data. The Adding routine updates the SDATA file in such a way that it only contains the most up-to-date data. The user does not need to know where to add the new data - the program does all that for you. ^pa0The other 'Options' that this program provides are:- ^sk1^co'D' - Deletes the last entry. 'S' - Statistics - Provides the number of Data entries, their mean and their Standard Deviation. 'R' - Read - Reads a user specified SDATA file from a mass memory medium. 'W' - Write - Writes the current SDATA file to a mass memory medium with a user specified filename. 'P' - Print - Prints the SDATA file out one entry at a time. If no printer is present then a 1 sec pause will occur between each line of output. 'E' - Edit - Allows the user to Edit a specific entry. 'Q' - Quit - Allows the user to Quit the program. ^pa0^juThis program requires only a standard HP71B. I have tried the READ and WRITE routines only with a Disc Drive and a Cassette Tape Drive. For these two mass memory mediums (MMMs) they work - I cannot vouch for their success with a Card as I do not have a Card Reader with which to try. Those users with an HPIL Interface who would prefer a simulated PRINTER EXISTANCE FLAG (cf: Flag 55 of the HP41) should replace lines 30 to 70 with the following:- ^pa0^co 20 STD @ DESTROY C,E,S,X,Z9 @ ON ERROR GOTO 40 30 IF DEVADDR("PRINTER") THEN SFLAG 5 @ GOTO 50 40 CFLAG 5 ^ju^pa0This program is intended for use with the 24 col. Strip Printer for those who want hard copy of the output. I also have versions for use with THINKJET printer and the 80 col. MOUNTAIN COMPUTER video interface. If you have any difficulty with this program or would like a copy of it (or either/both the others) then send me a DISC or a TAPE (sorry - no cards) and I will record it for you. ^pa0To make the User instructions easier to follow I have abbreviated the keyword 'ENDLINE' to '>'. ^pa0^coTHE USER INSTRUCTIONS --------------------- STEP INSTRUCTION KEY RESULT ---- ----------- --- ------ 1. RUN 'MST' > Options [CLADSRWEPQ] ? 2. To Create a Datafile C Filename, No of Pts ? Enter Filename , Enter No. of Pts > Options [CLADSRWEPQ] ? 3. To Load a Datafile L L:NEXT(n) ? Enter Next Pt > L:NEXT(n+1) ? (till all Pts entered) [CLADSRWEPQ] ? 4. To Add a Pt A A:NEXT(n) ? Enter the Pt > Options [CLADSRWEPQ] ? 5. To Delete the LAST entry D Pt Deleted Options [CLADSRWEPQ] ? 6. To obtain Statistics S N = Mean = S.D. = Options [CLADSRWEPQ] ? 7. To Read a Datafile R Filename, No of Pts ? Enter the no. of Pts in the Datafile > Options [CLADSRWEPQ] ? 8. To Write a Datafile W W:Filename ? Enter Filename > Options [CLADSRWEPQ] ? 9. To Print a Datafile P The Datafile will be output - one Line at a time. 10. To Edit a E Entry No ? Enter the no. of the entry you wish to Edit > New Value = Enter the new value > Options [CLADSRWEPQ] ? 11. To QUIT the Program. Q Program usage will stop.