Home
        31295000046457
         Contents
1.                           2             FREEST  FASTST   INTSTO  eGLOBL GETARG s STORE  FIRSTA  LASTA  FASTTB    3                1 21  2 22             R42 4    5  2   SP3X6       27  FACI 40        2  42              CALL FREM  FIRSTADDRs LASTADDR  RETURNS THE FIRST AND      LAST AVAILABLE ADDRESSES IN    RESERVED BLOCK  FREEST  MOV                  RO    FREM  CFIRSTAsLASTA   JSR PC  GETARG 4              27290                  MOV  FIRSTA  RO   RETURN FIRST ADDRESS  JSR R4   INTSTO  WORT F1               5                RETURN LAST ADDRESS  JSR K    INTSTO    WORD F2  RTS PC  TABFRE      1  eWORD 0 0 0   ROOM FOR FIRSTA     F2             09090   ROOM FOR LASTA  ITNE FOLLOWING LINES HAVE BEEN REMOUED TO    SEPARATE MACRO   FIRSTA             27   AREA FREE FOR USER   LASTA   WORD 0 3 LAST WORD FREE      TOTAL      24 10  WORDS    FAST    CALL  FAST CADDKsHILOs  STEP  ERVAL   Q   DATA    DOES    READ      ADDR VIA AN F2    THEN ADVANCES SO THAT    TOTAL  OF  STEP  READS ARE DONE  0 IS RETURNED FOR THE READ OP   NOT  THE AVANCES  IF      Q  ERVAL IS RETURNED IN PLACE OF DATA  HILO O GIVES FULL WORD   HILO i GIVES UPPER BYTE   HILOs 1 GIVES LOWER BYTE   STEPsO IS LEGAL   BUT NO DATA IS RETURNED Q  DATA ARE UNCHANGED             we      we we                                  ASTST               5               JSR PC   GETARG  BYTE 1  1  1  1  2  2  0  EVEN  MOV                        CHECK ALL UPPER WORDS  BIS                     3 TO DETECT FLOATING POINT  RIS OQ9 ERUALH  
2.            FREEST     FAST     FASTST  9    Table of subroutine names for MACRO additions to BASIC    04 JAN SO COPY      OLINK LSTs OPTION I LPRINT 91 88    DX1 QURBSC  DX1 Q0URMAPsDX1 BASICR  FPMP                         OFROOT T B  400 C    DX1 BASICE Q 1 C    DX1 BASICX DXO MEMOPS  DXO MEMOPF2  DX1 GETARG Q 1 C    DX1 BASICH 0 2    RT 11 commands used to link new BASIC          APPENDIX C  COMMANDS    There are presently 26 commands recognized by the system  The    commands are listed in alphabetical order  each followed by a brief    description     A detailed description and example of each command can    be found in Sec  5 7              AUT    CRATE   DATA   ENQUIRE     ERASE         GRAPH   HALT     INITIALIZE     MULTIPLE   NAME   NEW   OVERLAY   PANEL    R     READ     advance through the 2264 buffer memory by executing   f  read commands   Start and stop the 2264 digitizer      times   set CRATE and STATION numbers   set number of points used in graphs  default is 100   return the present CRATE  STATION  and SUBADDRESS  numbers   reset MULTIPLE and OVERLAY flags in graphics routines  execute CAMAC F codes   plot data presently stored in 2264 buffer memory   stop program  return to BASIC   execute CAMAC Z command   set graphics MULTIPLE flag   set operator s name   execute stop trigger command sequence for 2264 digitizer  set graphics OVERLAY flag   read front panel switch positions on 2264 digitizer   read single data word from 2264 digitizer    plot data stored o
3.            WORTST     SUBROUTINE VIA            4   WORTST          BEQ  JSR       5  12               BIC  EVENAD  RTS    ETBST  MOV  JSR   RYTE     EVEN  MOV  JSR  MOV  Abr  CLR  CLR  MOVE            PC ROUNDS DOWN ODD VALUES OF R2 AND PRINTS WARNING    562   21  EVENAL  R1  MSG    sODD ADDRESS MAKES 2 CLEAR  WARNING       ODD ADDRESS ROUNDED DOWN     sBUT IT CONTINUES ANYWAY     1  R2  PC    GETB                        PC   GETARG    1 2 9        1    2                5            1    3    65       53     R3    R2      RS    C  RO              ADDRESS EVEN  RETURN WITH EVEN ADDR IN R2    8888888888888388888888                                       TWO ARGS    1     10UT     GET ADDR    BOMR IF TOO BIG         POINTS TO       1  SUPPER FAC CLEARED  SUPPER BYTE LOWER FAC CLR    3RETURN ARGUMENT       118    470 C              gt   gt  gt  27535  17733  377353  3 93 73 5 71 7333 713 7 73333333333233 1333     4                 4    I SUBROUTINE      INTEGERIZE      ARG POINTED TO BY R2  RETURNS      R2          0525 FAC    BOMBS IF NO OUTSIDE 32767   32768    FPTEST         R3   CSP  ISAVE R                 1        ADD RZ  R3  MOV  R2      R3    MOV         CRS           8 R2 GOT TO Fac  JSR PC   INT I INTEGERIZE  TST   83       5   FOR INTEGER             BEQ                        9  ROMBS IF      FMT    eASCIZ    WORD  gt 32767       lt   32768  DECIMAL        oEVEN                TST    3    60 BACK            2                      2  ADDKESS IS IN   2                  
4.         19    1102412   0112                     jO    HOLIMS 30115 1595  3 HOLIMS    HOLIMS did 1595 SNV9O   4 0 8 HOLIMS    462 50          920v         9677    8v     103125 TWNINYAL     NOILISOd     3104 91  V HOLIMS    pV viv    em      WNINUAL 0               5    2119      25                       v  3    NOOTUSLNI    anve    IINSNVXL       318VN3 1XV3HN8    J            z O     e  N  gt   gt  ZX    YOLIANNOD 0836  Nid         20    e  2  Su    13350S  c2 80              520     1379205  52 80  2 WNINU31       6130005 227  i                 95      i LMM  9c v1   131205       TIA  NAE  ovo    901     31VN    1VNINH31           514 30                            O              N                  14    9i V             OHD3       2 0H203  ev    0H93          YOLOSNNOD 91338  Nid Ob    409412 001121051  21140 76 6    OLY    21       IVA 01          911993  L        vi   M3MOd                           is     4         u31LINSNVML 1  2118301             SNIVLNOD LINN H2V3  A94C  1VNINH3L                 U31 LINSNVUL  MI Vd  G3LSIML    35795    55779    378   2  i    AS vegicz  Y3AIZ93U H3LIINSNVMA          22    4N25 opto isolation IC in the other side  This method provides for at    least 2 5 kV isolation     Sec  3 5 The Communications Interface   An interface has been designed to selectively connect between two  terminals and two computers  This unit also serves to monitor any  activity on the communication lines  The original purpose of the inter   face was to allow the
5.         3 16         3  1 THEN 8000 NGO TO 7000   CALL    STOR     A9sF  RETURN   PRINT   INITIALIZE  Y N  XINPUT L3S IF L39   Y  THEN 9050 NGO TO 1010   CALL             5118   3 460 TO 1010 STOP   PRINT C  PRO 10    CS  RUF CS SEN NFOR 152  TO SI 1NINPUT L3S NEXT ISNKETURN  PRINT Cs REF OO NFOR IS 1 TO 150             L3S   IF SEG9 L39  1  4029C   ANS  THEN 9320  NEXT IS PRINT    NO RPLY FROM 4025    NCRSH  PRINT C  pUF N NPRINT C9 PRO NPRINT  END WS    RETURN   F3S amp s  NFOR 1581 TO 20 PRINT C  JUM 1  SIS PRINT C  REF 01    PRINT CS  UP 1 NINPUT L39SNF3S58F3 29SEG  L39  17  17  NNEXT ISNRETURN   CALL    PEEK    CA6GeH NIF    gt  0 THEN 9510 NHsH42 716   CALL    PEEK     A642   LI IF L  s0 THEN 9520 NLsL42 16  Ti19SINT L 609H X2 716 60  NRETURN   OPEN           71                AS FILE UF3Ss16NPRINT    TYPE            TO EXIT PROGRAM     PRINT                 15    3 DIGIT NUMBER    TITLE  MUST      i912 CHARS  LONG     PRINT  ENTER TYP TITLE                 L3S IF L3se2   STOF    THEN 9650          1181 TO 999   IF SEGS UFS3 I220  99  7 05 END  THEN 9630   IF VALC SEGS L3S  1   SUP LCSEGS CUFSCI10  1  3   THEN 9640  NEXT 11      3 1124 3619  3 11 12  7929       7560 TO 9605   PRINT    OLD TYPE       SVF3CILI VF3 IL gt SL3S PRINT  NEW TYPE   UF3CI1 NGO TO 9605  CLOSE VFS3 GO      1000    20005 IF 02   0      THEN 20050 NIF 02    570    THEN 20008   20006 PRINT    WAIT  GRASHORT  NDUERLAY    PGM GRA200     20007 GO TO 20010   20008 PRINT    WAIT  GRA   NOUERLAY  PGM PLT20
6.         Components Included in the 11 04 Computer System       Directory of Storage Routine System Disk and Formatted  Data DUSK       uu o9                         SE  Be     Entry Points for the Graphics Routines                Subroutines Used in the Storage Routines                Record Titles and Types Contained      TITLE REC           Page  14    38  97  108  124       LIST OF FIGURES    Figure Page  1 1 Block Diagram of Data Acquisition System                 2  2 1 CAMAC Crate with Power Supply and Cooling Fans     Ps    8  2 2 Timing Diagram of    Dataway Operation                 11  3 1 Remote Halt Continue Switch and PC Board Modifications   16  3 2 Front Panel of Terminal Selection Board                18  3 3 Schematic of Terminal Selection Circuit               lt  19  3 4 Continuation of Fig  3 3           s            s  lt              20  3 5 Schematic of Optical Isolation Circuit                 21  3 6 Front Panel of Communications Interface             e   23  3 7 Schematic of Communications Interface                   24  3 8 Signals on the Unibus                   lt   lt   lt           26  3 9 Signals on the Unibus         s    s                        27    3 10 EMI Induced on Unibus During Tokamak Discharge           29  3 11 Schematic of 6 Channel Analog Buffer                  lt   31  3 12 Switch Position Readout Logic for 6 Channel Analog               d x d    amp     09   o 12   3 13 Block Diagram of 2 Channel Display Driver              34 
7.       COMPUTER BASED DATA ACQUISITION SYSTEM  FOR THE TEXAS TECH TOKAMAK  by  STEVEN ROBERT BECKERICH  B S  in E E   A THESIS  IN  ELECTRICAL ENGINEERING  Submitted to the Graduate Faculty  of Texas Tech University in  Partial Fulfillment of  the Requirements for  the Degree of  MASTER OF SCIENCE  IN  ELECTRICAL ENGINEERING       _ Approved    Accepted      May 1980                            I would like to thank Dr  Magne Kristiansen and Dr  Marion Hagler    7 ACKNOWLEDGEMENTS    for their support and guidance throughout this endeavor  I would also  like to thank Dr  Boyd Blackwell for serving on my committee and for  his excellent contributions to this project  I wish to thank Dr  Wayne  Ford for serving on my committee and my wife Carol and my sister Sharon  for the editing and typing of this manuscript  Finally  I would like  to thank my fellow graduate students for their advice and assistance    throughout this project     11       TABLE OF CONTENTS    ACKNOWLEDGMENTS     e            lt      ww s    LIST OF TABLES         LIST OF  FIGURES          esas      So           I   11              IV     INTRODUCTION  gt    o e 2  ee  THE            STANDARD           2 1 Introduction         2 2        CAMAC Crate       2 3                   Dataway          2 4 The Crate Controller     2 5            Commands                 2 6  Dataway Timing            EQUIPMENT                                  3 1 Introduction oP Say      3 2 The Host Computer   3 3        DL11 Serial In
8.       do not need to know how many  crossing searches were made    number of DATA  statements     WORKLI ST is a file containing the names of the  data files to be analyzed in this run  This  file was created by another program SELECT BAS   which looked at the file CATALO G  on the data  disk  and asked the operator to select the files    to be analyzed        1030 to 1040    1130 to 1140    1150 to 1950    2000 to 2080    128    Gets probe position etc  from Parameter   file    Finds record types 103  113  114 and stores  the record numbers in   6    7    8 respectively   Type 103 is plotted    Reads data statement  searches for crossing  and prints results    Subroutine to find the time s  when record    type 103 passes through the voltage 22        SUBROUTINES AND FUNCTIONS    3000 to 3080 Functions     FN  T R    returns the sample number  for record R  given the sample  time T   FNB  V R    returns the raw data  value corresponding to a voltage  V in record R   FNT  N R    returns the tire  in ts   of sample number    in record  number R   FNI  N R    returns the virtual file  index of sample number 4 in  record number R   FNSS  X C    print X  rignt justified  in a field of width C           X N    round X to    decimal olaces   FNF   X N C    print X  rounded to      decima  places  foliowed immediately  by a comma  right justified           field of wictn C  inclucing         comma     FND  N R    get              number N in    record R  and convert tc m    volts    
9.      3RESTORE OLD R3  RTS PC   RETURN           STORST  MOV                       JSR PC  GETARG  BYTE 1 1 0  EVEN  MOV  P2  R2  JSR PC  FPTEST         R2  R3  BIT  177400  R3  15 UPPER RYTE CLEAR   BEQ                 SIF  NOT PROCEED  MOV R3   GP  ISAVE       JSR R1  MSG SIF SO GIVE WARNING  eASCIZ    UPPER BITS CLEARED                          8                                  RYTEFM  BIC  177400  R3  MOV  P1  R2 sGET ADDRESS  JSR PC   FPTEST  TO R2  MOVE        R2   STORE BYTE  KTS       4     EXECST                          RO                         INPUT   JSR PC   GETARG sCAUSES AN EFFECTIVE JSR PC TO   BYTE 191 0 sADDRESS    EVEN  MOU  P2  R2  PC FPTEST  MON RS RJ SINPUT IN       MOU  P1  R2  E e             SUBROUTINE RETURN CODE  207  1ZSDECIMAL     IS PROVIDED BY THE USER IN THE STRING OF CODE         we           ARGUMENT AREA FOR PEEK                    A1    WORD                                   WORD 0 0 0 34DDRESS INFO FOR       WORDS  POKTAB    P1             090  9 VALUE OF ADDRESS                    0 09 sDATA        ZTABLEP                              119  02 JAN 80 COPY OF DX1 MEMOP2 MAC  OPTION ILPRINT U1 Bb    FAST   FREM            BASIC SUBROUTINES FOR FAST READING OF         2264 DIGITIZER AND FOR INSERTION OF MACHINE CODE    NOTE  THE MEMORY SET ASIDE FOR MACHINE CODE IS IN A SEPA  MACRO TO BE LINKED INTO THE ROOT SEGMENT IF AN OVERLAY STRUCTURE IS USED       4          NOTE  FASTTB IS ONLY DECLARED A GLOBAL  EDAD BAP  0 THAT IS GIVEN ON THE     
10.      DL11 can be  configured as either an RS 232 interface or a 20 mA loop interface    Two terminals are presently available in the data acquisition system   the LA36 printer terminal and the Tektronix 4025 graphics terminal  The  LA36 is a 20 mA loop device while the 4025 is anRS 232 device  To sim   plify changing from one terminal to the other  the option switches on    the DL11  which resides inside the computer cabinet  have been extended     16    SUOL LILJLPOW            Jd pue                    1         1                    T E                   HOLIMS LIVH 310W3U  NY9    278         NYG      9    0 220       HOLIMS  3 LOW3Y 1V907    mE 109 S3OVUL             M3lA             ci            24 T3NVd 1NOUJ        AG    17201 Mert          17    via    40 conductor ribbon cable  to a front panel above the computer   This front panel switch board is shown in Fig  3 2 and a schematic is  given in Figs  3 3  4   The switch panel allows the user to select one  of three possible terminals by turning a single three position switch   Position 1 is wired for 20 mA loop operation and is dedicated to the LA36   Position 2 is wired for RS 232 operation and is dedicated to the 4025   Position 3 is wired for RS 232 operation but is not dedicated to any one  terminal  The transmit and receive rates  and other options for position  3  are selected independently for each terminal by miniature switch packs  on the front panel    11 other options for positions 1 and 2 have been  hard w
11.     SSTRSCINTCCT2  INT T1 3400 33400  40      PRINT  2 FNQ LS  325  FR FFLO SHT  REC CNT CPY DATE REC LST   3  PRINT   2    PARM LST TIME  LINES    LS2LS i      ee  PRINT   2        5   3 FNQCF6   22FNQCF1   5        55 1 7 4 FNQ CR254 D1 j 04    gt       PRINT  22FNQ  100596          2282 1008 2 7  FNQ CT1  B FNQ L3   4  NLSsL S1  PRINT 92     051 5 322               29      1        CO9NLSsLS41  a2    PRINT 92     0 1 5 32  TYPE        ID HEADR CEN TITLE NLSsLS 1  FOR J3ei TO R2                5        LST TM GAIN OFSET ERFLG CKSUM SRIAL 8     SRINT BE    255 JOFNQCT CIS                    J3     2 FNQC 1103     3  FNQCHI oS FNQCT 5   PRINT 92      L19NLS  LSt1NH1sH191NNEXT J3NPRINT 92 2  0  523  ICOS    Sti FOR J321 TO R2    PRINT OD SFNQ LS 93  FNQ LS6 3  s 4  FNQCFL  3                 91  3     S3FNQ N2CJ3    4 i       29830  29840  20850  20860  20870  20880  20890  20900  20910  20920  20930  20940  20950    106    PRINT 92 FNOQCE1 J3     6          01  JI     6      0  0163     4           2  3         53   5  2                           J3NS1  1 GOSUB 9200  FOR 1541 TO L2    S21 POS L3 eC8 s1  IF S120 THEN 20880  LIS SEGS  LIS  191 1   9EGS L3    POS L395   5     1  41  LEN L39    AGO TO 20850  PRINT  2 FNO LS  3  sL3S LS LS 1 NEXT ISNGOSUB 9300  PRINT  2               OPEN   SHOT amp   FOR OUTPUT S  AS FILE UF2ZNREM THIS LINE UPDATED EACH RUN  CLOSE   2            PGM DATA HED  FOR INPUT AS FILE                FOR 11 0       L6 1  1 5256 1NIF     1 11 217733 THEN 20
12.    5000 to 5090    10010 to 10220    10040 to 10041    10060  10090    10100    10110 to 10210    10150    10212 to 10214    4       130    four quadrant Arctangent function  input  AsinO in 58        50 in C8  in radians   result  is stored in T8 such that 0  lt  T8  lt  2r  Subroutine to open file  get important  information into arrays in memory    it is possible to open the same file as a  sequential file and a virtual array file   at the same time   saves unnecessary open  and close statements   check that the file opened is a data file  check format number  this program only  accepts format number 101   position file so that it is ready to read  line R3  see subroutine at 11000    read the directory section  e g  lines 1001  to 1017 in Fig  4 7  into arrays   check to see if the line expected  number in  L6  was actually read each time   read parameter file header information into  arrays  Note  Arrays are used to store key  parameters so that data can be read more  quickly  Otherwise  the program would    be continually referring to the disk    10230 to 10290    10330 to 10990    11000 to 11060       Subroutine to look for              type 75    gives error message if not    ound  if rore  than one record has the type 74  the user   is informed of this and the first occurrence  is chosen  before returning  relevant  information about that reccrc is cisplayed  on the terminal  and  J  is set to point   to the first data entry in that record  Subroutine to plot data  us
13.    For communication with devices or computers outside the CAMAC system  a  simple parallel or serial  e g  the  RS 232  standard  interface is  usually employed  In contrast to the controller described above  the   dumb  crate controller has little or no local intelligence and is  primarily to  translate  commands and data  from an external host  computer to the form required by the Dataway and the CAMAC modules    The type of controller required depends upon the application     Controllers are available which allow several crates to be controlled           110    in a serial or parallel arrangement  by    single host computer       smart crate controller  The types of data and their rate of transfer  must also be considered when selecting a controller  If a dumb con   troller is selected  it must be compatible with the bus structure  the    input output conventions  and the signal protocol of the host computer     Sec  2 5 CAMAC Commands   As mentioned in the previous section  the CAMAC modules are con   trolled via commands issued by the crate controller  Each module is  addressed by its station number  N   Within each module  any one of  16 subaddresses can be specified by a 4 bit subaddress code  A          Ag  generated by the controller  There are 32 CAMAC commands  called   F  codes   which are selected by a 5 bit command code        oF asFosF ig   and directed to an individual module and subaddress by the  N  and  A   codes  The response from the module to this comma
14.    Q9413P8 4INT   X1 12  8    PRINT X    REM TWO PRINTS CORRESPOND TO ABOVE 5 BELOW AXIS   THIS Wa MTHIN  REM DRAWN   EVEN AT THE EDGE OF THE GKAPHICS AREA         NEXT        REM NOW FOR Y AXIS   IF 05 0 THEN 19910   X P 4   FOR 19 0 TO 800   IF Y7 1 THEN 19720   Y Q1 I9 Q2   GO TO 19740      01    02719    60508 19000   IF   12 gt   4 THEN 19780   IF   1 lt   4 THEN 19780   NEXT I9   REM AFTER HAVING FOUND EXTREME TICK POSITION   DRAW TICKS  FOR ISsI9 1 TO  800 STEP  1   IF         THEN 19830   Y Q1 I8xQ2   GO TO 19850   YzQ1  Q2 IS3    GOSUB 19090   IF Yi12Y4 THEN 19910   IF Y1 lt Y4 THEN 19910   PRINT C    UEC 3X1 4055 Y13 X13 Y15X1 QS  Y1   IF 05 gt 0 THEN 19900   PRINT C   JUMP   09 INTCY1 14  PS LENCSTRS CYO    PRINT STRSCY    IF PS LENC GSTRS Y   1  P7 THEN 19900   P7zPS LENCSTRSCY2  1   NEXT IS   PRINT C   MON H        RETURN   CLOSE N OPEN  OUTPUT ANA  AS FILE  1 PRINT N PRINT   IF END  1 THEN 30020  LINPUT 91 4 9  PRINT L N GO TO 30010  CLOSE N STOP   PRINT  Insert a non data disk into DX1  if you don   t want to save the     PRINT    data on the swstem disk      PRINT    new file name  include DXO  or DX1   54 INPUT 018  CLOSE N OPEN 01  FOR OUTPUT AS FILE 91  FILESIZE 39   OPEN  OUTPUT ANA  FOR INPUT AS FILE 92   IF END  2 THEN 310504 LINPUT  2 L   PRINT 91 19  GO TO 31040  CLOSE N PRINT  Re  lace data disk     STOP    
15.    X  1 THEN 20820          1 18    2 50 TO 20830        1    2718     GOSUB 20550 NIF   1 gt   6 THEN 20870 NIF Xi  X4 THEN 20870  PRINT C93   VEC           XL B Y14PSNPRINT   6    9           12  1 3  1   1   5  IF P520 THEN 20860  PRINT C  JUMP  Q941 PB84INT  X1 12  8 NPRINT X   NEXT I8  IF 05 0 THEN 20990          4          1990 TO                7  1 THEN 20890     01 19 02160 TO 20900     01  0271 9  GOSUE 20550 NIF   1 gt   6 THEN 20910 NIF   1 lt   4 THEN 20910  NEXT 19  FOR 18219 1       800 STEP  1 IF Y7 1 THEN 20930  YeQ1 18  Q2NGO TO 20940      01   02718   GOSUR 20550 NIF   1 gt     THEN 20990 NIF   1 lt   4 THEN 20990  PRINT CSP UEC  3X1  Y13X19QS  YINPRINT   9 7             1   14  1 059  1  IF 05 gt 0 THEN 20980  PRINT C   JUMP  JO9 INT Y1 14  5 PB LEN STRS CY  NPRINT STRS Y   IF PS LEN STRS Y   1207 THEN 20980 NP sPS LEN STRS Y   1  NEXT IG PRINT C  MON H    RETURN  PRINT    FILE ININPUT L3 NOPEN LIS AS FILE  7  INPUT  73L3S FRINT L3 NIF END 97 THEN 65020 NGO TO 65010  CLOSE  7 PRINT  PRINT         OF FILE    GO TO 1000          93  PLT200 BAS    The PLT200 BAS program is overlaid in response to the GRAPH  command  Lines 20050 to 20240 are identical to GRA200 8AS and serve  to extract data points from the 2264 buffer memory and plot them on  the 4025 terminal  Lines 20250 to 20990 contain a set of general  purpose graphing routines to drive the 4025 graphics terminal  These  routines  called EASYG2 BAS  normally reside in lines 17000 to 19700  but have been 
16.    lt 2200 THEN 18290   PRINT CHRS 7 3    WARNING  GRAPH WILL USE MOST OF THE SK DISPLAY RAM      RETURN   REM LABELS NUMBERS   PRINT C 3 WOR H      PRINT CS    JUMP   309433 INTC CPEFP9 LENCXS     2    PRINT X83   IF   7 gt 1 THEN 18340     7 2   FOR I9  1 TO LENCYS     PRINT C    JUM    INT CQ8 Q09 LENCY    2   19  P7 1   PRINT SEGS Y   I9  19    NEXT I9   P72P7 2   PRINT C   MON         RETURN    REM AUTO TICKS AND SCALES   DO X AXIS FIRST    PRINT C   wOR H     Pl P4N 01 04  REM TICK START AT AXIS CROSSING  Q3 ON REM TURN OFF Y TICKS       X7 1 THEN 18480  P22107INT LOGCABS XS X3    LOGC100 N REM LARGEST POWER      TEN THAT FITS  P2 P2 10N           REM MINOR DIVISIONS  GOSUB 19400  P2w10xP2  IF   2 lt  5      5       3 2 THEN 18460  P2sP2 2         2  GOSUB 19400  GO      186404  REM NOW FOR Y AXIS          0          2  REM MAJOR DIUVISIONS    LABEL THEM  GOSUB 19409  P3 1  FOR 1792 TO 9  P1 I7 P4  GOSUB 19400  NEXT 17  REM NOW Y TICKS    3  0  REM TURN OFF X AXIS    750           INFLEBGCABSCYS Y322 L06 100 8 REM LARGEST POWER OF TEN THAT FITS  02 02 10  03  1  REM MINOR DIVISIONS  GOSUB 19400       18700  18710  18720  18730  18735  18740  18750  18760  18770  18780  18790  18800  18810  18820  18900  18910  18920  18930  19099  19002  19005  19006  19908  19910  19920  19030  19040  19050  19060  19070  19080  19085  19090  19100  19110  19120  19130  19140  19200  19204  19210  19220  19230  19240  19243  19245  19248  19250  19240  19270  19280  19283  19285  19298
17.   0   1013   1   1007   21  9   0   1014   1    1008   113   105   4   1015   1    1009   114   105  4   1016   1    1010   103  103       1017   1     1011   BLK  1ST TH STEP  SMPL   LST TM GAIN OFSET ERFLG CKSUM SRIAL    1012   9    2000   50   256   10750   31 1   1   O   1000009169995      1013  10    2000   50   254   10750  1  0   Q   100000   169995    1914  11     2000  50   256   10730  1       0  100000  149995    101    12      2 5   1024   2557 5  1  0   0  100000  159 43465  1016   16   Os 2 5   1024  2557 5   1       0   199990   159436     1017   20   9   2 5   1024   2557 5  1   9   0   199900   159435      1018                 PARAMETERS   1019  LNS               LEN OFST   1020206221002   8   93  3    1021     1022  POSITION INFO   1023  CAT OFS        DLN   102491015 15       3    1025102   21       2    10262103   25       4     1027104   33       5    1028  105   41       5    1029  106   49      1     103021075 S3       1     1031 900   56   2   2    1032  ensaeesLAST LINE      PARAMETER FILE HEADERszszzSTART USER INFORMATION   2222  1033        1034  CHAMBER   1035   GAS ID 9 PRESSURE T  GAS           1036  999  2 09   97   BASE  1037  101  5 80   03 02 FILL  1038  00   0 00   00      103    039   1040  PUFF FILL  1041  UVALUE ID    TIME  4TO  PRESSUKE T  GAS ID   GAS NAME    1042   01   90   0 0E 90   101   02  1043   90   09   0 0   00  09    1044      1045             TRIGGER TIMES  USEC   1046   UNIT   TRIG  TIME    TO     1047  1  13300  1048   2  
18.   19290  19300  19320  19330  19340  19330  19360  19370  19380  19400  19405  19410  19420  19430  19440  19450  19455  19460  19470  19475  19480  19485  19490  19500  19510  19520  19530       137    02210102        02 lt  5 488   5       THEN 18730   02202 2   Q3  2N REM MAJOR DIVISIONS     NUMBER THEM   GOSUB 19409   GO TO 18820   02 10  Q3  2N REM MAJOR DIVISIONS      NUMBER THEM  GOSUB 19400   Q3 1   FOR 1722 TO 9   Q1 217 04   GOSUB 19400   NEXT 17   RETURN   GOSUB 193004 REM AXES   GOSUB 184005 REM TICKS NUMBERS   GOSUB 18300  REM LABELS   RETURN   REM CONVERT FROM DATA TO SCREEN COORDINATES   4922   REM ENTER HERE IF POINT IS TO BE OUTPUT AS WELL      REM IF W920 THEN MOVE TO XY   THEM SET           DRAW FROM OLD XY TO NEU XY  IF   7  1 THEN 19030    X1 INT  X X3 4 X8 X4  S    GO      19040   X12INT LOGCX X3 xx84 X49   3    IF   7  1 THEN 19070     1               32    8   4  5    GO TO 19080   Y1sINT CLOG Y Y 3      8  5    IF 49 1 THEM 19130   IF 4922 THEN 19120  REM 49 2 IS    CONVERSION ONLY  49 1   X22X1   Y22Y1   RETURN   PRINT C83  VEC  3X2   Y23X13 V1   GO TO 19100   REM SET UP        SCALE FACTORS X8          P42X3X   4       REM SET ORIGIN AT FAR LEFT BOTTOM CORNER  IF X721 THEN 19240   X82  X6 X4   X  X3    GO TO 19250   IF XS  X3 lt  gt 0 THEN 19248      C    MON HILOG ERROR LEFT        5X33 RIGHT       xS  STOP   X82 X6 X4    00    5   32   IF   7 1 THEN 19280   Y8  Y6 Y4   YS Y3    GO TO 19290   IF   3    5 lt  gt 0 THEN 19288    PRINT C   MON H LOG E
19.   3   gt 0 THEN 20680  PRINT C   MON H LOG ERR L          3  3 2              555        X82 X   X4  LOGCXS X3   IF Y7 1 THEN 20700 NY8s Y   Y4  C YS Y3 NGO TO 20730  IF   3    5 lt  gt 0 THEN 20720  PRINT               H LOG ERR ROTM           3           Y       YSNSTOP  Y8s Y6 Y4  LOGCYS Y3   RETURN  xXaP4NY2Q4NGOSURB 20550  PRINT CS 3  VEC       Y15 X65 Y1  PRINT Cs  VEC    3X19 YA 5 X13 Y6NRETURN  PRINT            H   NPSsINT   CABS     amp    4   100   2           SmINT     ABS XS6    X4  100 42    283            0 THEN 20870       04  FOR 19 0 TO BOONIF X7 1 THEN 20790  XsP14I9RF2 G0 TO 20800  XaP1x P2 7I9   GOSUR 20550 NIF   1 gt   6 THEN 20810 NIF   1 lt   4 THEN 20810  NEXT 19  FOR 18 19 1 TO  800 STEP  1 IF X7 1 THEN 20820 NX P 1 I8xF2NGO TO 20830  XsP1x P2 718   GOSUR 20550 NIF X1 gt X6 THEN 20870 NIF   1 lt   4 THEN 20870  PRINT CS  VEC    5X13 Y13X15 Y14 P SNPRINT Cs   VEC  X15 Y1sX13Y1 PT    242       20850  20860  20870  20880  20890  20900  20910  20920  20930  20940  29950  29960  29965  29970  20980  20990    101    IF PS gt O THEN 20860  PRINT C   JUMP   Q9419PB INT  X1 12  8  PRINT X   NEXT I8   IF 05  0 THEN 20990  X P4 FGR 19  0      SOONIF Y7 1 THEN 20890     01 19  02460 TO 20900        11  02719     GOSUB 20550 NIF   1 gt   6 THEN 20910 NIF   1 lt   4 THEN 20910            I9         I8919 1 TO  800 STEP  1 1   7781 THEN 20930   Y Q1 I8xQ2NGO TO 20940   YsQ1 x 02 718    GOSUB 20550 NIF   1 gt   6 THEN 20990 NIF Y1 lt Y4 THEN 20990   PRINT C83  UEC   
20.   An ex   ample of a data analysis program is discussed in Appendix D    As new hardware is acquired  it can be added to the software           mand structure simply by adding the appropriate information to the con   figuration file and adding the command and controlling routines to the  main calling program  The hardware need not be limited to the CAMAC  equipment    At present the software is written as a series of overlaid segments  due to the limited amount of memory in the 11 04 minicomputer  When  additional memory becomes available  all program segments could be resi   dent at once  This would eliminate the delay caused when segments are  overlaid    The execution time of the graphics routines could be improved by  writing these routines in assembly language and linking them into the  BASIC language  These routines would then be available as callable  functions as are those discussed in Sec  4 5 and Appendix B  The Tek     tronix 4025 terminal can be driven by the older 4010 style commands     81             82    These commands        in    more compressed form which is less convenient  to use but considerably faster than the 4025 commands for the present  application  If the graphics routines were written in 4010 style com   mands and then linked into BASIC  both speed and convenience would be  preserved    Some improvements and additions could be made to the user functions  that have been added to the BASIC language  As a safety feature  a  routine could be written 
21.   POWER FROM CAMAC DATAWAY    Fig  3 12  Switch Position Readout Logic for 6 Channel Analog Buffer    32       Also  variable sweep time and a delayed trigger feature allows any  portion of the waveform to be expanded in time  A block diagram of  the display driver is shown in Figs  3 13 and 3 14    The final module in the present system is a LeCroy model 2232A   32 channel  scanning DVM  This unit contains a single ADC which is  multiplexed over the 32 inputs  The voltage at each input is converted  to a 12 bit binary word and stored in a local 32 word X 12 bit buffer  memory    With the present configuration only 5 of the 25 CAMAC stations  are free for future expansion  Many of the modules  however  draw only  their DC power from the crate and make no connection to the Dataway   These modules could reside outside the crate which would then leave 13    stations free for future use        33       34                Aetdsig pauueyy Z 30 ueu6eig 42048                     193135        AV130                 Jo3eJoeuas                                            4  31  9                            d33MS       319815         A                      gt  0  v A   g       21901    da3MS  319NIS  _  W 31Vv9    43305    100                      AIINS 1          319NIS RECLINE           O  d33MS e NIVW   d33MS  4344n8 1                     gt  SNONNILNOD       35      1            30                300     1                  0133130 l 23185 13  31 1574                      104100     u34
22.   to the computer starting at line 51  subroutine to reset terminal after computer  has read workspace   subroutine to set F3     first twenty  characters of first line of workspace   subroutine to check time and store in variable    1 in seconds after midnight   execute TITLE command   logic to determine which overlay is present  and which needs to be overlaid    contain the PLT200 BAS program          89    65000 to 65020 subroutine to  dump  a sequential file on    the terminal  e g  no options   entered by    the BASIC GO TO 65000 command          90    02 JAN 80 COPY OF GURNEW BAS   OPTION I LPRINT U1 BB  10 CSeCHRS  33  NB2 9CHRS  7   590 N  120    109  110  200  210  220  230  300  310  320  330  400  410  420  430  440  450  500  519  520  330  540  900  910  920  930  940  950  960  970  980  990  995           CHECK DATE  IF         lt  gt       THEN 200 NEI9S1NPRINT B2S PRINT    SET DATE                  CHECK TIME   L PEEK     64eD  CALL  PEEK  D42  A6 NA69A64D42N  IF 71 gt 14400 THEN 230  E1 1 PRINT BIS PRINT    SET TIME sues     IF      lt  gt 1 THEN 300  PRINT    GO BACK TO RT 11 NCRASH        IS ERROR CODE  REM OPEN INIT  FILE      CHECK IF NEW START      RE START AND SET SHOT    OPEN  INITIA LIZ  AS FILE VF19 20s16NIF VF1 1  lt  gt DATS THEN 330  PRINT    LAST SHOT      UF1 2 0   ENTER TRUE LAST SHOT      S INPUT SS  VF1 01  DAT NVF1 2  STR  SS NCLOSE VFL  TS 1 REM CONVERT          TO DECIMAL  YY MMDD  NSBPOS  DATS       91   READ L3S IF   36  9  0        69 
23.  1    is    OPTION I       LPRINT U1  Bk                       POSTRIG SERIAL 9     2        2264   1   169436  2  146  2264  2 169995  2  15  2232 2  00   169994  Or       090    00              Hardware Configuration File  LPRINT 91 88   OFST        1024 1ST TM        SMPL LST TM STEF  1    9       2000   256   9   50        0        2000   256   Ove 70  9   9   0   22000   256   9    0   105   4   9   1024   Or 2 5  0   105   4   0   3024  9   2 5  0   109  3   Or 1924   9   2 5    1        b  Typical    Format File    4 2  Store Routine Information Files    46                          A                             47    letter commands in the branch table  If no match is found in either group   the program reprints  ENTER COMMAND  and again waits for input     1156 of    available commands and their meaning is given in Appendix C     Sec  4 8 PLT200 BAS       When OVRNEW BAS is loaded into memory  it contains the  PLT200 BAS   program residing in lines 20050 to 20990  Note that this is the space  where all overlays will occur     The PLT200 program responds to the  G  or   GRAPH  command and will plot data  presently in the CAMAC buffer  on the  graphics terminal  The operator has control over the size and scale of  the graph  the number of points plotted  and the type of line used  solid   dotted  etc    Several graphs may be drawn in separate portions of the  Screen or can be drawn on the same set of axes     flow chart of the  PLT200 program is shown in Fig  4 3 and a 
24.  11 04 to communicate with the central campus com   puter  via modem and timeshare lines  but the unit has been useful as  a general purpose monitor  The front panel of the interface is shown in  Fig  3 6 and a schematic is given in Fig  3 7  The unit is typically put  in series with the 4025 terminal but can be used in any RS 232 serial link    Through switches on the front panel of the interface the operator  can connect either terminal to either computer or have the two computers  talking to each other  Three LED s on the front panel monitor activity  on various data lines and can be used to debug problems in the communica     tion link     Sec  3 6 Terminals   The LA36 is a general purpose terminal using a standard ASCII key   board for input and a 30 character second impact printer for output   Input and output transmission rates  baud  must be the same and are switch  selectable for 110  150  and 300 baud  Detailed information and main   tenance procedures for this terminal can be found in the LA36 User s  Manual    The Tektronix 4025 is a             based graphics terminal    using an ASCII keyboard for input and a CRT for output  The 4025 is       23    LED  INDICATORS                             ENABLE             370            2 370                     370    FROM   MONITOR  PDP ALL DATA    MODE SELECT SWITCH    O DATA DISABLE  PATH PRINTER 1      0  DISABLE Z  PRINTER 2            C     OFF       POWER PILOT LAMP    Fig  3 6  Front Panel of Communications Interfa
25.  20710  20720  20730  20740  20750  20760  20770  20780  29799  20800  20810  20820  20830  20840    60508 5000  PRINT                       CHANNEL   INPUT       YS    CHANNEL     STR  C3 NF2s1NF8 1NF9 1NIF M8s0 THEN 20090    POsP9410NF7291NFBsONF9uONIF                 6   42 82 1 lt 80 THEN 20090  P0 7NQ8 09 5S    Fe1NGOSUBR 7900  NeDNGOSUR 2500 NN   FNC X NIF C32N8 THEN 20210  PRINT 79 SMPLS   MULTIPLES OF  293 0   1ST SMPL       NINPUT                                 IF   4 lt 25 THEN 20220  F 26 GOSUB 7900  F 10 GOSUB 7900  S 9FNA C3 NGOSUB 2912  Fel  6 GOSUB 7900  CALL  FAST  A950  A3Ss0sQ  D     241  7 1 2    3 2  1  7   3 2  25  3  435     43   4   605    20650  04  0  IF 0       THEN 20160  GOSUB 20250  W920NMSSINT HA ZS NXSAJNFOR 1180      ZS CALL                     02   5  25650   YO  Sea 20560 NX X HSNNEXT I1NIF 0821 THEN 20190  GOSUR 20540  M  GOSUB 2000  S7s0 Fe24 GOSUB 7900  S7 FNA C3  F 16 GOSUB 7900  8G TO 1000  PRINT  CHNNL NOT SMPLD    GO TO 1000  PRINT    NOT ENOUGH    GO TO 20110  REM  REM  Q92084  INT Y6 14  NP9sP84  INTC X6 8  IF 08 lt 0 THEN 20270  IF Q8  09 THEN 20270 NGO TO 20280  FRINT    ERR         SIZE OR POS  Q8      083    Q9e    sQ9 STOP  IF P9580 THEN 20300 NIF P8  1 THEN 20300 NIF        8 THEN 20300  GO TO 20310  PRINT  ERR HORZ  SIZE OR POS               8                956        IF F9  0 THEN 20340 NIF 0943 31 THEN 20330  PRINT CS88   WOR 20     PRINT C   MON          WS gt 30      SCHRS 7  GO TO 20340  PRINT CSi    WOR     Q943  IF F8
26.  3    6   J FNI OsN   N GOSUB 2000N IF   5 lt 20 THEN 1170   PRINT 058          CROSSINGS THRU     Z2  FROM  3FNTCB3JsN6 3  TO    SFNT CE39NS  5  PRINT    USEC      81401 C1 ON 52 0    2 0    1 0  Z320  NS  4N GO      12OQN REM  TAKE CARE OF NO CROSS  23  1  7 71   5  520  W1 FND Z3 N6 N CI2FND CZ3 N7 N S13FMD CZ3  N8   S2   C1 COS A1  SIN CA1  S1 SIN CA12N M12SQR CS2 724C1 72            1  S8 S2N GOSUB 5000  A2 T8   FOR        TO 2 STEP 2   PRINT  U  SEG  D95   551403  s  IENFS  R15  2   60  3FNEF CZ2  5 2   SDFNF  NS 2   32    PRINT  U FNFSCFNT OM45N62051  7                         5    6   7 1   7                       21   5    4      1   7    PRINT               51 2 5         9  012  4           6  52  2  7           42  277  3            1 1 7   NEXT UN GO TO 1150             PRINT  U  USEC    F8  0           0  Q8 Q9 SN CLOSE 91  CLOSE 7   1291242 GO TO 1010   MS ON 21 0  FOR 13 83 TO ESN IF                6 4  22 THEM 2010  14 125 GO TO 2030  IF                         4  22 THEM 2020    GO TO 2040   IF  FNDCIS3sN60 220 CF NDC I3 4 19N6     Z2  gt 80 THEN 2040  14  3  5  GO TO 2030    5    5 15 21921 14   MSsI4   IF   5 gt 1 THEN 2040  M4214   NEXT ISN IF   5 lt  gt 0 THEN 2050 PRINT       Zeros     GO TO 2080   PRINT NSi  Zeros  Mina    3F1 N4 4S1 N4 8M43    Sec  72   PRINT               6 21   4   51   4     5  uSec             1   4  51   4 221   5     Sec                 71   5   405 Y Y3N W9 ON 60508 190055       55 60508 19005   RETURN   REM  FNS HERE   DEF FNT
27.  3 14 Continuation of Fig  3 13                                35  4 1   Flow Diagram of the Initialization Portion of OVRNEW BAS   44  4 2 a  Hardware Configuration File                    e     46  4 2 b  Typical Format File               lt   s  lt     lt  s ee      46  4 3 Flow Diagram of       200     5               48  4 4 Flow Diagram of 570200     5               50    vi       Typical Parameter File      Probe Position and Orientation  Typical Data Header        Flow Diagram of RED200 BAS      vii    Page  52  55  59  64       CHAPTER I  INTRODUCTION    As experiments and diagnostic methods become more sophisticated   the investigator is faced with an ever increasing amount of data to  assimilate and analyze  The data are often in the form of voltage and  current waveforms which may not be meaningful until combined with other  information or transformed mathematically  Also  data must be archived  in such a way as to be easily retrieved for comparison and analysis    The advent of digital sampling and control equipment combined with  the falling prices of small computer systems has greatly reduced the  investigator s plight  Technological advances in magnetic media have  also made the long term storage of large amounts of digital data both  feasible and cost effective  Once stored in digital form  the data can  be manipulated quickly by a digital computer  To realize these advan   tages  a digital data acquisition system  as illustrated in Fig  1 1   has been develo
28.  3 19  343  THEN 430 NIS IS IN T 2  DUSVAL  SEGS  DAT 859    415 1004 UAL  SEGS  DATS 12213710000 5 59  025  5  0  57    03  1  92 15  0  57  9 03 4700     4  725046  02 9  DATA  JAN    FEB    MAR s    APR       MAY         JUN  v    JUL           s    SEF                         DEC   OPEN  POM CONFIG INF  FOR INPUT AS FILE  1 INPUT  1 L3S FOR 11 1 TO 4  INPUT  1 N35 01 I10sQ2 I12903 112  QACI120  05 11 05Q06 I1   NEXT IINRESTORE  1 PRINT C8   WOR 20 H     INPUT  23LIS PRINT L3S IF END  1 THEN 540 NGO TO 530             C  MON M NCLOSE 61  DIM 01 4  0 2 4  23 4  04 4  05 4  06 4   DIM B 16 NO8 ONN8 0NZ5 100NY3  130NYS 130NCS 2NS8 6NS2 70  DIM   4 10     210  3020     01 10   61 10    01410   TC10  sF1C 100     2  10   DIM   3620  952610  0h 6C11  061610  012  10  028    GRA    B182    i  F7 1NF8   1NF9 1NPRINT C   LIN 17   N08 3NP08 7NX      TIME NS3 100000  Y        DIGT          5      4  05  6   001  64259   4  01  264  7  0 FARMS NGOSUR 2912  PRINT  PRINT  PRINT    DO NOT USE THE RUN COMMAND TO REENTER THIS PROGRAM     PRINT    IF PROGRAM SHOULI STOP OR CRASH USE     60      1000  TO REENTER     PRINT  PRINT NPRINT    WAIT PLEASE NOVERLAY  PGM CLRLOW NPRINT  PRINT B2   PRINT    ENTER PARAMETER FILE NAME    ININPUT F1 NP1      PGM      F1   PRINT  ENTER OPERATOR    S NAME  JNINPUT N16NGO TO 2905    1000 PRINT B2S PRINT  ENTER COMMAND  5   1010 INPUT C1S  C1SHTRMS  C216   LeLEN C1S  FS eSEGS CiSsisZ3  IF                THEN 1400  1015 FSeSEGs Ciseils3S  IF FSe   STA    THE
29.  NsR  F1 R  NxXS1 R N         GIVES TIME FOR SAMPLE    IN RECORD R   DEF FNI NsR  N  B1 R     1 425S    N         GIVES VF INDEX FOR 5         IN REC R   DEF       5         5  209 89   1   C LENCSTRS CXO      5    9               PAD X TO    PLACES  DEF FNROX  NO SSGN OO XINTGOABSOX  310 N9  5  10 NN         ROUND X TO    DEC PLACES  DEF FNF OX   N  COSFENJSC CFNROX NO   C 120     N               X to N DPs  add    in C cols  DEF FND NeR  sGORG1I R       72         1       1   296            GET SMPL   N REC R  MUOLT  DEF FNNMCT  ROSINTC SSOT F1 RO  SIC RO N         GET SAMPLE   FROM TIME   DEF FNBC U   ROsSENRCU CGOXG1C R22  0 N         CONV  VOLTAGE BACK TO RAW BIN   IF       0 THEN 5020  T8sATNCSB CB N GO      5050  IF 58429 THEN 5040   T8 QN PRINT  ATAN2 ERROR   N RETURN  T8  P 2 SGN S8    IF C8  0 THEN 5080   IF T8   0 THEN 5090  T8 T8 2   PN RETURN   T8 T8 P   RETURN    10010 REM FROGRAM TO RETREIVE STORED SIGNAL AND PLOT IT          B29eCHR  7  135  OPEN 059 FOR INPUT AS FILE 91    OPEN 056 FOR INPUT AS FILE  74 DIM  CINPUT     97  272  10090              1001          10080  NT B293 BAD FILE  FIRST LINE WAS        PR  oe 91 LS F6 F1 SS R2 N3 N3 N3 R3 RA PNN LI O N     F   101 THEN 10100  PRINT    UNKNOWN        27             Gaede 13008 WROTE       5   3  4  FOR     1 TO R2  INPUT 91 24 571 12 gt   1   19511  1 9  1  19               11160  1         T13   2        4 1  NEXT I  L   R3 R2N GOSUB 11000  FOR        TO R2  L   H1 I N GOSUB 11999  INPUT  1 1 5  81 12    
30.  a 32 channel scanning  DVM for single sample data  Nine analog buffers have been built  a 3    channel prototype and a 6 channel final version  to amplify and filter     da          3 10        29    Vertical  Scale  1 V cm    EMI Induced on Unibus During Tokamak Discharge          30         the signals  if necessary  before digitizing  A 2 channel driver has  also been built to display data on a Tektronix 604 monitor    The two 8 channel digitizers are LeCroy model 2264  each occupying  three CAMAC stations  The model 2264 consists of a single ADC which is  multiplexed over 1 to 3 inputs  The maximum sampling rate 15 4 MHz for  a single channel and 500 kHz for 8 channels  Each of these digitizers  requires a LeCroy model 3800 8 buffer memory module for storing the  digitized data  Front panel controls allow the user to select the  sample rate and the number of channels to sample  These units also  have the ability to record pre trigger data as well as post trigger  data  The front panel switch positions can be read  but not set  by  the controller    The 9 buffer amplifiers have been built to provide a 1      input  impedance for the diagnostics and 50 Q drive capability to accommodate  the 8 channel digitizers  The buffers also provide input over voltage  protection  low pass filtering  and switch selectable gain  The 6  channel version has 12 gain settings from X0 01 to X100 and includes a  logic circuit which allows the controller to read the setting of the  gain switch
31.  for each channel  The schematic for a typical buffer  channel is shown in Fig  3 11 and the position readout logic is shown  in Fig  3 12    The 8 channel digitizers also include a DAC circuit to reconstruct  the data stored in the buffer memory for display on an oscilloscope  A  2 channel driver has been built to display this reconstructed data on a  Tektronix 604 monitor  The driver includes vertical position control       1 or X10 vertical gain  and a choice of continuous or single sweep              a 48j4ng               auueu  9 40 21                11    Gld         ooos 21  01 zz 06 9  06   002 ill            6  q   ose 01  2      gor  ol zz 006 6     0o         S 6   052 8       oee se 2      2l 028     99  850151533  59178 2 8  ASI o  34002 91    22   ASI act             X00 ASI                   ni    149 2 5    5000                 T                          1 1 6   7        20001 2     lt       ema ili      Ty 8 My 31  01          0037                               Andino               Ir                        VIGNI 530010 P         i ASI   1                   AVMWLVG OVWYD VIA S  u3MOd 90                         NOILISOd STANNVHD 19110301 XIS 30 3NO  j  2  M 1104 2               6  12 POSITION    DECODER       gt      gt               D      SN74147  H 0  4  W ENCODER       Y       LCS      QUAD 2 INPUT NOR 7402  B  QUAD 2 INPUT OPEN COLLECTOR NOR 74LS33  C  QUAD 2 INPUT OPEN COLLECTOR NAND 7403        DUAL 4 INPUT          7420  F  8INPUT          7430    D C
32.  group include   SWAP SAV TT SYS DXMNSJ SYS               DUP  SAV DIR SAV   STARTS COM TITLE TXT  Files in the second group include   0 5     CONFIG INF  FORMAT FMT MACHIN DAT  570200      5  GRA200 BAS PLT200 BAS OVRNEW BAS  FIXRED  BAS  RED200  BAS DATA HED DUMMY BAS  CLRLOW BAS  The rest of the files on DXO are useful support programs which are kept  on the system disk for convenience but could be removed if more room were    needed on the system disk     Sec  4 3 System Programs  All of the files in group 1 with the exception of TITLE TXT are    RT 11 system files and are discussed in the RT 11 documentation  The use  of the TITLE TXT file is a local convention which was introduced to aid   in disk identification  The TITLE TXT file is a one block text file con   taining the disk name and number  if applicable  and a brief description  of the contents or purpose of the disk       opening and reading this file   a computer program or remote operator can determine what disks are in    each drive        40    Sec  4 4 Data Disks    EAN AN NLT             ERE EMO     Before a blank disk can be used  it must be formatted by the RT 11   initialize  command  If a disk is going to be used as a data disk for  the storage routines it must also be formatted by the  CREATE BAS  program    which creates the files shown in Table 4 1  The title of a data disk will    always have the form   DAxxx  e g  0  006     where  xxx  is a three digit sequence number  The title file will also  co
33.  instructions for the data storage routines to move data to and  from disk files  In closing  Ch  VI discusses some logical areas for    future expansion and improvement of the system           CHAPTER II  THE CAMAC STANDARD            2 1 Introduction   This chapter is intended as an introduction to the CAMAC Standard  in general and not as a description of the data acquisition system  discussed in the rest of this report  An understanding of this material  is not required to run the present system but may prove helpful to  persons intending to specify new CAMAC equipment or those writing con   trol programs for the equipment    The CAMAC Standard  is the result of a combined effort in 1975  by the Nuclear Instrument Module  NIM  Committee of the U S  Energy  Research and Development Administration  now DOE  and the ESONE Committee  of European Laboratories     The CAMAC Standards have also been adopted  by the Institute of Electrical and Electronics Engineers  IEEE   These  standards were developed to simplify the hardware and software efforts  involved in interfacing between an experiment or processing system and  the diagnostics and control equipment required to monitor the process   Standardization of control and data signals within the CAMAC system   as well as the physical and electrical specifications of the hardware   allows for simple and inexpensive modification and expansion of the  system as requirements change    The individual CAMAC modules can usually work on 
34.  load a Format file into the  workspace from the system  disk    only if a new file is being    loaded from disk    using the same file name will    replace the old file    up to 57 characters    After this point  no more input is required from the opera     tor but the program will print several status messages as    it executes        SUBADDRESS     TITLE     CRATE     DATA     Only    75    allows the operator to modify the CAMAC subaddress  example  SUB  CR     ENTER SUBADDRESS     n  CR  n   0   15  adds or changes record titles in the  TITLE REC  file  example  TIT  CR      TYPE    nnn  CR  nnn   record type number   TITLE    ANY TITLE  CR  up to 12 characters    Single Letter Commands  the first letter of these commands needs to be entered   advances through the 2264 buffer memory by executing a  series of     F 2  commands  the           data word can  then be read with the R command   example  A   CR      1   32767 data words  allows user to modify the default crate and station numbers  used by the system commands  the STORE  PLOT  and READ  routines set these values automatically   example      CR     ENTER CRATE  STATION      2  16  CR  address module in station 16   of crate 2   changes the number of data points used in the graphics  routines  the 4025 graphics terminal creates plots by    connecting a fixed number of data points with straight             ENQUIRE     GRAPH        76    lines  The default number of points is 100  Using more  points will increase th
35.  ns and gates  the information into the crate controller  or to the host computer   The  52 signal  issued at t   700 ns resets the status lines and signals the  end of the Dataway operation  e g  may re arm the ADC for the next sample      11 data and command signals      the Dataway        TTL level negative logic  signals  e g  logic 1 is  lt  0 8 V  logic 0 is  gt  2 0 V     Three special commands  called  common control signals   operate on  all modules simultaneously  These commands are the initialize  2    clear       and inhibit  1  signals  The initialize signal is used after  turning on the crate to reset all internal registers to a defined state   This command has priority over all Dataway operations  The clear command  is used to reset all I 0 registers connected to the Dataway and the in   hibit command will halt all activity on the Dataway  without losing in   formation   As a safeguard against loss of information  the initialize  and clear commands require the So Signal to be present before they will  execute    In closing this chapter it should be noted that this material has  only cited the major aspects of the CAMAC Standards  Detailed dis     cussions of the standards are included in the literature of Ref  3                       111  EQUIPMENT    Sec  3 1 Introduction    The equipment making up the data acquisition system was chosen for  its flexibility and expandability  As mentioned in Ch  I and shown in  Fig  1 1  the major components of the system are 
36.  required by the DCC 11 controller in order to execute  F  commands and  common control commands  as discussed in Sec  2 5   The method by which  the commands are executed is discussed in the DCC 11 User s Manual  The   FAST  routine simplifies the reading of data and status information from  the waveform digitizers  The  FREM    EXEC   and  POKE  functions allow  machine language routines to be loaded and executed by a BASIC program   Listings of the macro programs for these functions are included in  Appendix B  Instructions for using these functions have been added to  the BASIC User s Manual    In order to run the storage routines the operator must be sure the  copy of BASIC on the system disk has been modified to include these  functions  When BASIC is downloaded  the message  USER FUNCTIONS LOADED   must appear on the terminal    The BASIC programs and other files which make up the storage routines  are    DATA HED CONFIG INF FORMAT FMT                        PLT200 BAS OVRNEW BAS STO200 BAS RED200 BAS   CLRLOW BAS GRA200 BAS FIXRED BAS DUMMY BAS  Each file with a  BAS type is a BASIC program which is overlaid onto the  main calling program   OVRNEW BAS   The result of an overlay is the same  as if the new program were typed in from the keyboard         old lines with    corresponding line numbers in the overlay will be replaced by the new lines           43    All variable values and dimension statements        preserved and execution  resumes at the next line number f
37.  see Sec   5 7 and Appendix C   The response to an  F n   command will depend upon  the particular module and its function  For example  with the 2264   8 channel digitizer an F 9  will start the digitizer  and an F 26  will  stop the digitizer  this can also be done from the front panel of the  2264   CAMAC commands and their responses are discussed in the User s  Manual for each module    If the system command being executed requires a new program segment  to be overlaid  the message  WAIT  PROG   where  PROG  is the name of the  segment  is printed on the terminal     5 to 15 s delay  depending on  the length of the segment  is incurred before execution as the segment  is loaded into memory  Once loaded  a segment remains in memory until  another segment is required  The commands which call for overlays are    GRAPH   PLT200    STORE   STO200   and  READ   RED200     11 other  system command routines are contained in the main program and are avail     able to all overlays     Sec  5 7 System Commands    There are presently 26 system commands which can be executed in  response to the  ENTER COMMAND  prompt from the main calling program   Commands are recognized either by the first three letters or the first  letter entered  the rest of the word is optional  e g   STOP  would be  interpreted as  STORE    The entered command is checked first against  the three letter entries in the address table  lines 1010 to 1100 in   OVRNEWM BAS    If no match is found  the command is chec
38.  serial interface board   Unibus terminator  9302    LA36 printer terminal   RT 11 real time operating system    Documentation kit       15    execution can be interrupted  e g  as the                is being fired to          tect against noise induced errors  and resumed without loss of informa   tion  Through a slight modification of the front panel PC board and two  additional switches  the halt run switch has been made available at a  remote location  within the experimental screen room  as well as on the  front panel  These modifications and additions are shown in Fig  3 1   Additional LED s on the front panel and in the screen room indicate    which halt switch is enabled     Sec  3 3        0111 Serial Interface   Communication between the computer and the user is via the DL11 W  serial interface board which plugs into the backplane of the computer    The DL11 is a buffered communication interface which allows for the  exchange of parallel information from the computer with serial information  from the terminal  Also contained on this board is a real time clock  running at the AC line frequency  This clock can be set by the RT 11  monitor and read by computer programs with a minimum time interval of   16 6 ms  60 Hz   Through microswitches on the PC board  the DL11 can be  configured to be compatible with different types of terminals  Options  include separate transmit and receive data transfer rates  known as   baud    odd or even parity  and variable word length    
39. 0    20010 02     GRA NGO TO 20050   20020 IF O29   STO  THEN 20050   20025 PRINT    WAIT  STORE  NOVERLAY  PGM STO200    20030 02 4 5707100 TO 20050   20035 IF 02           THEN 20050 NIF 02   570  THEN 20040   20036 PRINT    WAIT  READS  NOVERLAY  PGMIFIXRED    20037 GO TO 20045   20040 PRINT    WAIT  READ  NOVERLAY   PGMIRED200    20045 02    RED      20050 GOSUB 5000  PRINT  CHANNEL NINPUT        20060                        STRS CI NF2S1NFBsINF9mINIF M8 0 THEN 20090   20070 P amp sP9410NF721NFB2ONF9SONIF                 6   4  82 1 lt 80 THEN 20090  20080 P927 0820945   20090 F 1NGOSUB 7900   20100 N   DNGOSUR 2500 NNBsFNC X NIF      gt   8 THEN 20210   20110 PRINT 7  SMPLS   MULTIPLES OF  255    1ST SMPL      NINPUT HA  A3NASSINT A3   20120 IF H4 lt ZS THEN 20220  F 26 GOSUK 7900 NF 10NGOSUB 7900   20130  79FNA C3 NGOSUR 2912 NF 16NGOSUB 7900 NCALL      5    49  0    3 0 0  0   20140 U2eINT 1 2X C3 2XINT C3 2     X38 43AXS  434H4NGOSUB  20650 04 0  20150 IF OB8  1 THEN 20160  GOSUB 20250   20160 WOSO HS INT H4 ZS  XBAS FOR 11 0 TO ZS CALL  FAST  A9  U2  HS  256s0sYO      20170  20190  20200  20210  20220  20230  20240  20250  20260  20270  20280  20290  20300    GOSUR 20560  X sX HS NEXT I1NIF 08 1 THEN 20190  GOSUB 20540   GOSUB 5000  S7 0 F 224 GOSUR 7900 NS7sFNACCSONFe16NGOSUR 7900  GO TO 1000   PRINT  CHNNL        SMPLD    GO TO 1000   PRINT    NOT ENOUGH    GO TO 20110   REM   REM   09 08 1      74 14  NP9a8PB4 INTCX amp 6 8 NIF 0850 THEN 20270   IF 08209 THEN 2027
40. 0  GO TO 20290   PRINT  ERR         SIZE OR POS  Ga    08           sQ9 STOP              80 THEN 20300 NIF      lt 1 THEN 20300 NIF P9  P8 THEN 20300  GO TO 20310   PRINT  ERR HORZ  SIZE OR POS  P8s   P8  P9    P9XSTOP       20310  20320  20330  20340  20350  20360  20370  20380  20390  20400  20410  20420  20430  20440  20450  20460  20470  20480  20490  20500  20510  29520  29530  29540  20550  20560  20 70  20580  20590  20600  20610  20620  20630  20640  20650  20660  20470  20680  20690  20700  20710  20720  20730  20740  20750  20740  20770  20760  20790  20800  20810  20820  20830  20840  20850  20860  20870  20880  20890  20900  20910  20920  20930  20940  29950  20960  29965  29970  20980  20990  65000  65010  65020       92    IF F9   0 THEN 20340 NIF 0943431 THEN 20330  PRINT CSi UOR 20   PRINT       MON HSERR WUS  30  CHRS 27 NGO TO 20340  PRINT CS   WOR    30943  IF F8  0 THEN 20350  PRINT Cs  ERA W     PRINT C 3 GRA    08  09   8   9    7       1        P9 P841 z 09 0841   2200 THEN 20380  PRINT CHRO 7      GTB      RETURN  PRINT   89          H NPRINT C   JUMP  309433 INT   PB P9 LEN XS    2   PRINT X89 IF   7  1 THEN 20410 NP  2  FOR 19    TO LENCYS  PRINT CS3    JUM    21        08 09          6   29 193  7 1  PRINT SEGS YS I9sI9  NEXT I9NP2eP7 2NAPRINT C   MON M NRETURN  PRINT               H NP1eP4NQ1204NQ3aOXIF X71 THEN 20470  P2210 INT LOG ABS XS X3   LOG 10   NP29P2 10NP3e1NGOSUB  20760  P2 10KF2  IF   2 lt  5      5   5   3  THEN 20460  P2 P2 2  P3se 2
41. 0 go to record header line and read information   20120 to 20140 close data file  set graphics parameters   20150 check number of data points  reopen data file  as virtual file  see BASIC Manual    20160 to 20180 plot data  any system command options  MULTIPLE     OVERLAY  etc   must have been set before    entering the READ command    dd           oT           Y    Pate  gt       We 8    pos        we 99       sas Sra Lie  a  gt  5    20190 to 20200 type directory section of data header  lines    1001 to 1017 in the example in Fig  4 7    return to OVRNEW BAS for next command  20210 to 20220 error messages                           4    PUN       4T    bac    Q        gt        k           02 2       0 COPY OF                  5  OPTION I LPRINT U1 BR 100    20050    20060  20070  20080  20090  20200  20110  29120  20130  20140  29150  20160  20170  22180  20190  20200  20210  20220  20230  20240  20250  20260  20270  20280  20290  20300  20310  20320  20330  20340  29350  20360  20370  20380  20390  20400  20410  20420  20430  20440  20459  20460  20470  20480  20490  20500  29510  29520  20530  20549  29550  29569  20579  20589  29599  20600  20610  20620  20630  20640  20650  20660  20670  20680  20690  20700  20710  20720  20730  20740  20750  20760  20779  20780  20790  20800  20810  20820  20830  20840    PRINT BOS PRINT    DATA FILE NINPUT D3S PRINT  RECORD TYPE NINPUT        OPEN 03  FOR INPUT AS FILE  3 INPUT  3 LES INPUT  2Z L3SNX    TIME USEC     R2 VAL  SEGS  L38
42. 00 NAeUAL SEGS C2S   4  LO NFOR 1121 TO N4NXZ 21NZ SIN Z  C0OS Z NF   NGOSUR 2900  1410 F 25NGOSUR 7900  NEXT 11460 TO 1000   1450 Q8s14 G0 TO 1010   1470 O89 04M8 1 GO TO 1010   1480 PRINT    ENTER WIDTH   HEIGHT      INPUT X    Y6NX  6mX6X8NY62Y  6xX14NGO TO 1010   1500            SEGS Ci1 922L   GOSUB 7900 NPRINT   F  SFNPRINT DNGO TO 1010   1600 O8 ONM8 ONPS 7NQB 3NGO TO 1010   1650 PRINT    ENTER YMIN  YMAX NINPUT Y3  Y9Z GD TO 1010   1700 F 1 GOSUB 7900 NN DNGOSUR 2500 NIF    10   0 THEN 1740  PRINT             TOO        1740 IF    9       THEN 1750 NIF FNCCX  lt  gt 1 THEN 1750  PRINT  ODD FLAG      1750 PRINT FNC X    CHANNELS   SFNT X 3  U SEC SAMPLE         CX  K POST TRIG      1752 NS ENC X  FeO GOSUB 7900 NNSDNGOSUR 2500  FOR 1191 TO   8   176  PRINT            12   JB 2XI1 1  B OOXI1  4NEXT I1NPRINT NGO TO 1010   1800 S7 VAL  SEGS C1 920L    FSINT S7 16  S78S7 F  16   1830 GOSUR 2912  GOSUB 7900  9  0 4096  10                Vi  VOLTS  GO TO 1010   1900 PRINT    PARAMETER FILE      NINPUT    36412 L3 a W    THEN 1940                     8138  1910 PRINT              20 H NOPEN P18 AS FILE  1 12 0   1920 INFUT  1 L39 A PRINT L36NL2 sL2 1NIF END  1 THEN 1930 NGO TO 1920   1930 PRINT Cs MON H NCLOSE  14GOSUR 9400 NF295F3    1940 PRINT CS FOR Y NPRINT C  JUM  NPRINT  MAKE CHANGES NOW THEN ANSWER              1950 PRINT    SAVE NEW FILE  NINPUT L3S PRINT C     FOR          1960    IF SEGS L3   1  1     Y  THEN 1000  PRINT    NEW NAME ININPUT P19NP199 PGM  1P1        
43. 0200  20210  20220  20230    PRINT BS2S PRINT    DATA FILE NINPUT D3 NPRINT    RECORD              INPUT T4  OPEN D3  FOR INPUT AS FILE S3NINPUT      23  L3SN INPUT  3 L3 NX S   TIME USEC     R2wUAL SEGS L3 5 21   285  ONINPUT  3 L3 NINPUT  33L3S FOR J3s1 TO R2  INPUT  3 L3SNTCJ3 sUVALCSEGS L3   6   90 O0 NIF      33  74 THEN 20100 NNEXT J3  PRINT    REC   TA  NOT FOUND IN     D2 NGO TO 1000  L9sUAL  SEG  L3   1 42   NH12UAL SEGS  L3   215   260  NY1 2L29NFOR 114 541 TO Hi  INPUT  3 L3 NNEXT IINL6SUALCSEDS  L3   6   100    ANN2zUALCSEG   03   27   31     CLOSE  34 Y SEG  Y19  36  4722   3   TSTRSCTA NF721NFBS1NF921NLA9  12 1  K2564N2  D3eUALCSEGS L3S  20   22    NIF M8 0 THEN 20150 NP08 Ff  10NF7 1NF8 0NF  0  IF PS4 INT  X6 X42 8  1  80 THEN 20150 NP8x7N08sQ945  IF N2  293 THEN 20210            036 AS FILE UF3ZXNX3sUAL CSEG  L3   12  18    XS2UALCSEGS L3    33   39    NGOSUR 20650  Q4 0  IF O8s1 THEN 20170  GOSUB 20250  W920NHSeEINT ON2 29 0NXSX3NFOR 11   1 6 12  256 TO L4 1 STEP HSNYsUFS3 CIL1   GOSUB 20560  X X D3RHS NEXT IINIF O8 s1 THEN 20190  GOSUB 20540  CLOSE                  03  FOR INPUT AS FILE  3 PRINT C  MON         FOR 2121 TO   2  2 5              3 2L39  PRINT L39SNNEXT TINCLOSE  3460 TO 1000  PRINT    OOD DECREASE 257100 TO 1000         NOT ENQUGH    GO TO 20110         GRA200 BAS and FIXRED BAS are identical to the first 19 lines of    PLT200 BAS and RED200 BAS  respectively  but allow for faster over     laying if    the graphics routines are already residen
44. 0320  20330  20340  20350  20360  20370  20380  20390  20400  20410  20420  20430  20440  20450  20460  20470  20480  20490  20500  20510  20520  20530  20540  20550  20560  20570  20580  20590  20600  20610  20620  20630  20640  20650  20660  20670  20680  20690  20700  20710  20720  20730  20740  20750  20760  20770  20780  20790  20800  20810  20820    F  e101ND19  2  00  1       LS 1001  PRINT B29 FORMAT FILE   XINPUT F1   F1S9e PGHM  1F19 amp   FMT ND292DAS 8SEGS STRS   55 1  1000 1  2  000  72 5   O820NM890NPS27N08s53XPRINT    FILE COMMENT    INPUT COS GOSUB 9400  IF F39eF2  THEN 20120  PRINT CS   WOR 20                      AS FILE 98241220  INPUT   2  LI3S PRINT L3S L2 L241 IF END  2 THEN 20110 NGO TO 20100  S22 2 2NCLOSE  2NPRINT C     MON H     GOSUB 9400  F2S8 F3S PRINT              H     IF   19 lt  gt                        THEN 20130  GOSUB 21320   GO TO 20240       219                        THEN 20190  PRINT CS  WOR H C  JUM 5S2  PRINT   9704 1 100   PRINT    FORMAT FILE   3F1S OPEN   16 AS FILE 91  INPUT  1  L3S PRINT L39NIF END  1 THEN 20160 NGO TO 20150  CLOSE 9 1NPRINT                    JOE S x    PRINT C  MON H      PRINT  MAKE CHANGES NOW    PRINT    SAVE NEW FORMAT    INPUT LIS       SEGS L3S e101  lt  gt   Y  THEN 20240  GQSUB 21320  PRINT    FORMAT FILE NAME     INPUT F1S F1    PGM    32192   FMT    OPEN F1  FOR QUTPUT 3  AS FILE  1  S1sS241NGOSUB 9200  INPUT L3S PRINT S81  L3S INPUT LS3S PRINT 1 133  RIBVAL  SEGs L3  8s13  NINFUT L3S PRINT   1 135  
45. 1  the  CATDIR COM  command file is  executed to extract the directory information from the data disk and de   posit it in a temporary file on the system disk  Then in BASIC  the  program  CATDIR BAS  is executed to transfer the directory information  into the catalog file on the data disk    The file name for each data file is created by the storage routine  which combines the date and the shot number  as follows     File name   YYMMDD SHT     Where  YY   the last two digits of the year  MM   the number of the month  1 12   DD   the day of the month  1 31     Zeros are added if necessary so that the file name always has 9 characters     Sec  4 5 The BASIC Language  The file  0 5      on the system disk is the BASIC interpreter and    must be loaded into active memory before a BASIC program can be run  The  original version was DEC BASIC RT 11   01 B  Some new commands have been  linked  into BASIC to allow for CAMAC operations  These commands are in  the form of callable functions and include     DEEK  to examine a word in memory              to modify a word in memory    GETB  to examine a byte in memory    STOB  to modify a byte in memory    FREM  to determine the amount and location of free memory     EXEC  to execute a machine language subroutine loaded into       42    memory by the            function   FAST     special purpose machine language routine for reading  data from the LeCroy 2264 digitizers     The memory accessing functions  PEEK  POKE  GETB  and STOB  are 
46. 1 12981 1     2 1 9  1 12901 12  01 12  02 12 gt   2  1   952  10  GOSUB 11100  NEXT IN        END      READING DATA HEADER  L    R4  GOSUB 11009  INPUT 91145    3    0   39  3901  GOSUB 11100  FOR I1 TO C34 L6s0149R4 IN GOSUB 11000  INPUT 91  5    2 12  03 12 gt   3 01 19  5 GOSUB 11100   NEXT I          END READING PARM FILE HEADER  NOU CHECK PARM FILE   AND ADJUST  OO O  REMS INITIALIZE FIX UP VARIABLES  IF      lt  gt 1001 THEN 10218  GO 1  RETURN  IF PO lt  gt 1002 THEN 102194 RETURN  PRINT  Unrecosnized PARM file     3PO  CRASH           0  FOR IsR2 TO 1 STEP  1  IF   1 12 lt  gt 74 THEN 10250  N3 N3 1N   4    NEXT IN IF N3s0 THEN 10270  IF N3 1 THEN 10280  PRINT B233N33     Types     143    faund     GO TO 19280  PRINT 829      Tyre    3T43   nat found     GO TO 10280  PRINT    TYP    3T1 N4 3  F T    3F1 NAD 3 STP  3S1 N4      5       SN2Z N4  3   L T    3ELCNAD  42    B1N4  1  254  RETURN    7        Y7 0  REM Linear scales  N3seLEN DS  N XS2SEGS DS5   N3 S  N32        1T19 N4 8     uS  N YSm   TYP    SSTRS CTA   GOSUB 18100  REM GRAPH SPACE                19200            SET SCALE FACTORS  49    FOR I FNN XJ N4  TO FNNOXSsNA             PLOT FROM X3      XS   XuFNTCI  NAON          0       4    GOSUB 19005  REM PLOT   NEXT 1   GOSUB 18900   RETURN     IF 1 6 lt 1001 THEN 11002N IF L   lt 1001 L1 THEN 11010    PRINT B2  LINE 94    DOESN T               CRASH   IF  42 5 THEN 11020  RESTORE   U 9N L 21000   IF L  6eL541 THEN 11030N FOR 032605 1 TO  4 11 IF END  U  THE
47. 1250  21300       to 20840    to 20880    to 20920    to 21060    to 21110  to 21150    to 21240  to 21260  to 21310    103    load format information  from memory  into  header file   read parameter file from workspace  strip  away attributes  see 4025 User s Manual  and  load into header file  close header file  open final data file and header file as  virtual files  see BASIC User s Manual    and transfer information from header file   to data file as virtual array elements   load zeros to end of the block   prepare to read data from crate  reset 2264  buffer   calculate sampling interval   start 2264 readout control sequence   delay to allow last readout trace to be  completed   check  Q  to see if command was executed   skip to the desired first sample in buffer  determine if high or low byte is to be stored  transfer points from crate to data file  increment V3  points to position in data  file for next data entry    check  Q  to see if final READ was successful  execute 2264 display enable routine   update INITIA LIZ file  increment shot number      return to OVRNEW BAS for next command          21320 to 21350       subroutine to check if a format file is in the    workspace before trying to use it       104       105    02        80 COPY OF STO200 BAS   OPTION    LPRINT 91 88    20050    20060  20070  20080  20090  20100  20110  20120  20130  20140  20150  20169  20170  20180  20190  20200  20210  20220  20230  20240  20250  20259  20279  20280  20290  20300  20310  2
48. 13300  1049  3   00  1050       00  1951      1052           VOLTAGES  KV   1053   BANK ID     Fast   SLOW TRIGC  TO USEC BANK NAME    1034  101   1 1   9 5  13300  0         HEAT   1055   102  20   0 06   13399             FIELD  1056   103   13 0   0   11600   sPREIONIZER  1057  104  6 6   9   3159     708  FIELD  1058    105  4 0   96   0   3150   RAD   HENRY   1059     106              5   1041             ID  TOR  POS D   POL  POS D    RAD POS CM     ORIENTATION  1062  3   60   180   13   0  1063   4   60   279           1064             1965             1066               1067        1068 sANTENNA   1069               109   TOR  POS D  POL  POS D    FREQ   MHZ  sCURRENT A PP   1070  101   0 0   180   8 0   80 0  1071     1072                             1073  SPEC  109                  A  PM                  SLIT 1        SLIT 2         FILTER 10     1974  101  2461 0   0 0   10 0     10 0  109  1075     1076   COMMENTS   1077 TYPICAL FAST WAVE PROFILE SHOT   1078      1079 END FARM FILE    Fig  4 7  Typical Data Header          60     REC LST  line number of the first data line in the record list sec   tion  lines 1004 to 1010 in example   PARM LST  line number of the first data line in the parameter sec   tion  to be used with the offset numbers   TIME  time that data was stored  seconds after midnight    LINES  the total number of lines in the data file header   Line 1003 gives the time again in  HH MM  form  the operator s name   and a comment  up to 57 characters  
49. 1600  PREIONIZER  40 194  4 6   9   3150  TOR  FIELD       105  4 0   06   9   3150  RAD    HENRY   4     43 PROBES   44 PROBE ID             POS D   POL  POS D    RAD POS CM  ORIENTATION  45     40   180  13      46 4  69   270   9       47           48           49           50    1 ANTENNA   52 ANTEN  10     TOR  POS D sPOL      5 0    FREQ   MHZ     CURRENT A PP   33 101   0 0   180   8 0  80 0  54   SS SPECTROMETER   54 SPEC  102 WAVELEN   A       VOLTCKV SLIT 1  UM  SLIT 2         FILTER 109   7 191  5461 0  0 0   10 9   10 0   100  58   59 COMMENTS   40 TYPICAL FAST WAVE PROFILE SHOT   61    END PARM FILE    Fig  4 5  Typical Parameter File          CAT  the number of categories in the user information section    LEN  the length  number of data lines  of the position information  category  OFST  the offset to the first data line of the position information  category  The abbreviated headings in the position information category  line  6  are    CAT  the category number of each section of the user information   the comment section  900  should always come at the end of  the file   OFST  the offset to the first data line of that category  TLN  number of lines in the category title  DLN  number of data lines in the category            offset numbers in these two categories are used by data        trieval and analysis routines to access data quickly  The offset numbers  are calculated from the equation   OFST    line number of first data line in that category              
50. 1920  1980  2000  2905  2500  2505    2900  2903  2905  2907  2912  3000  3010  3020  3050  3060   000  6090  6140  7000  7020  7109  7900  7910  8000  9000  9050  9200  9300  9310  9320  9400  9410  9500  9510  9520  9600  9603  9605  9610  9620  9630  9640  9650    91    OPEN        FOR OUTPUT 10  AS FILE  1 S1  2 GOSUB 9200  FOR 1191 TO L2  INPUT L3S PRINT  1  L3S NEXT I1NGOSUE 9300  CLOSE  1 GO TO 1000   IF D gt s0 THEN 2005          65536  U1SINT D 25 6 NL109127 D4256xU1NU18127 U1  RETURN        M    0 THEN 2503 NN N465536   FOR 1181 TO 16 B 11 eN 2KINT N 2   NSINT N 2  NEXT I1NRETURN   PRINT  ENTER CRATE  sSLOT   XINPUT C8 S8 S7 0   GOSUB 2912   PRINT   CRATE 3C8   SLOT    58   SUBADDRESS  57   AT  5 49      CRATE CSR AT  sAG  90 TO 1000   B1292 7168NA9   INT R1910245CB432158457X2  NA895B1 1024XC84768NRE TURN   DEF FNP X 98 4   8R 3   2XRC2   BC1    DEF FNT OOsS    1 2R G   2    107  2 28B  6   BCS     DEF              27  03 24808       7      DEF FNA X s sINT  X 1     2      DEF FNOC OX   Y    SEGS  B19   LENCSTRS      J     8STRS     5   gt       CALL  FAST  A950  17000  0  Q   DNRETURN   PRINT  COMPUTER CONTROLLED STOP  Fe26 GOSUB 7900 NF 2SNGOSUB 7900  Fe10  GOSUB 7900  F  16 GOSUB 7900 NGO TO 1000   N3eF GXINT F 8 NCALL    POKES  AB  NI NIF    gt 15 THEN 7100   CALL  FEEK   A9 DO NRETURN   CALL                9  0                F  SENRETURN   IF         9 lt  gt 0 THEN 7910  FRINT           CRATE    SLOT     GO TO 1000                     F B                 2  1
51. 20 THEN 20320  PRINT C   ERA        PRINT   9            308909 P83P9XP7  eP8 1  IF    9      1     09 08 1  2200 THEN 20380  PRINT CHRS 7      GTB      RETURN  PRINT C     WOR H NPRINT CSS    JUMP   3Q9  37 INTC                       5   72   PRINT X99 NIF   7  1 THEN 20410     7 2  FOR 1981 TO LENCYS  PRINT CS JUM    5        08409 1       6 2 22 193  7 1  PRINT SEG9 YS 5 19   19  NNEXT 19   7    7 2            C   MON H NRETURN    PRINT C   WOR                      1  04  03  0  1     7 1 THEN 20470  P2 10 7INT LOGC  ABS CXS X32  L06 10    P2eF2 210 P321 GOSUR 20760 NP2910xXP2         2 lt  5      6       3  THEN 20460 NP2wP2 2  P3a 2NGOSUR 20760   60 TO 20480  P2910NP3 amp s 2NGOSUR 20760 NP3 1NFOR 17 2 TO 9          7                   20760 NNEXT 17  F3 ONIF 771 THEN 20520 N02210 INT LOG ABSCYS Y3 2  L06 100   02  02 10N0321NGOSUB 20760 NQ02910 02  IF Q2   SxARS YS Y3  THEN 20510 NQ2sQ2 2  Q3e 2NGOSUB 20760 NGO TO 20530    2  10 03  2 6050   20760 NQ3 1NFOR 1792 TO 9 01 17  04 60850   20760 NNEXT 17  RETURN  GOSUB 20740  GOSUB 20430  GOSUB 20390  RETURN  922         7 1 THEN 20570 NX1 INT  X X3 XX8 X4   S NGO TO 20580  X1sINT LOGCX X3      8   4  5   IF 7781 THEN 20600    1                 2    8      4  52160 TO 20610  Y12sINT LOGCY Y3   Y84   5        U9 e1 THEN 20640 NIF W922 THEN 20630         1  X2sX1NY29Y1  PRINTE GO      20620     VEC    3  Y235 X15 Y1N 2  PAIXINGASYS AIF          THEN 20660        8     6   42    5   32560 TO 20690  IF   5    3 lt  gt 0 THEN 206
52. 230  18233  18234  18235  18237  18240  18250  18269  18270  18280  18282  18285  18299  18300  18305  18310  18320  18330  18333  18340  18345  18350  18370  18373  18375  18380  18400  18405  18419  18415  18417  18420  18430  18440  18443  18445  18450  18460  18465  18470  18489  18490  18509  18600  18610  18620  18430  18640  18650  18569  18679  18689  18690    136           TOP L H  CORNER      GRAPHICS AREA DEFAULTS TO ROW 3  9  01 7   8       8 7   REM DEFAULT LABELS   X9 9 Put X label in           Y 9 Put Y label in YS      REM SETS UP DEFAULT SIZE GRAPM BOX AND SCALE FACTOR    REM X4 LEFT   X amp   sRIGHT X  Y4sBOTTOM Y  Y amp sTOP YCALLSCREENUNITS   X420    X62119   Y62111   Y4 s0   REM   RETURN     IF F720 THEN 182904 REM SET UP GRAPHICS AREA ERASE IF FS  REDEFINE IF F9   092089 INTCY6 14                         4 8          08 lt 0          18150   IF 08 gt 09 THEN 18150   GO TO 18170   s O     ERROR IM VERTICAL SIZE OR POSITION 08    48  Q9 w 7  09   IF P9280 THEN 18190   IF P8 lt 1 THEN 18190   IF P9 lt P8 THEN 18190   GO      18230   ur    ERROR IN HORIZONTAL SIZE OR POSITION P82s 5 P9  P9    P9  P     REM NOW TEST ERASE FLAGS   IF F920 THEN 18250   IF 09 3 lt 31 THEN 18240   PRINT CS 8  WOR 207  REM DEFINE    SMALLER ONE   PRINT   99                                       TO DEFINE WS gt 30    sCHRS 7    GO TO 18250   PRINT         WOR    30943   IF F9  0 THEN 18270   PRINT C   ERA W      PRINT C    GRA 72082093  8   9     7    8 1   IF    9   8 1   009 08 1
53. 273  DUMMY      5 1 06 Nov 79 193       00         2 07 Nov 79 276  DUP SAV 21 24 Mar 78 123       006        2 07 Nov 79 278  OXMNSJ SYS 63 11 Mar 78 38 READ2  BAS 2 24 0    79 280  EIRAS LST 2 22        7 9 180 RED200 BAS 10 24 0ct 79 299  EDIT SAV 19 11 Mar  8 161 RT11bED LST 2 13 Ju1 79 182  FIXRED BAS 3 24 0    79 309 STARTS COM 1 17 00 79 250  FORMAT FMT 1 24 0    79 284 ST02006  BAS 14 08 Nov 79 423  GPNEYS LST 1 05 5     79 191 STRIP  BAS 1 02 0ct 79 267  GRA200 RAS 2 0  Nov 79 328 SWAP SYS 24 11 Mar 78 14  LENGTH  BAS 1 15 0    79 261 TITLE REC 1 03 0    79 247  LODREC  RAS 2 24 0et 79 282 TITLE         1 25 Oct 79 270  MACHIN  DAT 7 07 Nov 79 330 TT SYS 2 11 Mar 78 101  NL  SYS 2 11 Mar  8 105   39 Files  316 Blocks   164 Free blocks   System Disk DXO   02 Jan 80   TITLE  TXT 1 19 Dec 79 14  lt  UNUSED  gt  3 15  INITIA LIZ 1 19        79 18 CATALO G 2 19 Dec 79 19   lt  UNUSED  gt  473 21    3 Files   4 Blocks  476 Free blocks    Data Disk DX1    38    Each entry includes  the title and type  the length  the    creation or last modification date  and the position on the disk     In this example  no data files had been recorded        39    file type can be chosen arbitrarily but the RT 11 monitor 15 programmed to  6    recognize certain default types   Files on the system disk in Table 4 1 fall into three categories   1  Those files required by the RT 11 monitor  2  Those files required to run the storage routines  3  Often used support programs  Files in the first
54. 4n8     1014100  NIV9    ONIddOHD                  833308 SXNV  8 40193130  13  31 15  3 3H1  104110     u3 43n8  H30N31X3  asin g               002    3AISSVd     AWOG  SYOLVYUVdNOD    10  1  09 ALIISN3ANI       deems D Bulinp      1SHIj LON  4n990 0   64     eq  you sj 200024    OnI       4410 A8  7                                                                i  9  31V9 d33MS  eq vj s                    90 3SN31NI A 6  2       5                               9n4  Z  109110 2        1  13    6 13  31 ON  O  0 0W 31V9 d33MS        40423849P 14148 199  150                8310N        13 31 2          CHAPTER IV  SOFTWARE    Sec  4 1 Introduction   A set of BASIC subroutines has been written to control the hardware  described in Ch  III  These subroutines have been combined with data  manipulation and error checking routines to form a versatile  expandable   data storage program  The program is structured as a command interpreter  and address table  Commands are executed by subroutines  the starting  addresses of which are stored in the address table within the main program   When a command is entered from the keyboard  the program searches the  address table for the start address of the corresponding subroutine  exe   cutes the subroutine  and returns to the main program to wait for the next  command  The subroutine  when necessary  may request additional informa   tion from the operator while it is executing  As new equipment is acquired   new command subroutines can be add
55. 80  PRINT C   MON HSLOG ERR L X     X3  R           555        X8  X   X4  L0G XS7 7X3   IF   7 1 THEN 20700            6   4     5   3  2580 TO 20730  BYS lt  THEN 20720  PRINT ces HON      ERR          Ys  Y3  TOP Ye    s YS STOP  Y8  Y   Y4  L068 YS 7Y3   RETURN  XsPANYsQANGOSUB 20550 NPRINT CS    VEC     X41Y1 5X65 Yl  PRINT               v          WOR H NPSsINTCCCABSCY       PRINT TC  ABS  6 4  100 42       P5  s0 THEN 20870       04  FOR 19 0 TO GOO IF X  1 THEN 20790         1 19    2500 TO 20800  XsP1xX P2 719   GOSUR 20550 NIF   1 gt   6 THEN 20810 NIF   1 lt   4 THEN 20810 NNEXT I9  FOR 18 19 1 TO  800 STEP  1 IF X741 THEN 20820          1 18    2500      20830    2718   SOSUR 20550 NIE   12  6 THEN 20870 NIF   1 lt   4 THEN 20870  PRINT CS9  VEC    3X1  Y13  X13 Y34 PS NPRINT CS  VEC    3X1  Y1  X13 Y1 PS       20850  20860  20870  20880  20890  20900  20910  20920  20930  20940  20950  20960  20965  20970  20980  20990    96    TF   5 gt 0 THEN 20860  PRINT C   JUMP  Q941 P8 INT  X1 120 80NPRINT       NEXT I8   IF 05 0 THEN 20990  X sP4 FOR 1990 TO 800 1   7781 THEN 20890      01 19 02150 TO 20900   YeQ1  Q2 19    GOSUB 20550 NIF   1 gt 76 THEN 20910 NIF   1 lt   4 THEN 20910            I9  FOR 162719 1 TO  800 STEP  1 1     7  1 THEN 20930   YeQ1418xQ24GO 70 20940       01  02718    GOSUB 20550 NIF   1 gt   6 THEN 20990 NIF Y1 lt Y4 THEN 20990   PRINT   6                 17  14  1  050  1               6             2  12  1   1 052  1        05 gt 0          20
56. 9 21 25  NINFUT  32L3S INPUT    3  L3S FOR 23  1      R2   INPUT  3  L36 T  U3  VAL  SEGS L389609    IF T J3  T4 THEN 20100  NEXT J3  PRINT               T4   NOT FOUND IN     D2 NGO      1600   LS VAL  SEGS L 380194  NHISVALCSEGS L2   21 260 NY192L3S NFOR 1121591 TO Hi  INPUT  3 L3S NEXT I1NL  sUAL CSEGS L3   65 10    NN28UALCSEGS  L39 5   27   31    CLOSE 4 3NYS SEGS Y19  36  42  1    28TRS TAO NF7w1NFBa1NF921NLAm  L  71 X256 N2  D3eVAL SEOS L3    205 25   NIF MOO THEN 20150  FOePO4 10 F 781  FEs0 F 920   IF                   6   4  8   1 lt 80 THEN 20150    8  7 08 09 5        N2 lt ZS THEN 20210            13  AS FILE VF3X X3 VAL  5266  3 712  18    XS  UAL SEGS L3   23   39    GOSUB 20450  Q4e0 IF 08 1 THEN 20170 NGOSUE 20250  W9eQONHSSEINT N2 250NX amp X3NFOK 11  16 1   256       4 1 STEP HS Y  VF3 IL   GOSUF 20560  X X U3 HS NEXT IL IF 081 THEN 20190  GOSUE 20540   CLOSE VF3 OPEN 03  FOR INPUT AS FILE  3 PRINT C  MON H  N   FOR 1181 TO R2OX24S  INPUT  3 L3S FPRINT L3S NEXT I1 CLOSE  3 GO TO 1000  PRINT    OOD DECREASE Z5    GO TO 1000    PRINT    NOT ENOUGH NGO TO 20110  REM            Q9s089  INT Y6 140 NP9uPG4INTCOX6 80NIF 08 lt 0 THEN 20270  IF Q8  09 THEN 20270 NGO TO 20280  PRINT ERR         SIZE      POS  08z  08  09   Q9  STOP  IF   9 gt 80 THEN 20300 NIF P8  1 THEN 20300 NIF P9  PS8 THEN 20300       TO 20310  PRINT    ERK MORZ  SIZE OR POS                 8                  9565        IF F980 THEN 20340 NIF Q943 31 THEN 20330  PRINT               20     PRINT 
57. 930       2 1104    1  11              11  CLOSE VF1NFQR   2  11 TO  1 4 1  1   254 1     2 12  0          12    M3 s L  C1  1 53254 1NFOR J3ei TO            U1 J3  3 THEN 21300    Seu  MEROSIUECISIONSASONGUSUE 2912  GO TO 21060    20960 RE    20945  20970  20980  20990  21000  21010  21020  21030  21040  21050  21960  21070  21080  21090  21109  21119  21129  21130  21140  21150  21140  21170  21180  21190  21200  21210  21220  21230  21240  21250  21260  21270  21280  21290  21300  21310  21320  21330  21340  22350    REM   REM   REM   REM   REM   REM   REM   REM   REM   REM   60508 5099   HSsINT S1 J3   RACJ3     F226 GOSUB 7900  S72FNA C3 J3   GOSUB 2912   N32SIN 1 4C0S 1 94SINC2  5  F28 GOSUB 7900  CALL    PEEK     A8  N  GOSUB 2500 NIF    8   1 THEN 21120  PRINT       RESPONSE          7   8558    7        Fs10NGOSUB 7900  F   146 GOSUB 7900   CALL    FAST     49 0  2433    0   0   0    PRINT    RECS   J3   FROM       3     5           HSsN2 J3 3    SAMPLES      REM   U2sINT 1 2 X C3 J3   2R INT  C36 53  2      oe 11293 1 TO N2 J3  U3ACALL    FAST     49 02    5  256   0                 11  2                I1         REM   V3aU34N2 J3       REM   REM   IF Q 1          21250   PRINT 7000 IN      Q3 U1 J3   C34J3      REC     J3   GOSUB 5090   F210 NGOSUB 7900          241005      7900 NF 1  NGOSUB 7900   GO TO 21300   REM   REM   NEXT J3NCLOSE VF2NOPEN    INITIA LIZ    AS FILE UVF2 216NSSzSZt1NL3JSzSTR  S3    VF2CQBLIS PRINT    DATA FILE  20283    731 49    BLOCKS    CL
58. 980   PRINT C   JUMF    4 09           1 14  PS LEN STR  Y  NPRINT STRSCY     IF P8 LEN STR  Y   12 gt P7 THEN 20980 NP 2PS LEN GGTR CY   1  NEXT ISNPRINT C95 MON H       RETURN    Old Entry Point    17000    18100  18900    19200       Graphics Ro    97    TABLE A 1    utines Entry Points    User Entry Points    New Entry Point Purpose    20250  20540    20650    set graphics parameters  this 15  done in line 940 of OVRNEW BAS   set size of graphics area   draw ticks  scales  log or  linear   and axes    set scale factors    Internal Entry Points    Old Entry New Entry  18300 20390  18400 20430  19000 20550  19005 20560  19300 20740    19400    20760          98  RED200  BAS  The RED200 BAS program is overlaid in response to the READ  command  Lines 20050 to 20240 are identical to FIXRED BAS and serve  to extract points from files on the data disk and plot them on the  4025 graphics terminal  Lines 20250 to 20990 are the same plotting  routines discussed under PLT200 BAS  The RED200 BAS program is  discussed in Sec  4 12   This program is intended as a rough check to see if data is  being recorded properly  A program to read and analyze data is  discussed in Appendix D   LINES PURPOSE  20050 input data file name and record type to be  plotted   20060 to 20070 open data file as sequential file  see BASIC  Manual   determine number of records in file   20080 to 20090 locate desired file type  print error message  if not found   20100 find header address and record title   2011
59. ASIC command can be executed   BASIC commands are discussed in the BASIC User s Manual     When the boot routine is executed  the RT 11  ASSIGN  command is  used to make DX1 the default disk  that is  any command without a  specific address is directed to DX1  To load the  CREATE BAS  program  from the system disk  DX0   type    OLD  DXO CREATE   CR   the   BAS  is optional     When the system responds with  READY   Type    RUN  CR      to execute the program  The  CREATE BAS  program  as discussed in Sec     4 4  gives detailed instructions to the user  Several disks                        matted at this time but they must have been previously initialized by  the RT 11 monitor  A listing and functional description of   CREATE  BAS     is included in Appendix A     Sec  5 5 Running the Storage Routines      The BASIC language should be resident as described in Sec  5 4  Use  the BASIC  OLD  command to load  OVRNEW BAS  from the system disk  Type    OLD  DXO OVRNEW           The program is long and will take approximately 50 s to load  The sys   tem will type  READY  when finished  Type    RUN  CR        69    to execute the program  The first portion of  OVRNEW  will check that  the time and date have been set and that a data disk is in drive DXI   If these conditions are not met  the operator is asked to return to  RT 11  by typing control C  and make corrections    When no errors are found the  OVRNEW  program prints a message  about reentering the program  prints the confi
60. Because the  POKE    STOB     FAST   and especially  EXEC  can change memory contents  they should be  used with caution  A large amount of error checking is performed  mak   ing the subroutines appear more complicated than they are  Error re   covery is attempted wherever possible  except in  FAST   It is incon      sistent with the purpose of  FAST  to spend a lot of time correcting  errors  so the routine simply crashes back to BASIC  giving an error mes   sage  The most likely source of error is that the arguments were in  floating point format  not integer format     EXEC  is a powerful tool for developing new subroutines without  going through the lengthy process of assembling and linking BASIC  Ma   chine code is entered directly into vacant memory locations  see  FREM    and execution commences at the address given in the call to  EXEC   One  argument can be passed to the machine language code via the call to   EXEC   it is placed in register R3 when execution commences  Other  arguments can be passed  both ways  by  PEEK  and  POKE   The code must  end with  RTS PC    207  octal  or 135  decimal     Because this method of calling subroutines is so general  it is sub   ject to operator error and is not recommended for inexperienced users    or for permanent systems     115       116    The assembly and linking procedures followed are given in Appendix  F of the BASIC Language Reference Manual  The subroutine set  GETARG   in Appendix D of the BASIC manual is used in t
61. C  MON HERR WS 30   CHRS 70NGO TO 20340  PRINT C   wOR  Q  3  IF       0 THEN 20350  PRINT CS  ERA      PRINT C   GRA  5063095 F8  P9XF72sPS 1  IF            1    09 08 1  2200 THEN 20380  PRINT CHRS 7 3  GTB      RETURN  PRINT CSi     WOR H NPRINT CS  JUMF     Q9 3  INT  CPB4 P9   LEN X    2   PRINT X9  NIF P7  1 THEN 20410     7  2  FOR 1981 TO LENCYS  PRINT C   JUM    j  INTCCQB  Q9  LEN CYS   2 2 4 I193P  1  PRINT SEGS Y   I9  19 0           19NP22P2 2NPRINT C   MON H NRETURN  PRINT CS            H NP1sPANQ1u0ANGQSSONIF X721 THEN 20470  P2s10 INT LOGCABS XS X2  2 00110    NF23F2 10NF321NGOSUR  20260    2 10    2  IF P2   SxABSOXS X3  THEN 20460    2   2 2    3   25605     20760 NGO TO 20480  P2210NP3a 2NGOSUB 20760 NP3 1NFOR 1722 TO 9XP19I7XPANGOSUB 20760 NNEXT 17  P3 ONIF Y7s1 THEN 20520 xX02510 7INT LOG ABSCYS Y3    LOGC10    02   02 10N0321NGOSUR 20760 N02s10x02  IF 02 lt  5      5   5   3  THEN 20510 NQ2202 2  Q3  2NGOSUB 20760 NGO TO 20530  02210 032 24GOSUBR 20760  Q3 1 FOR 17 2 TO 9     x01917xX044 GO0SUF 20760 NNEXT 17  RETURN  GOSUR 20240 NGOSUR 20430  GOSUB 20390  RETURN  W9n2  IF X s1 THEN 20579                         32   8   4  52500 TO 20580  X15INT LOGCOX X3   amp X84 XA  5          7  1 THEN 20600  Y1 sINT  Y Y3 f  Y8 Y4  5 NGO TO 20610  Y1  INTCLOGCY Y3      8  95        W9  1 THEN 20640 NIF   9  2 THEN 20630         1  X22X1NY2 9Y1  RETURN  PRINT CS  VEC  X25 Y253X1 Y1NGO TO 20620  PasX3 Q4eYS IF X791 THEN 20660 NX89 X6 2X4  0XS X32NGO TO 20690  IF   5 
62. DISPLAY           FIND ADORESS  OF STORE  ROUTINE AND  EXECUTE       OVERLAY  570200  IF NECESSARY    ASSEMBLE  USER SUPPLIED  INFORMATION       ERROR CHECK  DISPLAY  RESULTS            EXTRACT DATA  FROM CRATE  TRANSFER TO  DISK   DISPLAY STATUS    WAIT FOR    NEXT COMMAND       50    DISK    STO200 8AS            CONFIG  FILE  PARAM  FILE  FORMAT FILE  TITLE FILE    DATA FILE    Flow Diagram of ST0200  BAS          51    equipment is relocated  The configuration file is shown in Fig  4 2 a    The record title file  TITLE REC  contains a three digit  Type   number and title  up to 12 characters  for each diagnostic on the experi    ment  This file insures that all records of the same type will have  exactly the same title in the data file  for example    030  I PLASMA  plasma current    020  COS POS  cosine position coil   If a title for a record is not found in the title file  the message  TITLE  NOT FOUND  is written into the data file  Record types and titles may be  added to the title file by using the  TITLE  command in the main program   The types and titles presently included are listed in Appendix C    The parameter file contains information as to how the experiment is  set up  such as bank voltages  trigger times  gas pressures  and magnetic  field probe data  The parameter file is copied into the workspace of the  4025 terminal  where the operator can modify or replace the file before  each shot     typical parameter file is shown in Fig  4 5  The version  of the p
63. EC 79   TIME HH MM SS        e g  TIME 13 29 00  24 hour clock           67  Any other RT 11 commands can be executed at this time     sec  5 4 Creating a Data Disk   A specially formatted data disk must be used with the storage rou   tines  The disk must first be  Initialized  as described in the RT 11  System Generation Manual  While in RT 11  place a blank disk in drive  0X1 and use the RT 11  INITIALIZE  command to create a directory file on  the disk  Type in    INITIALIZE DX1   CR      Since this will erase any data previously on the disk  the system asks     INITIALIZE DX1  ARE YOU SURE       Answer    YES  CR      All new disks must be initialized as described above before they can be  used on the 11 04 system  After initializing each disk  type    DIRECTORY BAD DX1   CR    to test the disk for bad blocks  The special data disk format is cre   ated by a BASIC program called  CREATE BAS  residing on the system disk   Before a BASIC program can be run  the BASIC language interpreter must  be downloaded into active memory  Type    R 0          0 5     is the          of the BASIC  language on this system disk  Typing  the   SAV   is optional    The system responds with      USER FUNCTIONS LOADED     HA it          68    Type a carriage return to include all basic functions  see BASIC manual  for description of functions   The system responds with      READY     which is the BASIC  prompt  sequence indicating that BASIC is resident  and ready for input  At this time any B
64. FNFS  L243 0   3  j    Crossing Besi     lt  an         lt    942 PRINT   2 DAT        CLK 9  Radial   rofile of Bz                  950 FOR           L2   READ Z2eB3eE3  PRINT  2 FNF  225  2510        8 83 2 109      960    PRINT  2 FNF  E3  2  10 N NEXT IN RESTORE   PRINT  2     970 FOR        TO 2 STEP 2  980 PRINT  0                                                   LAST            T SIN  COSICORR S  5    990   1000  1010  1929  1930  1931  1935  1949  1130  1140  1150  1160  1162  1163  1164  1170  1180  1190  1299  1210  1220  1230  1240  1250  1922  1940  1950  2000  2010  2020  2030  2040  2050  2060  2070  2080  3000  3010  3020  3030  3040  3950  3969  3079  3080  5009  5010  5020  5030  5040  5050  5060  5070  5080  5090    PRINT  909          6              N NEXT U              OXO WORKLI ST  FOR INPUT AS FILE  6  DIM  6  F48 100  15   220  RESTORE N IF F amp   I2      END  THEN 1020  CLOSE 824 PRINT  ENDXXX N CRASH   IF F6S CI24122 N  THEN 1950  D  2 DX1   1SEGS F6  I2051  10 N GOSUB 10010    4  113  GOSUB 10230   IF PO lt  gt 1001 THEN 103S       0  103    0  101  GOSUB 122004 GO TO 1040          Fix for PF21001   GOSUB 12300           Get the line in the PARM file for TYPE 113   INPUT   1 15 01   3    3981   3   PRINT    Probe ID     D1N GOSUB 11100        193  GOSUB 10230  N62N4  X32200N   5 1000  GOSUB 103304 REM PLOT 103    4  1131 GOSUB 102304 N7 N4  T42114  GOSUB 10220  N8 N4   READ Z2N IF 2229999 THEN 1940  READ N3N B3sFNN N3 N6 N READ N3N               
65. FOR I421      R2NINPUT L3S PRINT  1 L39XNEXT I4 GOSUB 9300  CLOSE  1  S1 S2 2NGOSUB 9200 NINPUT FisR2 D3 INPUT LIS  E2 QNEJ3 ONOPEN  PGM TITLE REC  AS FILE VF1 216  LOC LIBINT   R2894427954L2 48  S1242  FOR J321 TO R2 S720  INPUT TCJ3 sU1CJ3  CIJI  61633    01603    NI         1  3   N2C J3  0 E1C J32 5 1    J3   C1 CUS ONINTIC JS  SNANL1  J32 2  TITLE        FND IN  TITLE REC    IF    33   999 THEN 20300 NIF T4J3   0 THEN 20300 NGO TO 20319     291NPRINT    ERR  RECO    3335    UNIT 5U1 J323    ILLEGAL TYPE    NPRINT  IF 04 U1J32 22232 1 THEN 20510 NIF 04  U1 J32 22264 THEN 20359  REM EXPAND HERE FOR NEW EQUIPMENT  E2 1NPRINT  ERR  REC9 7     J35 71  UNIT   U1 J3 3  NOT FNO         CONFIG  INF                  C  CJ3220NL45CJ391 2L5C J3 12NN2C J32  0NGO TO 20550  S8203 U1 J3  NGOSUB 2912  Fs1 GOSUB 7900 NN wDNGOSUB 2500 NNA amp CJ3  sSFNCCX   IF N6CJ3   51 THEN 20370 NE221NFRINT  ERR  UNIT     U1 J3     NO 1 CHNNL DATA     PRINT NIF C3CJ3 4  2N6 J3  THEN 20390  E221  PRINT  ERR        9   3  39    UNIT 3UT1CJ32 5    CHNL8  C3C J325         SAMPLED     PRINT  S8 Q3 U1CJ3  NS720 GOSUB 2912 NFs1NGOSUB 7900  N D GOSUB 2500  IF 8 10  0 THEM 20410 NE2 1NPRINT          UNIT  U1 J3  5   RATE TOO HI    PRINT  RA4CJ3  sS NTCXONM2CJ3  8FNP CX  X05  01003     1024  F1CJ3  SINTCF1    J3   RACJ3     RACJ3   IF M2 J320  2 2 715 N6CJ3   F1C J3   RACJ3   THEN 20450    2 1  PRINT  ERR        9   5 73     UNIT  3U1 J325   ILLEGAL FIRST TIME NPRINT       E1C J302s0 THEN 20490 NA3CJ32 2INTC2715 
66. FOR OUTPUT 1  AS FILE  1  PRINT  13    EMPTY DATA DISC    NCLOSE  1  OPEN  CATALO G  FOR OUTPUT 2  AS FILE  1  PRINT 91  DATA ON THIS DISK HAS NOT BEEN CATALOGED     FOR 1  1 TO 12               1     NEXT I  CLOSE  1  T192 000    8TRSC NONT1Ss DA  SSEGS  T1    LENCT1    O   LEN CT2     PRINT    ENTER COMMENTS FOR    13  716      ENDING WITH          AS THE FIRST THREE     PRINT     CHARACTERS      A NEW LINE      eee    TITLE TXT    FOR              1  AS FILE 91   Le   INPUT LS IF L     THEN 131 NIF L 9 END  THEN 131    80 TO 140   PRINT    PLEASE ENTER COMMENT    GO TO 130   PRINT     1 T191    INITIALIZED    DATS1    1SEG09 L9  1  480 NL S31 4LEN L  0 42       LEN LS   248 THEN 160   PRINT  1 SEG5 L    49 LEN CL SD   NLsL42   INPUT LSNIF L    END    THEN 170 NIF L LEN LS  209 THEN 165   PRINT  1 2L9NL SL  LEN LSO42NGO TO 160   PRINT   TOO MUCH  PLEASE RETYPE LAST LINE WITH   909 L   OR FEWER CHARS      60 TO 160   CLOSE  amp 1NPRINT    INITIALIZATION OF  T1   IS COMPLETE       PRINT   ENTER 0 FOR NEXT DISC   TO EXIT     51600 TO 6   CLOSE NPRINT  FINISHED NSTOP   END          112    CATDIR BAS    The CATDIR BAS program along with the CATDIR COM command file  are used at the end of a data run to enter information into the  CATALO G file on each data disk  This process is discussed in Sec   4 4    The CATDIR COM command file is executed by typing   CATDIR    This reads the information in the directory on the data disk and  stores it in a temporary file  DIRECT TMP  on the s
67. For single sample data  line  1011 of Fig  4 7 would read     1011  BLK   1ST TM DATA1 2ND TM DATA      The rest of the columns are the same as before    The length of the data file header depends upon the number of rec   ords in the file  The number of records is limited by the dimensions of  several arrays  and this is limited by the amount of active memory in the  system  With 32 k bytes of memory  a maximum of 10 records can be stored  in each shot  If more memory were added  this limit could be increased   by about 30 records k byte added  by changing the dimension statements  in lines 920 to 930 of  OVRNEW BAS    Note that the dimension of  L6   is one greater than that of the other arrays on these lines     The maximum number of data points that can be stored depends upon  the amount of available disk space  up to a maximum of about 30 000  points  where each block of disk space can store 256 points     newly    formatted data disk has 473 free blocks     Sec  4 11 Temporary Files  Two other files are created on the system disk by the STO200 pro     gram  The  DATA HED  file is a temporary sequential  ASCII file con     taining the data file header information until the data file is created        63    The second file arises from the problem that the BASIC  OPEN  state   ment used to create disk files will not accept a variable for its size  specification and the size of the data file will vary from shot to shot   To get around this problem  once the size of the data 
68. INTED TO BY THE WORD FOLLOWING THE   CALL TO SUBROUTINE  SLINKAGE THRU R4   WHICH IS PRESERVED  3RO IS DESTROYED  MOV RO  FAC2 RS   CLR         1    5           R4     RO IGET STORE ADDRESS INFO TO RO  JSR PC  STORE  RTS R4                 02        80 COPY      DX1 OPROOT MAC   OPTION ILPRINT 91 88         Se           we              FIRSTAS  LASTAS        DATA AREA FOR           A USER SUBROUTINE FOR BASIC U2  TO ALLOW INSERTION       MACHINE CODE        SEE           2           OCICICICRCICICR OR IOIOREOICRCIORDICI  XEDICIOROIOIOROIGIDIOICICIOR ICIDDIDIGIGIOICIOEOEDIO  IOIEXORUIDOIGOGE IEOUOUECOEUX  x x     MUST BE LINKED IN ROOT SEGMENT IF OVERLAY USED x         RARAAAALAAAARAAAAAKAAAAAAAAAAARAAARAAAKAKARAAAAAAKTARAKAKAARAAAACASATT   TITLE                GLOBL FIRSTA  LASTA    BLKW 27    AREA FREE FOR USER  WORD       LAST WORD FREE  3 TOTAL      24 10  WORDS    END       120       121    02 JAN 80          OF DX1 SUBTAB MAC   OPTION ILPRINT U1 BB       NEW FUNCTION TABLE DEFINITION FOR           2    2 98099 99  90 9 9999 9 999 4 999999  9899999 99999  9   560  8 WITH                           GLOBL                  WORD   CSECT  FUNTABS     ASCII     WORD  ASCII     WORD  ASCII   WORD                  WORD  ASCII  WORD  ASCII  WORD  ASCII  eWORD               END    PEEKST   POKEST   GETBST    STOBST   EXECST FREEST FASTST  BASICR  FUNTAB   SUBTAB                            5                       POKEST                  GETBST   STOB   STOBST     EXEC     EXECST     
69. N 11060  INPUT  U9 LS   IF LS203 THEN 11049  PRINT    BAD LINE    EXP     D3  GOT    LS   PRINT    ATTEMPT                           GO TO 11010   NEXT 03   RETURN   PRINT         OF FILE 973095 CRASH        L5xL6   THEN 11110   PRINT    EXPECTED LINE JL63         85   RETURN   IF C3 lt  gt 0 THEN 12010   PRINT B29 FILE NOT READ YET     CRASH   FOR        TO       IF   2 1  75 THEN 120307 NEXT I   PRINT   2              T53 NOT FOUND      PARM FILE HEADER      N CRASH   IF L4    D1C I  THEN 12060   PRINT B  ASKED FOR LINE  L4  IN CAT9     TS  BUT ONLY     D1 1   LINES IN FILE     CRASH   L      4 03 0 1I  R4 GON 60508 11000  REM  THE OO IS A FIX FOR PF 1001    RETURN   4415           60508 12000N FOR 11 1      DICION INPUT  1 65    3    GOSUB 11100   L  sL   1N      N3sIO THEN 12240  NEXT 11  PRINT    ID 9  31I03   not found in CAT 971  057     the PARM file     CRASH  REM BACK UP ONE LINE  L  sLSN GOSUB 11990  RETURN      CO C1 N4 N IOSI1 N4 N GO TO 122  IF ERL  12200 THEN IF ERR 50 THEN RESUME 12220  ON ERROR GO TO ON REM  UNEXPECTED ERROR  START UP ROUTINE  REN F7 IS ERASE GRAPHICS               IS ERASE WORKSPACE F9 IS ERASE ALL    7  1  F  8 1N 298   REM SET COMMAND CHARACTER IN C  SO THAT IT DOESNPEAR IN TEXT  C sCHRS  33   REM SET STANDARD LINE TYPE  PRINT CS9  LIN 1        17070  17080  17990  17100  17110  17120  17130  17140  17150  17160  17179  17180  17190  18100  18110  18120  18130  18140  18145  19130  18160  18170  18175  18189  18185  18199  18200  18210  18
70. N 1150 NIF F s SCA  THEN 1650   1020 IF F s SUBRB  THEN 1250 NIF          570    THEN 20020 NIF FS    ERA    THEN 1600   1025 IF Fee   REA    THEN 20035 NIF Fse   PAR    THEN 1900 NIF F s SHO  THEN 1350   1030 IF Fse   NAM    THEN 1370 NIF                  THEN 9600   1045 FSsSEGS C19  1  1    1050 IF F    1   THEN 9000 NIF              THEN 1500 NIF            THEN 1100   1065 IF              THEN 2905 NIF F s C  THEN 1200 NIF           THEN 1700   1080 IF F s  R  THEN 1300 NIF F as  U  THEN 1800 NIF F s  G  THEN 20005   1090 IF F    N  THEN 6000 NIF F  s Q  THEN 1450 NIF            THEN 1470   1993 IF F s uU  THEN 1480 NIF P9s  D   THEN 1260 NIF F8e   a    THEN 1210  GO TO 1000  1100 STOF   1150 CALL  PEEK  AB  NONGOSUR 2500   1170 PRINT       Q X      F2 Fi   OCTAL 13221110 9 8 76 5 4 3 2 1   1180 PRINT    10        1B 824B lt 02 32      B 3 598R 2  EC1         44XRC3  42XBC2204BC1 05   1181 PRINT                 11833 TO 1 STEP  1             RB OI120  NNEXT IINPRINT        TO 1010  1200 GO TO 2900   2210   4              CSEGS    18 52   LO   NCALL  FAST CA9  0  NA  OsQ  DONGO TO 1000   1250 PRINT    ENTER SURADDRESS   NINPUT S7 GO TO 2903   1260 PRINT       OF DATA POINTS NINFUT 25500 TO 1000   1300 CALL    FAST     AD 0001225600001   DaDI GOSUB 2000  PRINT 01811201   1310 IF Q 1 THEN 1010 NPRINT         7  60      1000   1350 PRINT    LAST SHOTS     SS PRINT    ENTER LAST SHOTS    s INPUT SS GO TO 1000  1370 PRINT    ENTER OPERATOR S NAME    fNINPUT N1 NGO TO 1000   14
71. N6CJ3   M2C J3   F1C    J3   R4C 23     E1CJ3 sINTCE1CJ3 2 RACJS    64  33  NIF  INT N2 432 256 3N2 J3  256 THEN 20480  N2CJ3  3INTCON2   J32 42546   226  X226  S1CJ3 s E1CO3   CF1   4032   N2C   J3  NGO TQ 20500   S1CJ3  sSINT CS1CJ32  RACJ3    284            1        81C J3   N2C    J32  12 4S1 C 23   L   J3 1  L4 amp  J3  N2 J3  25S6  NGO TO 20560  L5CJ3  20NL5C J3 1 2L6C   J3    1   IF C3 J3   0 THEN 20530 NIF C3 J3   31 THEN 20530 NGO TO 20540  E  221NPRINT    ERR  REC       J3  UNIT 3U1 J3     ILLEGAL CHNNL   NPRINT  FaINT C3 J32 1680N872CC J32  FER18NGOSUB 2912  GOSUB 7900 NS1  J3 20 4096810 5    1  3   550   3  73     5501  00 TO 20560  FOR 1121 TO 999NL3   UF1 I1 NIF VAL  5  69 139 1 3          3  THEN 20580  IF SEGS L23  S  LEN L33  2  END    THEN 20590  NEXT 11       13  J3 sSEGS L38052714   NEXT J3N PRINT    RECS       UNIT0          7157 TIME      s   LAST TIME                                  SAMPLS     CLOSE VFL FOR J3 1 TO R2 PRINT J3  U1 J3  9 F 1653  1025    514 23    N2 J3   NEXT J3 GOSUB 9300 NIF   2 0 THEN 20620  GO TO 20170         6  R241 2 1  H18J341006 PRINT  FORMATS  3F13   amp RECS jR2   SHOTS 755541        Y BAS  FOR OUTPUT 1  AS FILE 92  PRINT 921220490 OPEN 7302897    FOR OUTPUT   STR   L4         AS FILE            CLOSE   2              START OVERLAY     OVERLAY  PGM DUMMY BAS   PRINT    FINISH    OPEN  PGM DATA HED  FOR OUTPUT 10  AS FILE  2  PRINT  DATA FILE LENGTH   75442    BLOCKS      L29R2   32 5NGOSUB 9500  D3ses TR3  INT  11 3600       
72. NGOSUR 20760 NGO TO 20480  P2 10NP34 2XGOSUR 20760  P3e1 FOR 17 2 TO 9 P1  I7XPAN  P3 ONIF   7 1 THEN 20520 NQ2  10 INT LOG ABSCYS           LOB es gi  20760           17  02  02 10N03  41NGOSUB 20760    2 10 02  IF 02 lt  5 4  6   5   3  THEN 20510 X02a02 2  Q3e 24G0SUB 20760   GO TO 20530  02 10 03  2  005    20760   03  1           7  2 TO  NQ1 I2 Q4NGOSUR 20760  NEXT I   5050   20740  GOSUB 20430 NGOSUR 20390  RETURN     IF   7 1 THEN 20570 XXI INT  X X3  amp X84X44  205  XI SINT  LOG  X X3      04  4  5                            Y  1 THEN 20600  Y1 sINT  Y Y2 SY8 Y4  5 NGO TO 20610  YisINT LOG Y Y3  amp Y6  5   IF W9 s1 THEN 20640 NIF W9 2 THEN 20630  W9 1  X22X1NY22Y1  RETURN  PRINT CS UEC HX23 Y21X13 Y1NGO TO 20620  P4s X3NQ4sY3NIF X7  1 THEN 20660 NX8  X   X4   X5 X3 NGO TO 20690  IF XS5 X3 lt  gt 0 THEN 20680  PRINT Cs  MON   9106 ERR L X    X3  R Xe 3XSNSTOP  XO  X6 X4  LOG  XS X3   IF Y7  1 THEN 20700 NY8  Y   Y4   YS Y3 NGO TO 20730  IF Y3RYS lt  gt 0 THEN 20720  PRINT    4          MILOG ERR BOTH        2  3           Ye sYS STOP  Y8s  Y   Y4  LOGCYS Y3   RETURN  X  PANYeQ4NGOSUB 20550  PRINT CSI UEC IXA3 Y1 X63 Y1  PRINT       OEC 3X13 YARX13 Y  NRETURN  PRINT CS WOR H NPSeINT   ABSCY    Y4  100 42  P3   QSsINT  CABSC X   X42 100  42    03       P3 0 THEN 20870       04  FOR 19 0 TO SOONIF X  1 THEN 20790         1 19    2100 TO 20800        1     2719    GOSUB 20550 NIF   1 gt   4 THEN 20810 NIF   1 lt   4 THEN 20810  NEXT 19  FOR I eI9 1       800 STEP  1    
73. NTER  PARAMETERS  FROM USER       OPEN DATA FILE  ANO LOCATE   VIRTUAL DATA   ARRAY             PLOT DATAIN  WORKSPACE       PRINT DIRECTORY    IN MONITOR    WAIT FOR  NEXT COMMAND    Flow Diagram of RED200 BAS       RED200 BAS  OR  FIXRED BAS          DATA FILE       CHAPTER V    OPERATING INSTRUCTIONS    Sec  5 1 Introduction  This chapter is intended to be used as a set of instructions for    9    bootstrapping    the computer and using the storage routines on the 11 04    system     Sec  5 2               and Bootstrap Procedure   Turn on the AC power to all equipment  The order is not important   but the 4025 terminal requires about 15 seconds to warm up before it can  be used  e g  no cursor appears   The equipment requiring AC power is        the computer  front panel    b  the terminals  if used    C  the CAMAC crate  power supply must be turned on to use the   computer for any purpose    d  optical isolator  two separate supplies    e  the communication interface  if installed    f  Tektronix 604 monitor  if used    At this point the computer responds only to capital letters  Both  terminals have keys to  lock on  capitals without having to press the   Shift  key  On the LA36 depress the  Cap s Lock  key  key should stay  down  and on the 4025 terminal depress the  TTY Lock  key  indicator  light should be on   Set terminal select switch to  Graphics  and  adjust baud rate if necessary  see 4025 User s Manual and Sec  3 3      Set the communications interface for    
74. OSE VF2 GO TO 1000   F39   NFOR IS 1 TO S6 PRINT C8    JUM   S23IS PRINT C  REP O1 NPRINT CS S UP 1   INPUT L3 NF3 2F3 1SEG   L39  17   172 NNEXT ISNIF F392 FORMAT  THEN 21350   PRINT      0 FORMAT IN WORK SPACE NGO      20060   RETURN       107    OZ JAN 80 COPY OF GRA200 BAS   OPTION I LPRINT U1 BBR    20050  20066  20070  20080  20090  20100  20110  20120  20130  20140  20150  20160  20170  20190  20200  20210  20220  20230  20240    GOSUF 5000  PRINT    CHANNEL NINPUT                                                   M620 THEN 20090         7                   9            P8     lt  2  Pass Qasa rS B  INT    X6   X4  8 41 lt 80 THEN 20090  Fe1NGOSUB 7900  N DNGOSUE 2500  N  FNC X  IF   3 gt   8 THEN 20210  PRINT 7  SMPLS   MULTIPLES 0  7 25 7    1ST SMPL      INPUT H4   ASNASRINT GA3   IF   4 lt 25 THEN 20220  F226 GOSUB 7900  F 10 GOSUB 7900  S79FNA CS NGOSUB 2912  F 16 GOSUR 7900  CALL  FAST  49  0  43  0sQ  D   USeINT  1 28  C3I 2RINT C3 2     AX38A3AXSa434HANGOSUB  20650  04 0  IF 08 1 THEN 20160  GOSUF 20250  W9sONHSSINT HA ZS NXSA3NFOR  1180 TO ZS CALL  FAST  A9  U25 H5   256  Q   YO  GOSUB 20560  X  X HS NEXT I1NIF 0861 THEN 20190  GOSUB 20540         5000  87 0 F 224 GOSUB 2900  S7 FNA C3  Fe16 GOSUB 7900   1009   PRINT  CHNNL        SMPLD NGO TO 1000  PRINT           ENOUGH    GO TO 20110  REM  REM    02 JAN 80 COPY OF FIXRED BAS   OPTION    LPRINT 01 88    20050  20060  29079  20080  20090  20100  20120  20120  20130  20140  29150  29160  20170  20180  20190  2
75. RO 3 USE LOGICAL    OR    TO SAVE CODE  BIS   STEPH RO   NO CORRECTIVE ACTION TAKEN BECAUSE THIS  BNE FPERMS   IS SUPPOSED TO      FAST    JUST BOMB OUT     TST eesTEPL 3 TEST FOR ZERO STEP  BEQ RETURN 3 NO OP IF STEP 0     MOV               2   R2 IS CAMAC MODULE ADDRESS  MOV R2  RO   RO IS CRATE  RIC  1777  RO   CSR ADDRESS  ADI  21409                 2    RO  3 SET F CODEs2  MOU    2  gt 23 3 GET DATA  TST   HILOL  BEQ aTEST   0 IS WHOLE WORD  BMI NOSWAP    1 LOWER BYTE  SWAB R3   1 UPPER BYTE  NOSWAP   COM R3   INVERT DATA  CAMAC BUS IS OPEN COLLECTOR   BIC  177400  R3    SUR  200  83       QTEST              STPLOP      CLEAN     RETURN   3  FPERMS     FASTTB   ADDH   ADDL   HILON   HILOL  gt   STEPH   STEPL   ERVALH   ERVALL     QP TR                QFLAG   5                P              1    NTSTO             1  090FLAG    PRESET FLAG  BIT 9200   RO  3 TEST 0   BNE          CLR  SQFLAG 3 HERE FOR BAD 0            ERVALL  R3   REPLACE R3 WITH ERVALL  MOV  OSTEPL        GET STEP TO COUNT  DEC RO   BEQ CLEAN   TST  22  3 DUMMY READ   BR STPLOP   MOV QSQFLAG  RO   JSR R4   INTSTO     WORD QPTR          RI RO   JSR R4   INTSTO     WORD DAP TR   RTS PC   TRAP      eASCIIZ    FP FMT IN FAST      EVEN     MORD 9      WORD 9     WORD 9   WORD        MORD        WORD 9     WORD 0     WORD 9    eWORD 02090    WORD 02020      WORD 9  sSUBROUTINE TO AID IN INTEGER STORAGE USING    8  0             CLEARS UPPER FAC   AND PUTS RO  j IN LOUER          THEN STORES FAC IN LOCATION  3PO
76. RROR BOTTOM Ys  Y3i TOP        2  5  STOP   Y82 Y6 Y4  LOGCYS Y3    RETURN   REM DRAM AXIS              Y 04   GOSUB 19000    REM W9 2 WILL CAUSE NO PLOTTING ACTION   JUST CONVERSION  PRINT C      VEC    3X4  Y13 X63 Y1   PRINT C 3 VEC  3X15 YA3 X13 Y     RETURN   REM TICK DRAWING ENTER HERE FOR AUTOMATIC TICK SIZE  PRINT C   WOR H       REM CALCULATE   5   05   THE TICK SIZE IN SCREEN UNITS  PSmINT      ABSCYS Y4  100   2          QS INT     ABS X6 X4  100  2  203    REM ENTER HERE TO USE YOUR OWN TICK SIZE   REM              STARTING POINT INSIDE WINDOW   IF   5 0 THEN 19660   REM FIND TICK NEAR THE EDGE      04   FOR 19  0      800        X7  1 THEN 19500         1 199  2   GO TO 19510             P2719    GOSUB 19000      IF   1 gt   6 THEN 19550   IF   1 lt   4 THEN 19550       19340  19550  19540  19565  19570  19575  19380  19590  19600  19610  19620  19633  19635  19637  19640  19645  19650  19640  19665  19670  19680  19690  19700  19710  19720  19740  19730  19740  19770  19780  19790  19800  19810  19820  19830  19850  19860  19870  17880  19893  19895  19897  19898  19899  19900  19905  19910  30000  30010  30020  31000  31010  31020  31030  31031  31040  31050    138    NEXT  9   REM NOW DO TICKS BACKWORDS   FOR 18 1 9 1 TO  800 STEP  1        X7 1 THEN 19580         1418      2   60      19590   XeP1   OP2 7IS    GOSUB 19000   IF   1 gt   4 THEN 19460   IF X1  X4 THEN 19560   PRINT C   EC    3X13 YA4PS2 X1  Y13X12 Y1 PS    IF   5 gt 0 THEN 19440   PRINT C 3 JUMP
77. TILL WANT TO CATALOGUE IT  Y N  7    180 INPUT ASXIF SEGS A   1  1   Y  THEN 200   190 STOF   200 CLOSE  2 OPEN   1  FOR OUTPUT 1  AS FILE  2   210 PRINT  2  DUMMY NCLOSE               THIS MOVES FILE OUT OF RESERVED POSITION  220 OFEN Cis FOR OUTFUT 2  AS FILE  2   230 FOR 18  TO          END  1 THEN         INPUT  1  LS NEXT I   240 PRINT EFE    TOO MANY DATA FILES FOR      B  BLOCKS  MAX IS     M 4 STOP  300 NeI ANRESTORE  1NINPUT  1 L NREM DISCARD DATE   304 PRINT   305 FOR Uso TO 2 STEF 2   310 PRINT   U FNJ N 63  FILES    SDATS   312 PRINT  amp U  FILENAME LEN START      315 REM  XXXXXX FFF 912301234   317 NEXT U   320 FOR 191 TO NNINPUT  2  LS FOR Usd TO 2 STEF 2   330 PRINT  0 5  0 8    6  1 100        SFNAJCUALCSEGS  6 1416    14       73   340 PRINT  U FNJ CUALCSEGS  L    29 32     19  NNEXT UNNEXT I   349 PRINT   350 INPUT  1 L NIF UAL SEGS L    1   POS LS        53   8N THEN 370   360 PRINT E       370 PRINT    NO  OF FILES FOUND     967  9          DIRECTORY SAID     L    400 CLOSE  PRINT    CATALOGUING COMPLETE  NSTOP j   1000 DEF FNJ OXeCOSTAR CC LENCSTRS OOD00SSTRSOQONREM   FRINTS X ENDING IN COLUMN       02 JAN 80 COPY OF DX1 CATDIR COM  OPTION ILPRINT 71 88    DIR COL 1 BLOCKS ALPHABET OUTPUT DXO DIRECT TMP DX1 279XXZZ X       APPENDIX B  USER FUNCTION ADDITIONS  TO BASIC    The following RT 11 assembly language  MACRO  subroutines have been  written to add new capabilities to the DEC supplied BASIC  The following  listings are for BASIC   01 B  old BASIC   
78. TTY  PDP   see Fig  3 14  with     65       Monitor all data  disabled    TTY2  disabled  TTY1  enabled  Place the storage routine system disk in drive 0  0  At the front  of the computer  place the  Local Remote  switch in the  Local  position  and the Halt Continue  switch in the  Continue  position  Press and re   lease the  Boot  switch  The computer should print four numbers on the  terminal    SXXXXXX                                             is the cursor on the 4025 or the  ic print head position on the LA36   If the system were being rebooted after a crash  these four numbers  would be the contents of memory registers that would indicate what the  computer was doing when it crashed       run the boot routine  type in     DX  CR    CR  is carriage return          For this step  the computer output should be directed to the 4025  or    its  Echo  turned on  because the RT 11 initialization command file   STARTS COM   which is executed by the bootstrap program  will  Learn  10    several special purpose keys on the 4025 keyboard  When the boot routine  has finished   10 s  the computer responds with a period     on the ter   minal  This is the RT 11  Prompt  character signifying that the system    is booted and the RT 11 monitor is resident and awaiting input     Sec  5 3 RT 11 Commands         RT 11 commands are discussed in the RT 11 User s Manual  Use the   DATE  and  TIME  commands to set the system clock and calendar  Type in    DATE DD MMM YY  CR  e g  DATE 15 D
79. Table 3 4                    11 Language Reference Manual  Digital Equipment Corp    Maynard  MA  1976   Ch  8  App  D  App F    Ibid   Sec  5 9    Introduction to RT 11   Digital Equipment Corp   Maynard  MA  1978    p  2 4    Tektronix 4025 Computer Display Terminal Operator s Manual   Tektronix  Inc   Beaverton  OR  1978   p  3 18 to 3 21    Ibid   Ch  5    System User s Guide  11 04 Documentation Kit  Digital Equipment Corp    Maynard  Ma  1977   p  1 2     84          APPENDIX A    PROGRAM LISTINGS AND DISCUSSIONS    A listing of each of the main programs making up the storage    routines is included in this section     Following each listing is a    line by line discussion of the program  The programs CREATE BAS     CATDIR BAS  and CATDIR COM are also included in this section  A    list of subroutines used in the storage routine is included in    Table A 2     Contents  OVRNEW BAS      2    2 22 eee          200  BAS  5 5 5 e ewe ya 36    Qm sa  Graphics Routines Entry Points        RED200 BAS        ens  570200 845         2 eee             GRA200 BAS           see             FIXRED BAS             4 4     eee  Subroutines Used in Storage Routines  CREATE BAS           4 4 e e ee       CATDIR BAS             4     ee       CATDIR COM                   ee ee    85       86    OVRNEW  BAS    OVRNEW BAS is the main calling program and is downloaded and run  by BASIC language commands  Lines 10 to 20045 make up the OVRNEW BAS  program  This program contains most of the sy
80. X13Y13X14QS  YINPRINT C    VEC  X1 Y15X1 055 Y1   IF 05 gt 0 THEN 20980   PRINT CS  JUMP    Q09 INT Y1 14   PBS LENCSTKRS CY   NPRINT STRSCY     IF PS LEN STR  YO  1  5P7 THEN 20980  FP7 P8 LEN STRS Y      1  NEXT ISNPRINT C   MON H       RETURN          102    STO200  BAS    The STO200 BAS program is overlaid in response to the STORE  command and serves to transfer data from the CAMAC hardware to files    on the data disk  The STO200 BAS program is discussed in Sec  4 9     LINES PURPOSE  20050 set constants  20060 to 20070 enter format file title  set decimal date  20080 to 20110 reset graphics flags  input comment  check    that a parameter file is in workspace    20120 use format presently in workspace  20130 save  then use format presently in workspace  20140 to 20230 load format file into workspace  allow operator    to modify and save new file   20240 to 20590 read information from workspace  check and 108  any errors  get title  calculate disk space  required for each record   20340 do not reserve disk space for 2232 ADC records   20590 to 20620 print format information into monitor  if any  errors  return for modification   20639 to 20650 construct OPEN statement  store in DUMMY BAS  and overlay onto line 20890   20660 to 20670 open data header file   20680 to 20690 calculate number of lines in header file     read system time  convert to  HH MM  form       20700    20850    20890    20930  20940    21070  21080  21090    21100  21120  21160  21170  21200    21230  2
81. a Parameters  Plasma Current  Plasma Duration              ne  max     TABLE 1 1    for the Texas Tech Tokamak  15 kA  10 ms  1 5 V    1 2 x 1013 cm     100   150 eV  20   40 eV  7 kG       The main criteria when developing the data acquisition system were  that it be flexible and easily upgraded as the experimental requirements  change  To satisfy these conditions  a Digital Equipment  DEC          11 04 was selected as the host computer  Due to the widespread use  and modular construction of the PDP 11 series computers  a variety of  peripheral equipment is available from many vendors  The 11 04 system  selected includes 32 k byte of dynamic RAM and a 512 k byte dual floppy  disk drive  Communication to and from the computer is via a DEC LA36  ASCII printer terminal    The interface between computer and experiment is accomplished by a  CAMAC crate  described in Ch  II  and a Standard Engineering DCC 11  crate controller  described in Ch  III   The                     15 an acronym  for Computer Automated Measurement and Control and refers to a set of  hardware and software standards which are discussed in detail in Ch  11   In general  a CAMAC system is a self contained group of digitizing and  control equipment which in turn can be controlled from  and transfer  data to  a host computer via the crate controller module  In the  system described by this report  the CAMAC modules have  local  memory  and are capable of storing and displaying the raw data before they are  tran
82. allows for reading by formatted  FORTRAN  READ  statements    After assembling the information from these four files  the store  program will check to see if the values are compatible with the present  hardware configuration  If any discrepancies are found  they are printed  on the screen and the operator is asked to correct them  When the  assembly iS completed correctly  the store program will extract the data  from the CAMAC buffers and deposit the data  along with the parameter  and format information  into a data file on disk DX1  When finished   the title and length of the data file are printed on the terminal and  the program returns to the  ENTER COMMAND  loop in the main program     Sec  4 10 The Data File   A data file  as created by the storage program  consists of 3 parts   The first part contains directory information about the size  contents   and organization of the data file  For a single sample record  this  first section would contain the data word as well  The second part is    a copy of the parameter file  The final part of the data file contains             58    the binary data for each record stored in virtual arrays  These arrays  allow the program to use the disk as a block of random access memory   Data are passed to and from the array in the form of subscripted vari   ables  By this method  large amounts of data  that would normally over   flow the active memory  are made available to the program  The combina   tion of the first two parts make up th
83. and can be restarted by    typing           79  CLOSE  CR  to insure that all data files  are closed     READY     GO TO 1000  CR  to restart program     ENTER COMMAND   sec  5 8 Recovery From a Crash   Depending on the severity of a crash  the storage programs some   times be restarted without having to download them from the system disk   There are three levels of crashes  those that halt the program and re   turn to BASIC  the computer gives the  READY  prompt   those that return  to the RT 11 monitor  the computer gives the     prompt   and those which  stop the entire system  RUN light is off     Crashes to BASIC are usually caused by some illegal combination of  BASIC commands such as trying to  OPEN  a file that is already open or  accessing a virtual file as a sequential file  This type of crash will  also occur when the data disk becomes full  Crashes to BASIC can be  recovered by the method discussed in Sec  5 7    Crashing to the RT 11 monitor may be the only way to exit a BASIC  program that has hung      a loop  This is accomplished by typing a  double  control C   only one if program is waiting for input  and the  computer responds with the     prompt  The BASIC routines have been  erased from active memory but may be recovered under some circumstances  from the  swap  syst 12 file on the system disk  This is done with the  RT 11  REENTER  command and the computer should respond with the BASIC     READY  prompt  The store routines can then be restarted as descri
84. arameter file currently in the workspace is used in the data  Storage procedure    The first few lines of the parameter file contain information about  the size and contents of the file  The abbreviated headings in the sec   ond line stand for    LNS  total number of lines in the parameter file including blank  lines and headings  TYP  an I D  number for this particular parameter file  if modi     fications are made  this number should be changed          52   02 J4N 80 COPY      PARML LST   OPTION I LPRINT U1 BB   1 MACHINE PARAMETERS   2    8        CAT LEN               06221002   8   8  3     4   5 POSITION INFO      CAT OFS TLN DLN   7 101   15   3  3    8 102   21  3  2    9 103   24  3  4    10 104   335 3   5    11 105   41   3        12 106   49   3   1    13 107   53            14 900   54   2  2      52                 AST LINE      PARAMETER FILE HEADERsssasSTART USER INFORMATIONssssa   17 CHAMBER   18 GAS ID   PRESSURE T  GAS NAME   19 999  2 00   07    BASE   20 191  5 80   03 02 FILL   21 90   0 00   00     22   23 PUFF FILL   24 VALVE ID   TIME   T0  PRESSURE T  GAS ID 9 GAS           25 01   00   0 0   00   101  02   28 90   90   0 0   00  90     28            TRIGGER TIMES  USEC    29 UNIT    TRIG  TIME  TO    30 1  13300   31 2  13300   32 3  99   33 4   90   34     35 BANK UOLTAGES  KV    36 BANK ID  4   FAST   SLOW TRIG ORTOD USEC BANK           37 101  1 1  0 5   13300                        38 102  0 20   0 06   13300  UERT  FIELD  39 103   13 0   0   1
85. arameter file section contains  its own format information  and so this  program should accept many variations of  the Parameter file   eg  explanatory    headings omitted  new categories added etc        _            133    In the event that a parameter file  structure is generated that does not con   form to specifications  data files con   taining this parameter information can be  recognized from their Parameter file ID  number  see TYP  Sec  4 9   Analysis  programs detecting these non standard  files can take special action   eg  lines  10216 to 10218 in ANAQ6 BAS for TYP   1001     This program is written in a dif   ferent BASIC  Multiuser basic V2   so there  are slight differences in coding             example  the virtual arrays in this program    are F6    and F7      not  VFn          134    92 JAN 80 COPY      DX1 ANAQ6 LST    OPTION I LPRINT V1 BB    10 U  1N P 4 ATN 1 N GO 2N REM  2         woe EM  BOTH DIGITIZERS HAVE 2mU RESOLUTION         AsSYS 2 9   40 REM   SO ON ERROR GO TO 13000    109 GOSUB 170004 F9 O  PRINT    C  UOR 207  REM MAKE WS NOM TO AVOID ERASING OUTPUT    102 REMSCROSS gt    BEGIN   ENDC       19 DATA 100 229      INuS EnduhenDATAs9999   120 DATA 50  480  1000   121 DATA 0 480   000   122 DATA  50 580 1000   130 DATA 9999   200        200  YS 200   900 OPEN  DXO QOUTPUT ANA FOR OUTPUT AS FILE  2   FILESIZE 3  910  2 0    920 READ 721 IF 22  9999 THEN FION  2  2   930 RESTORE L2 U2 1N READ            GO TO 920   940 PRINT 9 2 FNF  L2  05  3  4
86. ata disk     data file can be up to 128  blocks long  about 30 000 data points  provided that sufficient space is  available on the disk  The first few lines of each data file contain in   formation describing the length of the file and the I D  number  version  number  of the store program that created it    For flexibility  the store program acts mainly as an assembler get   ting most of its information from the CAMAC crate and from four support  files located on the system disk  These four files  which may be modi   fied as the experiment changes  include     hardware configuration file   CONFIG INF   a machine parameter file  MACHIN DAT   a collection of  descriptive titles for typical Tokamak diagnostics  TITLE REC   and a file  to determine what and how much data is to be stored  called a Format file   Several Format files  corresponding to different experiments  can be  stored on the system disk  The operator selects a Format file by entering  its title which will always have the form  NAME FMT  where  NAME  is a 1 6  character file name given by the operator  A flow chart of the store  routine is shown in Fig  4 4    The configuration file  as discussed in Sec  4 7  informs the  store routine as to what CAMAC hardware is available and its location  within the system  Only one  CONFIG INF  should be on the system disk and    should only require modifications when new equipment is acquired or present       TERMINAL       ENTER STORE    COMMAND    ANSWER  DIALOGUE       
87. b  Expanded Time Scale of  a     Fig  3 9  Signals on the Unibus       28    continous conduit connecting the computer cabinet to the experi    mental screen room where the CAMAC crate resides  The conduit is approx   imately 11    long and is constructed from  3 m  length of  192 m 0 0   EMT electrical conduit  Noise on the Unibus was measured while the  Tokamak was fired  The results are shown in Fig  3 10  The peak   noise voltage was found to be about 0 75     well below the 1 5 V noise    margin of the Unibus     Sec  3 8 The DCC 11 Interface   The Unibus extension cable has effectively brought the resources  of the 11 04 to the experimental screen room  As discussed in Sec  2 3  the CAMAC modules are interconnected by the Dataway which is not di   rectly compatible with the Unibus  A Standard Engineering model DCC 11  crate controller is used to translate data and command signals between  the Dataway and the Unibus  A detailed explanation of this interface  can be found in the DCC 11 User s Manual  Briefly  the DCC 11 is a   dumb  crate controller that maps the CAMAC station addresses and sub   addresses onto a block of 1024 Unibus addresses  Each address and sub   address  and the data they contain  can be uniquely accessed by the    11 04 instruction set     Sec  3 9             Modules   Data from the experiment are transfered to the computer through  CAMAC modules  Presently incorporated in the sustem are two 8 channel  waveform digitizers for time resolved data and
88. bed          80         Sec  5 7  If any other response is given to the  REENTER  command  then the computer has entered some RT 11 program and not BASIC  Re   turn to the RT 11 monitor by typing  control C   The BASIC program must  then be reloaded as described in Sec  5 5    Generally  if a crash is severe enough to halt the system  RUN light  out   such as trying to access nonexistent equipment  be sure CAMAC crate  is ON LINE   both BASIC and the RT 11 monitor have been erased and must  be reloaded  e g  system must be rebooted   In some instances  the sys   tem can be restarted by toggling the halt continue switch  If recovered   the computer responds with the     prompt and BASIC can be recovered  with the  REENTER  command    Since the battery backup option was not purchased with the present  system  any interruption in the computer s AC power will cause all pro     grams in active memory to be lost  The system must then be rebooted        CHAPTER VI  CONCLUSIONS AND FUTURE IMPROVEMENTS    A versatile  flexible  minicomputer based data acquisition and re   trieval system has been designed and interfaced to the Texas Tech Toka   mak  The system includes a DEC PDP 11 04 minicomputer  CAMAC digitizers   a Tektronix graphics terminal  and BASIC programs to drive the system   The software can execute all standard CAMAC commands as well as user  written routines  The digitized data are stored on disks in a fixed  format which allows for straightforward retrieval and analysis
89. ce          24                          uot3e2irunuuo  JO ue4berg 2132  9  25      14406               SYOLOSNNOD 6280 VIA         6104100        SLNdNI    u3Aluq 508 AYNd 88915012                    2          80b4  08  u3A1393U 3NIT GYND V68PISO  V   21       yo  3N   V AOI     0184411       ddd   gt ALL 0    ddde04          AS    NO 2                NO                       31       OAS    OAS       1 6    Lla  vorz       _               an T Word 041 0  n 01  D gt  9414             04  d         g            2 08435  318VN3 T    MOLY      2 2                 2                     vol                            gt          25    capable of dividing the screen into upper and lower areas called the   workspace  and the  monitor   respectively  Text from the keyboard or  computer can be directed to either area  Local memory allows the 4025  to store up to ten pages  screens  of text which can then be  scrolled   on or off the screen using keyboard commands  Other options and features  of the 4025 are discussed in the 4025 User s Manual and the 4025 Pro     grammer s Guide     Sec  3 7 11 04   CAMAC Interface   The circuit boards which make up the 11 04 system are interconnected  by a common backplane called the Unibus   The Unibus consists of 56 signal  lines which carry data and commands to each board within the computer   For making connections to external devices  the computer backplane is  brought outside the cabinet via anUnibus extension cable     14 2 m Unibus  extensi
90. consistent pattern of  data  for neatness   When the real CATALO G  file is created in step 61  this space of 4  blocks is left vacant  Next  when the  TITLE  TXT file is created  RT 11 will place it  at the beginning of this empty space  leaving  3 free blocks  These 3 blocks guarantee that  the files created above can be modified without  being repositioned at higher block numbers on  the disk  e g  will not be mixed with data  files            50 to 60    61 to 65    80    90 to 162    165  170 to 400    110    create a 1 block INITIA LIZ file  enter the  message   EMPTY DATA DISK    create the real CATALO G file  2 blocks long    enter the message  DATA ON THIS DISK HAVE NOT  BEEN CATALOGED    assemble disk title DAXXX where XXX is the  disk sequence number entered by operator  create    1 block TITLE TXT file containing  the disk title  sequence number  and comment  entered by operator  up to 450 characters   check length of comment   return for next disk  enter zero to exit    program        111    02 JAN 80 COPY      CREATE BAS   OPTION I LPRINT U1 BE  5              9 lt  gt     THEN     PRINT    SET THE DATE YOU DUMMY  GO TO RT 11   CRASH     P    RINT    ENTER DISC   JUST THE NUMBER     S  INPUT          N gt O THEN 9 NGO TO 300    9 PRINT    PLEASE WAIT 25 SECONDS       10  20  30  40  50    270  180  300  490    OPEN  CATALO G         OUTPUT 4  AS FILE UF19264  FOR IsO TO 31                                                      CLOSE                             2  
91. e at the time   This indication is somewhat redundant  because the errors covered can be  detected by just checking the data  However  it is very useful in FORTRAN  and BASIC programs  because error checking could double or triple the  time required for data retrieval   ERFLG   0  allows the reading program  to bypass error checks for all of that record   CKSUM      checksum  used to verify that data has been read cor   rectly from the disk  The  CKSUM  value is defined as     16    CKSUM   2    sum of   11 data words in that record     calculated modulo 216   The data words are interpreted in the same way as integer virtual array  elements in BASIC  and all words including errors are summed  The  present value  100 00  is an impossible value and indicates that checking  was not performed by the storage routine  This checksum is not connected  with the checksum employed  transparently  by the RT 11 operating system    If a record contains single sample data  the data word is stored in  the header section and the columns of line 1011 of Fig  4 7 take on new  meaning     BLK   is set to zero indicating that no virtual data array exists    for this record        62    IST TM  15 the time  in us relative to the module trigger time   that the sample was taken   STEP  contains the data word  The    SMPL  and  LST TM  columns are defined the same way as  1ST TM  and  and  STEP   respectively  so that a single record might contain two sin   gle data samples taken at different times  
92. e data file    header     The header  of each data file is in the form of an ASCII text file and can be listed  on the terminal  A typical data file header is shown in Fig  4 7   This particular data file contains 6 records  stores 3840 data points   and requires 23 blocks of disk space   Each line of the data file header begins with a line number to  facilitate reading and analysis programs  In the example header of  Fig  4 7  lines 1001 to 1017 make up the directory section of the file   The information in lines 1001 and 1002 includes   F   a three digit number identifying the store routine that  created the data file   FFL   the I D  number of the Format file used   SHT   the shot number  starts at zero with each new date     REC  the number of records in this file   CNT  continuation code  allows data files to be chained together  if necessary  e g  12 means the first of two files     CPY  used to distinguish between different copies  the master  copy is  1   copies that are different  corrections have been  made  are numbered 2 3 etc    DATE  the date the data file was made in a YYMMDD format as de     fined in Sec  4 4          59  02 JAN 80 COPY      TYPICA HED   OPTION I LPRINT 91 88    1001               SHTS REC CNT CPY DATE     REC LST PARM LST TIME SLINES  1992   191   2991  1    4   00   1   800102   1005   1029   29856   79    1003  TIME 16 37   STEVE   TYPICAL DATA FILE   1004                  ID  HEADR LEN TITLE    1005   30  9   0   1012   1    1006   20   9 
93. e resolution of the plot but will  require more time to draw   example  0  CR     ENTER   DATA POINTS    200  CR  all subsequent graphs will   use 200 points   returns the present crate  station  and subaddress numbers   set by the CRATE and SUBADDRESS commands   example  E  CR     CRATE 2 STATION 6 SUBADDRESS 0   executes a CAMAC F code  the crate  station  and subaddress    must be properly set prior to using this command     example  F9  CR    0  31     F9    THE RESULT  if applicable    overlays and runs PLT200 BAS to plot data presently stored  in the buffer memory of the 2264 digitizers  proper sta   tion number must be set    example  6  CR      CHANNEL      n  CR  n 1  8      OF SMPLS  1ST SMPL     n  s  CR  n  s   0   17000  SMPLS in this command refers to the data in the buffer     The plot can be started at any point in the buffer  This       HALT     INITIALIZE     MULTIPLE     NEW     OVERLAY     PANEL     77    makes it possible to expand any portion of    plot   Stops execution of the program and returns to the BASIC  language  the program can be restarted with the  GO TO  1000  command  example  H  CR     READY   BASIC prompt   executes a CAMAC Z command  see Sec  2 6   starts all digi   tizers  any previous data are lost   example  I  CR       INITIALIZE Y N     YES  CR   sets the multiple flag in the graphic section  all subse   quent graphs will be placed in different areas of the  screen without erasing previous data  example      CR   no response from com
94. ed anywhere in the main program and their  addresses added to the address table  This chapter will discuss the  structure and flow of the software to allow future users to make additions  without re writing the entire program while Ch  V is a set of instructions    for loading and running the storage program     Sec  4 2 System Information    Some knowledge of the 11 04 system structure is required in order  to understand the storing routines  Those points that pertain to the  routines are discussed here  For more complete information the reader is    referred to the 11 04 documentation kit     36       37           storage routines are written to run on the 11 04 system  with  the equipment listed in Table 3 1  and a Tektronix 4025 graphics terminal          RX01 disk drive is a file structured device  Files on a disk can be  created and manipulated by the RT 11 monitor and by an executing program   A  directory  file  installed on each disk  contains the title  length   creation date  and position  on the disk  of all files on that disk  A  program stored on a disk must be downloaded into active memory before it  can be executed  Loading a program does not alter  the file stored on disk    Space on a floppy disk is allocated in  blocks  where a block is  512 bytes     standard disk  after being  initialized   will contain 480  free blocks  The RT 11  initialize  command prepares a disk for use in  the 11 04 system by creating a directory  or erasing the existing directory  
95. file has been cal   culated  the basic statement that will open the data file is stored   along with a line number and the proper data file size  as a one line  overlay       a file called  DUMMY DAT   The dummy file is then overlayed  onto  570200  which writes the  OPEN  statement into a later part of the  program  The  DATA HED  and  DUMMY DAT  files are rewritten each time a    data file is stored     Sec  4 12 RED200 BAS   The final overlay in the storage routines is  RED200 BAS  which is  used to plot data from data files onto the 4025 terminal  Called by the   READ  command   RED200  executes in much the same way as  PLT200  except  that the data come from a disk file rather than from the CAMAC crate   Also  with the  READ  command  the directory portion of the data header  is printed out to the monitor space of the 4025 terminal     flow chart  of  RED200  is shown in Fig  4 8 and a listing of the program is included  in Appendix       Lines 20050 to 20990 of  PLT200  and  RED200  are the same  If one  of these overlays is present  only the top 20 lines need to be overlayed  to change to the other function  resulting in a faster response  For  this purpose  two more overlays are included in the system   GRA200  BAS   and  FIXRED BAS  which contain the top 20 lines of  PLT200 BAS  and   RED200 BAS   respectively            ENTER REAO  COMMAND            ENTER  FILE NAME     RECORD TYPE    FINO ADDRESS  OF READ  ROUTINE AND  EXECUTE    OVERLAY  RED200  IF NECESSARY    E
96. guration file on the ter   minal  and asks for the operator s name and the name of the parameter file   At this point the data storage routines have been initialized  The  message  ENTER COMMAND  15 printed and the program is now ready to          cute any of the commands listed in Sec  5 7 and Appendix C    As mentioned earlier  the first portion of the program has been  erased to conserve memory space  Because of this  the BASIC  RUN  com   mand cannot be used to restart the program after a halt or crash  If  the program halts  but the program and the BASIC language are still resi   dent  the program can be restarted by typing  GO TO 1000   CR   The BASIC   GO TO  command leaves all variables unchanged and any open disk files  are left open  so it is usually wise to type  CLOSE   CR   then  GO TO    1000   CR   if problems are encountered during store or read operations     Sec  5 6 CAMAC  F  Commands   Before issuing a CAMAC command to a module  the proper crate and    station numbers must be set by using the system  CRATE  command  as de   scribed in Sec  5 7 and Appendix C  The crate number must correspond to  the thumbwheel switch on the crate controller  always set to 2 in the  present system   The station number  1 to 25  determines which module is    being addressed  The present setting for crate and station numbers can       70    be examined with the  ENQUIRE  command  Once the crate and station num   bers are set  CAMAC commands are issued with the  F n   command 
97. hese routines  The table  of subroutine names and addresses used   SUBTAB MAC   and the RT 11    commands used to link the routines are reproduced after the subroutine    listings        117    02         80 COPY OF DX1 MEMOPS MAC   OPTION ILPRINT 91 88              STOB  EXEC USER FUNCTIONS FOR BASIC V2    eGLOBL PEEKST se POKEST GETEST   STOBST                     IS THE ADDRESS    SUPPLIED    C IS THE CONTENTS    ITHE ZERO TERMINATES ARG LIST  5         SURE NEXT ADDRESS EVEN    IRI POINTS               MSR     R2 POINTS TO MSB A         IN RANGE    15 IT    WORD ADDRESS    SCLEAR MSB FAC R3 POINTS TO       2   STORE CONTENTS IN FAC2        POINTS TO VARIABLE INFO IN TABLEF     TWO           5  2       TERMINATES LIST    sGET DAT POINTER   TEST 1 GET DATA TO R3     5     ADDRESS POINTER  sTEST FOR      FORMAT    sSTORE WORT        MEMOPS                              TITLE MEMOPS  eGLOBL GETARG   STORE   INT   MSG   ROsZxO                R22 2     3  23   R4sxA4   R3273   S P2x6   PC2 7         1  40   Fac2e42   4 PEEK           sRETURNED   PEEKST          TABLEP   RO  JSR PC GETARG    BYTE 1 2 0    EVEN                 1               RS R3  MOU   41    2  JSR               6    JSR PC   WORTST  CLR  RI               2     R3           C  RO  JSR PC STORE  RTS PC   4       POKEST  MOV                       JSR PC GETARG             1 1 0                         2   2  JSR               6           R2  R3  MOUSP1  R2  JSR PC FPTEST  JSR PC   WORTST  MOU R3    R2   RTS PC   
98. if the disk has been used before           two disk drives are labeled DXO  and DX1 where  DX  indicates an RXO1 drive  In the default configuration   DXO is the system disk containing the RT 11 monitor programs and device  handlers while DX1 is used for general purpose storage    A directory of the disks used with the storage routines is shown  in Table 4 1  Each entry in the directory includes the title  the length   in blocks   and the creation date  or last modification date   The  system disk  in DXO  contains the required RT 11 monitor programs and  the data storage routines  The disk in drive 0  1  as shown in Table 4 1   is a specially formatted disk for storing data files  Each of the files  on this disk has a specific purpose that will be discussed in later sections    File titles consist of two parts separated by a period  The first  part is a 1 6 character name usually chosen to describe the contents or    function of the file  The second part is a 1 3 character  type   The       Directory of Storage Routine System Disk and Formatted Data Disk       TABLE 4 1    02 Jan 80  CATDIR BAS 3 01 Nov 79 184 0  8     40 20 Se   79 206                       1 06 Nov 79 103 OVRNEW  BAS 25 08 Nov 79 370  CLRLOW  BAS 1 12 0et 79 260 PIP SAV 16 11 Mar  8 107  CONFIG  INF 1 18 0    79 271 PLT200  RAS 9 01 Nov 79 319  CREATE  BAS 3 17 0ct 29 264 RADOO1 FMT 2 18 0ct 79 252  DATA MED 8 07 Nov 79 362 RADOO2 FMT 1 23 0ct 79 275  DIK SAV 17 21 Mar 78 144       003        2 24 0    79 
99. if the operator wishes to enter one   The record list section  lines 1004 to 1010  gives a brief summary of  the records in the file and the addresses of where to get more informa   tion on each record  The  TYPE    ID   and  TITLE  information is the  same as before  The  CAT  entry is the category of the parameter sec   tion pertaining to that record  if applicable   The  HEADR  and  LEN   entries give the start address and length  respectively  of more complete  information about each record  This information is catled the record  header  lines 1011 to 1017   Each entry is described as follows   BLK   the starting block number  within the data file  of the  binary data array for that record  The  1ST TM    STEP     SMPL    LST TM   and  GAIN  entries are the same  as for the Format file information  The  SERIALZ  entry is the TTU  inventory number of the module that took the data  The  ERFLG  and   CKSUM  entries are not presently used and are loaded with dummy values     These will be used in future versions with the following meaning     ERFLG  indicates if any of the data in that record are erroneous     typical errors are  ERFLG values in decimal            61    ERFLG    1  the error checking logic was not implemented    0       errors detected    1  some fullscale readings are present  these may                sent overloads  e g  all O s or all 1 s     10  some samples have been replaced by dummy values   outside the valid ranae  because data were not       11   abl
100. ing graphics  routines  plots only the data                      in the time range X3 to X5  in us  set just  before the call in line 1130  X and Y are in  physical units  us  mV   many variaticns on  this section are possible     subroutine to allow lines in    sequentiai  file to be accessed randomly if desired   error checking is thorough to relieve tne  user of this burden  L6 contains the desired  line number  and L5 contains the last    ine  number read  one case in which errors cannct  be checked  without a consicerabie 1055 in  speed  is          L6   L5   1  use the subroutine  at 11100 to check after reacing in inis case     preferably in ali cases        11100 to 11110    12000 to 12300    13000  17000 to 19910  30000 to 30020    31000 to 31050    Notes        w       132    subroutine to check if reading    line pro   duced the desired line number  L5 should be  the first element in the input list of the  INPUT statement that read the line  L6 is   the expected line number   subroutine set designed to access the  parameter file information  Entry at 12000  positions the file ready to read line L4 in  category T5  Entry at 12200 positions the  file at the line in the category CO belonging  to the ID number IO  Entry at 12300 positions    the file to read the line associated with data      record N4    error recovery  for specific errors only   graphics subroutine   prints the output file OUTPUT ANA on the  terminal    archives the  temporary  output file      The P
101. ired    Only one terminal can be transmitting to the computer at any given  time but all three may listen by setting their  echo  switches to the   ON  position  Terminals 1 and 2 each have two sockets connected in  parallel  one on the back of the switch panel and one in the experimental  screen room to allow for remote operation  However  only one terminal    should be installed for each position     Sec  3 4 Optical Isolation    Typically  the 4025 terminal is used as a remote terminal at the  experiment  To protect the terminal against large induced voltages  an  optical isolation circuit has been designed and installed in the RS 232  line between the terminal and the switch panel  A schematic of the  circuit is shown in Fig  3 5  The isolator consists of two identical  but electrically isolated circuits each containing a transmitter  a    receiver  and a power supply  The transmitter in each side drives a    18        pJeog   0112                        JO           1          2 2    BLY       c  2 SuU t N    2                    2     mte       34413131 1    193135  VNIMM31    37187510    318VN3    LINSNVY        gt           uo  uo       6118             14                 2   5118 4015356                              A LINVd E   o            338VN3 ALIMVd                     WwWNIWI3L 193135 GAVE Y3LAdWOD        WNIWY3L         2 IWNIWY3L           IVNIWNH34                      1234567891 0  192011111111           Np                e       9             t  m  N  uo  
102. ked against    the single letter commands  The available system commands are listed          71    below and in Appendix        Commands that include numbers such as the F  or V  commands    must be typed exactly as illustrated  e g  the entire word cannot    be typed     In the following examples   CR  indicates the carriage    return key and any questions or responses generated by the computer    are enclosed in quotes  e g   RESPONSE       AUT      ERASE     NAME     Three Letter Commands    Only the first three letters of these commands need to be    entered for the command to be recognized by the program     Automatically issues start and stop triggers  separated  by a delay  to the 2264 digitizer which allows a single  trace on the 604 monitor for each sample period  This   is useful for determining the settings for the front  panel switches to get the desired data window and  sampling rate  The delay is presently about 30 ms  If   a very slow sampling rate or large number of post trigger  samples is desired  it may be necessary to add a second  delay between the start and stop trigger codes  F9 and  F25 in lines 1400 and 1410  to allow the 2264 to fill its  buffer    clears the multiple and overlay flags in the graphics  routines so that the next graph will erase the workspace   no immediate action    example  ERA  CR     enters operator s name       PARAMETER     READ     72    example  NAM  CR    ENTER OPERATOR S NAME   JOHN  CR   prints a parameter file into the wor
103. kspace of the 4025  terminal and allows the operator to make changes  in  form  fillout    mode  and save the new file  or replace the old  file by using the same name   The parameter file presently  in the workspace at the time the STORE command is issued  will be added to the data file   example  PAR  CR    PARAMETER FILE    ANY NAME  CR  use W if file is already in  the workspace   MAKE CHANGES NOW   by moving cursor to work   Space  return cursor to  monitor when finished    SAVE NEW FILE    YES  CR    NEW NAME    ANY NAME  CR  using the same name will  replace the old file  downloads  RED200 8AS   if necessary  and plots data  records from files on the data disk onto the 4025 terminal   Any available graphics options  OVERLAY  WIDTH  etc   may  be used but must be set before the READ command is issued     example  REA  CR        SCALE     SHOT     STATUS     73     WAIT  READ     FILE NAME      791206 003  CR  shot 3 on 12 6 79   TYPE      030  CR    type 030 is plasma current    The data are plotted in the workspace and the data file  header is typed in the monitor  This command does not  offer the  first sample  or  number of samples  options  used in  the GRAPH command   changes the vertical scale factor for the next graph  no  immediate action   default values are  130 and are  determined by line 910 in OVRNEW BAS  example  SCA  CR     ENTER YMIN  YMAX     50  100  CR   allows the operator to modify the shot counter  example  SHO  CR     SHT    n  n   the last shot s
104. le is shown in Fig  4 2 a   Each CAMAC  module is identified by a unique unit number and by its TTU inventory num   ber  The crate and station numbers describe a module s location within  the CAMAC system while the type and bus numbers indicate the kind of  equipment used  The post trigger entry refers to the 2264 digitizers and  indicates whether the module is internally jumpered so that the number of  post trigger samples indicated by the front panel switch is read directly   or is multiplied by two  e g  twice as many post trigger samples as        dicated by the switch   The bus number entry allows the system to include  other than CAMAC equipment  583 bus   but no software to support other  buses had been developed at the time of writing    At this point  the program has printed  ENTER COMMAND  on the  terminal and is waiting for input  When a command is entered the pro   gram tries to match the first three letters  if there are that many   with the three letter commands catalogued in the branch table  If no    match is found  the first letter of the entry is compared against single    02 JAM 90 COPY      COMFIG INF       UNIT 9  gt     1    2    3      4         O2 Jan 80 COPY OF RADOO6 FMT   OPTION I    BUS                        REC    2001            UNIT  30   2    20   2    21   2   113   is  114  1    103   1            CHNL   5   1    3    2    3    1      Fig          CRATE      SLOT        583   583   583              DATE  791107  GAIN    31     1    1    1   
105. led   normal  stations and will accept any CAMAC module while station 25 is  reserved for the crate controller module  discussed in the next    section   The normal stations  1 24  share common power supply lines        CRATE CONTROLLER POWER  MODULE SUPPLY    DATAWAY           lt  l     FAN DRAWER       CAMAC                       DATAWAY                            25 CAMAC STATIONS    Fig  2 1  CAMAC Crate with Power Supply and Cooling Fans          subaddress lines  data lines  module status lines  and command lines   Each station has a separate station address line   N    and  Look at ME   line   LAM   often used to request service  that terminates at the    controller station  25      sec  2 4 The Crate Controller   The crate controller occupies  at least  the two right most stations   24 and 25  in the crate  The function of the controller is to initiate  and monitor all Dataway activity     module can request service by  raising its  Look at Me  line  and can indicate its status to the con   troller on the  X  and  Q  status lines  The controller also issues  CAMAC commands and acts as a data buffer for transferring data to or  from the modules  In selecting a crate controller  there are two major  subdivisions to consider  local intelligence vs remote intelligence    A  smart  crate controller contains local intelligence  usually  in the form of a microprocessor  and local memory and is capable of  storing and executing programs to control the functions of each module
106. listing and description are  included in Appendix A      Lines 20050   20240 of PLT200 BAS form a driving program for a set  of general purpose graphics subroutines residing in lines 20250 20990    The graphics routines are written to drive the 4025 graphics terminal   Options  such as log or linear scales  multiple or overlayed graphs  are  available  These general purpose routines are normally located in lines  17000 19700 but have been renumbered so as to coincide with the overlay  area of the storage routines  Instructions for using these graphics  routines have been added to the BASIC Language Reference Manual  The  new entry points for the renumbered graphics routines are included in    Appendix A            ENTER GRAPH  COMMAND              SAMPLES    Fig  4 3     FINO ADORESS  OF GRAPH  ROUTINE ANO  EXECUTE       OVERLAY  PLT200 BAS  IF NECESSARY    CHECK CRATE   GET NUMBER   OF CHANNELS  SAMPLED    ENTER  PARAMETERS  FROM USER       READ EACH  POINT FROM    CRATE        PLOT    ON 4025    WAIT FOR  NEXT COMMANDO       Flow Diagram of    7220 5  5       d          DISK    PLT200 BAS  DR  GRA200 BAS       49    Sec  4 9 570200        and Support Files    The longest and most involved overlay is  STO200 BAS  occupying  lines 20050 to 21350  This routine is downloaded in response to the  STO   or  STORE  command and is capable of reading and storing various types of  data from many different sources  The data are stored in virtual files   discussed in Sec  4 10  on the d
107. lity would be to store only the numerical part  and require the reading programs to extract headings and comments from  a Single heading on each data disk    At present  The majority of the data stored come from the 2264  digitizers  These units produce 8 bit data words which are stored by  BASIC as 16 bit words  The disk space required to store these data  could be cut in half if some means of prepacking these data before  they are stored were incorporated  Other methods of data compression  include calculating the exact number of bits necessary for each data  word or storing the differences between data points rather than the  points themselves  Each of these metheds will increase the data den     sity at the cost of increased complexity within the reading programs        10     11   12     LIST OF REFERENCES    H  C  Kirbie   Design and Construction of the Texas Tech Tokamak    M S  Thesis  Dept  of Elect  Engr   Texas Tech University  1978     M  Kristiansen and M  Hagler  editors   Proceedings of the Small  Toroidal Plasma Devices User s Meeting   Plasma Laboratory  Dept    of Elect  Engr   Texas Tech University  1978     Institute of Electrical and Electronics Engineering             Instru   mentation and Interface Standards  John Wiley  amp  Sons Inc   New York   1976      Ibid       4           11 Processor Handbook  Digital Equipment Corp   Maynard  MA   1978   Ch  2        System User s Guide  11 04 Documentation Kit  Digital Equipment  Corp   Haynar        1977   
108. n erases the  first 31 lines  10 980  of the program and waits for input from the ter     minal  A flow chart of this chain of events is shown in Fig  4 1              44    RUN  OVRNEW BAS    CHECK SYSTEM  TIME AND DATE           DISPLAY  ERRORS        PRINT ERRORS       DISK                CHECK     INITIALIZE    FILE INITIA LIZ  DISPLAY ON DATA DISK FILE ON        ERRORS       FOR DATE AND  SHOT NUMBER   STOP      ERRORS    DATA DISK           PRINT SYSTEM CONFIG  INF  CONFIGURATION FILE ON  INFORMATION SYSTEM DISK        HAROWARE  CONFIGURATION       SET CONSTANTS  AND DEFAULT  VALUES            DO NOT RERU  LINES 10 980  HAVE BEEN  ERASED    PRINT RERUN  WARNING  CLRLOW BAS  OVRLAY CLRLOW        WAIT FOR USER    TO ENTER  COMMAND       Fig  4 1  Flow Diagram of the Initialization Portion of OVRNEW  BAS    45       Erasing a portion of a program is accomplished by overlaying    file   CLRLOW BAS  that contains line numbers alone  without statements  As  this file is overlayed  each corresponding line in the existing program  is erased  Overlays affect only the active memory and cannot modify the    file on disk     Sec  4 7 Hardware Configuration File   The hardware configuration file  CONFIG  INF  is printed into the  workspace for the operator to review  and check against the actual con   figuration of the CAMAC crate  This file contains information about the  CAMAC modules and their position within the crate and is used by the store  routine  A typical configuration fi
109. n the data disk    122       SCALE   SHOT   STATUS     STORE     SUBADDRESS     TITLE   Vi   WIDTH     123    change scale factors on graphs   modify the shot counter   return the DCC 11 Control Status Register  CSR  contents  store data on data disk   set the CAMAC SUBADDRESS   add record titles to the TITLE REC file   read data from channel     of 2232A scanning DVM    modify size of next graph       124    TABLE C 1    Record Titles and Types Contained in TITLE REC    Type  010  020  021  022  023  026  027    Title  Function Gen  Cos Pos  Sin Pos  Cos Pos Norm  Sin Pos Norm     Loop Inner     Loop Outer  I Plasma  I OH Primary  I Foroidal  I Vertical  I Radial  DI Plasma  DI indicates  DI OH Primary the time de   DI Toroidal rivative of I   DI Vertical  DI Radial  NE Fringes  Cos Cpt  Sin Cpt  Folded Fringe       125    Table    1 Continued    Type   Title  103 BZ Wall Cos  114 BZ Scan Sin    113 BZ Scan Cos       Appendix 0  TYPICAL DATA ANALYSIS PROGRAM    This program performs analysis on a group of data files  specified  in the file WORKLI ST  These files are selected in advance  with the  aid of the program SELECT BAS  which reads the file CATALO G on the  data disk being used    The analysis consists of several  passes  over the data  In each  pass the time at which a record  record 103  goes through the level   22  15 determined  For each pass  a new value of 22 is obtained from   DATA  statements  The values of records 113 and 114  referred to by    7 and   8  at 
110. nd depends upon the  particular piece of equipment being used  an example of the execution of    a CAMAC command is given in the next section      Sec  2 6 Dataway Timing    Signals on the Dataway are synchronized by two timing signals     S   which are generated by the crate controller and are common to    1 32  all stations     typical Dataway operation is illustrated in Fig  2 2  and is described in the following example    Suppose the module in station 13 is a 12 bit analog to digital  converter which stores the results in an internal buffer accessed  through subaddress A 3   After a conversion the ADC loads its buffer    and issues a  Look at Me  signal to the controller       transfer the    11    uoLzeuadg Aemezeg e jo weubeig           72 2            NOILVHISO 27787 739  07  32NVW3704 378VMOTTV                     0NO23SONYN 34V2 0N  8         O3OVHS     340N    2 380415       380915                3001     x b          SNLVLS 9               4 v N   QNVWWOO             12    information from the module  the crate controller would simultaneously  clear the  Look at Me  signal  and issue      N 13      3   and    0   read  registers  on the respective Dataway lines  This action corresponds to  to in Fig  2 2 where all signals use negative logic  e g  0 V   logic 1    After the    0  command is issued  the ADC module must gate the contents  of its buffer onto the data lines of the Dataway  and remove its LAM  signal  within 300 ns         5  Signal is issued at t   400
111. ntain the initialization date and any comment  up to 450 characters  the  operator wished to make  The disk title and initialization date should  also be put on the protective cover of the disk   When a file is copied or edited  it may be moved to a new position  on the disk  Since the  INITIA LIZ  and  CATALO G  files are accessed  quite often  a 3 block blank space has been left near  the top of the data  disk for these files to move into to prevent them from mixing with the  data files and leaving behind holes of wasted disk space  Spaces almost  as large as a data file can be wasted in this way     listing of the   CREATE BAS  program and a line by line discussion is included in Appendix A   The  INITIA LIZ  file on the data disk contains the date and shot  number of the last data file stored on that disk  so that shots can be auto   matically numbered in the correct sequence  even if the computer is turned  off  or crashes  during an experiment  Because  INITIA LIZ  is updated  only after each shot has been stored  it is possible that the computer may  stop  crash  after a valid data file is stored  but before  INITIA LIZ  is  updated  To minimize the chance of losing a data file this way  the soft     ware asks the operator to verify the shot number if the program is restarted        41            CATALO G  file on the data disk will contain a directory of   11  the data files on that disk  This file is loaded at the end of the day by  a two step process  First  in RT 1
112. number of first data line in parameter file    1  In the example in Fig  4 5  the first offset number is calculated as   OFST 7 3 17 3   The offset numbers are used to calculate the Lth data line of a category  from the equation   line number of      line    line number of first data line in    parameter file    OFST   I  As an example of this procedure  the line number of the second data line    in the fourth category  BANK VOLTAGES  of the file in Fig  4 5 is           54    Tine number   3   33   2   38   In the data file all lines are numbered  including blank lines and  heading lines so that the line number calculated above is the 38th line  in the file  Through these offset numbers  the position of each category   relative to the first data line  can be determined  The line number of  the first data line in the parameter section is recorded in the first  data line of each data file for easy access    The rest of the parameter file gives information about the experi   mental setup    11 trigger times are relative to to which is the initial  trigger pulse for the experiment  Where more than one similar piece of  equipment exists  as with magnetic probes  each is given a 1 to 3 digit  I D  number  The position of a probe around the Tokamak is determined  by a toroidal and poloidal angle  measured in degrees  and the distance  from the tip of the probe to the center of the chamber as shown in Fig   4 6  The orientation of the probe refers to the angles that the Normal  vect
113. ollowing the overlay statement    The storage programs can be divided into four major functions  the  main calling program  OVRNEW BAS   the plotting program  PLT200 BAS   the  the storing program  STO200 8AS   and the data file reading program   RED200 8AS      listing and discussion of each program is included in  Appendix A  Each segment is written so that all overlaying is done  between line numbers 20050 and 21350 with increments of 10 in each segment   By doing this  the lower portion of the main program is made common to    all segments     Sec  4 6  OVRNEW BAS   The main calling program contains the command address table  most  of the simple command subroutines  and an initialization routine which  erases itself after execution  This routine  residing in the first  portion of the program  lines 10 980   checks that the 11 04 system time  and date are set  The routine also checks and updates the  INITIA LIZ   file on the data disk  If errors are found  they are logged on the ter   minal and the program halts  The operator must then correct any errors  that occurred and re run the program  When no errors are found  the  initialization routine prints a message warning the operator not to use  the run command again  without reloading the program from the disk  and  prints the hardware configuration file  discussed in Sec  4 7  into the  workspace of the 4025  The initialization routine also sets a default crate  address and station number  determined by line 910   and the
114. on cable has been installed between the computer and the CAMAC  crate  Tests were made to ensure that the capacitive loading of the cable  did not degrade the rise and fall times of the signals on the bus  The  results are shown in the oscillographs of Figs  3 8 and 3 9  Shot 3 8 a   depicts the signals on an address line without the extension cable  Shot  3 8 b  shows the effect of the unterminated extension cable  Shot 3 9 a   and  b  show the response on the bus with the Unibus terminator board  properly installed in the connector block at the CAMAC crate  The rise  and fall times to TTL levels  0 8 V   2 0 V  are about 20 ns and are  almost identical to the response of the unextended backplane           protect the system from electromagnetic interference  EMI  the    Unibus extension cable and the remote terminal lines are enclosed in a       26                    Vertical     Scale   4 1 V cm  2      4  5  1       Vertical  Scale  1 V cm     b  Extended Bus  Unterminated    Fig  3 8  Signals on the Unibus        5  Expanded Time Scale of         Fig  3 9     Signals on the Unibus    Vertical  Scale  1 V cm    Vertical  Scale  1 V cm    27    26            e  4             gt     Scale  1 V cm       ion    No Extens         Standard Bus     a     Scale    V cm                 oT ad   42               gt          inated    Extended Bus  Unterm    b          Signals on the Unibus    Fig  3 8     27       x       1 Vertical    Scale  d 1 V cm   Vertical  Scale   1 V cm     
115. or of the probe coil makes with the horizontal plane  elevation   and the toroidal  or  2   direction  azimuth      single number is used  to represent both angles and is calculated by the equation    number   360 x AZ   EL  where  AZ  is the azimuth angle  and  EL  is the elevation angle as  shown in Fig  4 6  both angles are integers expressed in degrees     It is important to remember that the information in the parameter  file is entered by the operator and not measured by the system  As the  data acquisition system expands  more of this information will be ob   tained by the computer  but because there are so many important para     meters to be recorded  it is difficult to envisage a significant       55                   0    60   6   180    R  X      Antenna  Port  TOP VIEW  6   90    0   90  R X cm       SECTION AA        Normal Vector to  Probe Coil       ORIENTATION    Fig  4 6  Probe Position and Orientation          56    decrease in the        the parameter file  The parameter file is added  to each data file for use by reading and analysis programs    The last file accessed by the store routine is the Format file    A typical Format file is shown in Fig  4 2 b   This file is created by  the operator to determine which channels and how many data points per  channel are being stored in the data file  The first data line of the  Format file contains a 4 digit I D  number to identify this particular  Format file  Also on this line is the number of records being sto
116. ped for the Texas Tech Tokamak    The Texas Tech Tokamak is a toroidal plasma research device of  circular cross section intended primarily for the study of wave plasma  interactions and plasma heating  The facility consists of the toroidal  vacuum chamber  R   46 cm  r   16 cm   a 130 kJ toroidal field bank  a  20 kJ ohmic heating bank  soon to be increased to 30 kJ   and a 2kJ  vertical field bank  Typical plasma parameters are listed in Table 1 1  and extensive documentation of the construction and performance of the    Texas Tech Tokamak are available in other reports  1 2        15     UOLZLSINboy 2190 yo                42018    I T    bly                    YOLINOW          5        9                             ee                                                                   H31NIHd     3IJ4I19V            1    1 9    v1 23                 6 434408 i  AMdNI                6      igi pe  11  OMOVW                            P  NS      YOLINOW                   SNOILVOINNWWOD 2ISV8    32111910 TWNOIS  3HvM13OS  ZHWb G  13NNVHO 8                       30103135   5     832111910 TWNOIS   262 654 3uvdS                               ZHNb S  13NNVHO 8        jO   31A8 AZIS  SLNANI AMOWAW              i   AMOW3W SON  901VNV             9                                        31A8 AZE                                         4OSS320Ud    U31T1081NOO    31V85            11 20       8 amp              8  0     SNGINA 11 ddd   2    M 1110 VO  I1                E          Plasm
117. puter    executes the stop trigger command sequence for the 2264  digitizers  see the 2264 User s Manual  proper station  number must be set   example  N  CR     COMPUTER CONTROLLED STOP   sets the overlay flag in the graphics routines  each sub   sequent graph will be overlaid on the present set of axes  example  0  CR   no response from computer   returns the front panel switch positions on the 2264 digi     tizers  proper station number must be set        78     example      CR    2 CHNNLS 5 uS SMPL      POST TRIG            1 CH2  1   offset switches      20    executes an    2  command which reads        data word at a  time from the 2264 buffer memories  proper station number  must be set   each data word contains two samples  example  R  CR                sample 1  sample 2  data word         voltage  reads the data from the 32 channel DVM  proper  Station number must be set   example  V4  CR      0   31     x VOLTS  x   data value    WIDTH  sets the height and width  in number of lines and number  of characters  respectively  of subsequent graphs plotted  on the 4025  example  W  CR    ENTER HEIGHT  WIDTH   34  80  CR  for a full screen graph  When one of these commands has finished executing  or if the entered  command was not found in the address table  the computer prints  ENTER  COMMAND  and waits for the next command  The program can be stopped  by the  HALT  command which returns to the BASIC monitor  The storage    routines are still in active memory  however  
118. red  and the creation date of the Format file  The rest of the file contains  a single line for each record being stored and includes    TYPE  a 3 digit number associated with each diagnostic measure   ment being made on the Tokamak  record types and titles are  stored in the  TITLE REC  file on the system disk   UNIT  the unit number of the module that digitized the data   CHNL  the channel number  if applicable    GAIN  the overall gain       of any circuitry between the  transducer and the digitizer  i e  attenuators  amplifiers   etc     OFST  any voltage offset induced between signal source and digi   tizers   CAT  category refers to a section of the parameter file where  more specialized information will be found   if applicable    IDA  used to differentiate between similar pieces of equipment    such as various probes  IST TM  the time of the first data point  in us relative to the    module trigger time        57           SMPL  the number of data points to store  LST TM  time of the last data point  in us relative to the module  trigger time  STEP  time between stored data points  in us    The last two entries are mutually dependent  the operator enters  the desired value for one and zero for the other  The program computes  and enters the missing value into the data file  The commas in these  files and the data file header allow the information to be read by  BASIC  INPUT  statements and  free format  FORTRAN  READ  statements   Consistent right justified alignment 
119. resequenced to correspond with the overlay area in the  storage routines  The new subroutine addresses are shown in Table A 1     The PLT200 8AS program is discussed in Sec  4 8     LINES   PURPOSE  20050 reset 2284 buffer  input channel to be plotted  20060 to 20080 reset graphics parameters   20090 to 20100 determine how many channels were sampled  20110 enter number of points to plot and starting    point  in data points    20120 check that number of points is greater than  the number of points in graph  set by the  DATA command   abort if not  start the 2264  readout sequence  F26  F10    20130 set subaddress  continue readout sequence   F16  FAST    20140 to 20150 determine high or low byte  set graphics     parameters    20160 to 20170 read and plot each point          20190    20200  20210 to 20220  20250 to 20990          9 4    reset 2264 readout  F24  F16  to enable  monitor display   return for next command   error messages    plotting routines       95    02 JAN 80 COPY OF PLT200 BAS   OPTION    LPRINT 91 88    20050  20060  20070  20080  20090  20109  20110  20 29  20130  20140  20150  20160  20170  20180  20190  20200  20210  20220  20230  20240  20250  20260  20270  20280  20290  20300  20310  20320  20330  20340  20350  20360  20320  20380  20390  20400  20410  20420  20430  29440  20450  20460  20470  20480  20490  20500  20510  20520  20530  20540  20550  20560  20570  20580  20290  20600  20610  20620  20630  20640  20650  20660  20670  20680  20690  20700 
120. sferred to the host computer    Data points can be listed in tabular form on the printer or dis   played as waveforms on either of two CRT displays  One display is a  Tektronix 604 monitor which is interfaced directly to the CAMAC  digitizers and is used to review the data presently stored within the    digitizers  This monitor allows the user to determine the validity             of the data before using computer time and disk space to store and  analyze them  The other CRT display is a Tektronix 4025 graphics  terminal which serves both as a graphics display and as a second  communications terminal to the computer  With the graphics terminal   data presently stored in the digitizers can be plotted and compared to  data previously stored on disks  A hard copy can be made of any  graphics or text on the screen of the 4025 terminal via the Tektronix  4631 hard copy unit which connects to the rear of the graphics terminal  and can be controlled from either the terminal or the host computer    In subsequent chapters  the points touched upon in this brief  overview will be discussed in more detail  The CAMAC Standard is  described in Ch  II and each piece of hardware is discussed in Ch  III   A thorough understanding of the storage system software  while not  required to use the system  will be necessary in order to make additions  to the routines as requirements change  These programs are discussed  in Ch  IV and in Appendix A  Chapter V is intended to be an orderly set  of user
121. stem command routines  and the logic for overlaying other program segments  Lines 20050 to  20990 initially contain the PLT200 BAS program and will later be used  for other segments as required  The OVRNEW BAS program is discussed    in Sec  4 6   LINES PURPOSE    10 set C      as the 4025 command character  see  the 4025 User s Manual  otherwise  4025 commands  would execute when the program is listed  set 85    BELL   s  t constants to zero   110 check system date and time set   1   1 if date  not set or time not after 4 00 A M    300 to 330 check INITIA LIZ file on data disk to determine  if this is new start or restart  if restart  ask operator to verify shot number   400 to 450 convert date to decimal format e g  YYMMDD   store in variable D2    500 to 540 print hardware configuration file into  workspace on 4025 terminal   900 to 950 dimension arrays and set default constants   960 to 980 print rerun message and erase lines 10 to 980    990 to 995 prompt operator for information and set          1000    1010 to 1030  1045 to 1093  1150 to 1181  1210  1250  1260  1300 to 1310    1350  1370  1400 to 1410  1450  1470  1480  1500  1600  1650  1700 to 1765  1800 to 1830  1900 to 1980    87    CAMAC CSR address  by subroutine 2905     reentry    point common to all overlays    enter command from operator    branch address table for three letter commands    branch address table for one letter commands    execute    execute    STATUS command    A  advance  command    start exec
122. t        108    TABLE A 2    Subroutines Used in Storage Routines    These subroutines reside in OVRNEW BAS and are available to all    overlays     Address    2000    2500    2912    5000    7900    9200    9300    9400  9500    Function    separate a 16 bit data word into upper and lower bytes   normally used with PEEK    load the 16 bit CSR word from the crate controller into  the array B 1  to B 16    calculate the total CAMAC address from the crate  station   and subaddress numbers   reset 2264 digitizer logic by executing 17000  reads   execute CAMAC F commands   set 4025 in buffered mode and prepare the workspace to be  read by the computer starting at line 51   reset 4025 after computer has read from workspace   load F3  with the first 20 characters in the workspace    set Tl equal to the system time  seconds after midnight           109    CREATE      5    The CREATE BAS program is not part of the storage routine overlays  and must be run on its own  This program creates the necessary files  on a blank initialized data disk  These files are discussed in Sec   4 4  The CREATE BAS program prints instructions to the operator    during executions and is discussed in Sec  5 4     LINES PURPOSE  5 check system date  abort if not set  6 enter disk sequence number  end program    if less than or equal to zero   9 to 40 create a 4 block CATALO G file  fill with      characters            virtual string arrays    This step will create a vacant space of 3  blocks filled with a 
123. terface    3 4 Optical Isolation   3 5        Communications Interface    3 6 Terminals       3 7 11 04   CAMAC Interface     3 8 The DCC 11 Interface   3 9            Modules       SOFTWARE               4 1 Introduction       4 2 System Information      iii    ii    vi    10  10  13  13  13  15  17  22  22  25  28  28  36  36  36       4 3    4 4  4 5  4 6  4 7  4 8  4 9    System Programs        Data Disks            The BASIC Language    OVRNEW BAS            Hardware Configuration        200     5           570200     5 and Support    4 10 The Data File        4 11 Temporary Files       4 12 RED200 BAS      V  OPERATING INSTRUCTIONS    5 1  5 2  5 3  5 4  5 5  5 6  5 7  5 8    VI  CONCLUSIONS AND FUTURE IMPROVEMENTS      Introduction            Turn on and Bootstrap Procedure    RT 11 Commands          Creating a Data Disk     Running the Storage Routines    CAMAC  F  Commands     System Commands  204    Recovery From a Crash    LIST OF REFERENCES    APPENDIX A   APPENDIX B   APPENDIX C   APPENDIX D     iv    USER FUNCTION ADDITIONS TO BASIC  STORAGE ROUTINE COMMANDS    AN EXAMPLE DATA ANALYSIS PROGRAM    PROGRAM LISTINGS AND DISCUSSIONS OF STORAGE        40       41        43        45       47      49             57        62        63  7 4  65       65       65     66          67  68    69    m 70  79   81   5  84    ROUTINES 85      115      122    126       Table    3 1  4 1    A 1  A 2  C 1    LIST OF TABLES    Plasma Parameters for the Texas Tech                  
124. the PDP 11 04 computer  system  the CAMAC digitizing system  and the Tektronix 4025 graphics  terminal  In this chapter  each piece of equipment is discussed with  respect to its purpose within the overall system  References are made  to the existing documentation for detailed electrical descriptions and    options for some of the equipment     Sec  3 2 The Host Computer  The main part of the data acquisition system is a Digital Equipment           11 04 minicomputer which is used to control the CAMAC equipment   transfer data to and from disk files  and execute software programs to  analyze and display data  The computer was purchased as DEC system   SR2ORRA LA  The components of this system are listed in Table 3 1   The documentation for the 11 04 system includes both operator s in   structions for using the system and engineering drawings for trouble  shooting and repair  Those intending to operate the system should become  familiar with the  Introduction to RT 11   the  RT 11 User s Guide   and  the appropriate language reference manual  FORTRAN  BASIC  or ASSEMBLY  LANGUAGE     The front panel of the computer contains a run halt switch to halt    the CPU and an LED  run  indicator  By use of this switch  program    13       14    TABLE 3 1  Components of the        11 04 Computer System    The 11 04 central processor unit  CPU   32 kb of active MOS dynamic RAM   512 kb dual floppy disk drive  RX01   Bootstrap ROM module  9301 YF    Parity generator checker module  DL11 W
125. the time determined above are         and printed after  processing  These values  and others  such as the time of the crossing   are printed on the terminal and also      a disk file  OUTPUT ANA     Record 103 is graphed  and for each pass  a vertical line is  drawn on the graph  at the time value obtained by the search procedure  above  This allows the operator to verify that the search procedure    was successful     LINES PURPOSE  10 to 2980 Mixture of general purpose code and code  specific to this analysis program   30   enable lower case input  110 to 130 DATA statements specify values for several  different  passes  of each file  In this    case the numbers         for line 110     126                      970 to 990    1000          127    15  number  100    voltage threshold  mV   the program will search for a  crossing of this level   2nd number  680    begin search for  crossing at 680 us     3rd number  1000    stop search at 1000 us     the value 9999 indicates the end of the analysis  of the file  and so the next file is opened  etc   An example of printing the same information   on to the screen for the operator  and into a  file                     for a permanent record    The function FNF  spaces the numbers and inserts  commas between them so that other programs can  easily read the numbers from OUTPUT ANA    Note that line 940 prints the number of DATA  statements at the beginning of the file  OUTPUT ANA  so that programs desiring to   read               
126. their own  manual  control  but are designed to be computer controlled either from within    the CAMAC system or by an external  host  computer  A typical system          would include     CAMAC crate  a host computer     crate controller com   puter interface  and various CAMAC modules to perform the necessary    diagnostic functions     Sec  2 2 The CAMAC Crate   The CAMAC crate  as shown in Fig  2 1  contains  powers  cools  and  interconnects up to 25 separate modules  Each module position  or  station  is supplied with   6 VDC and   24 VDC regulated  fused power   These four supplies are monitored by a meter at the front of the crate   The modules are supported by tracks along the top and bottom of the  module compartment  Forced air cooling is supplied by fans housed in  a separate tray below the module compartment  Additional power supply  lines are connected to each station for   12 VDC    200 VDC  and 117         supplies which are offered as options by many manufacturers but are not         required by the CAMAC Standard     sec  2 3        CAMAC Dataway    All module stations are interconnected at the rear of the module  compartment by a bus called the Dataway  The CAMAC Dataway is a multi   layered printed circuit board which supplies power to each station and  transfers command  data  status  and address information between stations   Connections to the Dataway are made via an 86 contact PC edge card  connector at each of the 25 stations  Stations 1 to 24 are cal
127. tored    ENTER SHOT      ANY NUMBER  CR   prints out the DCC 11 status word  see the DCC 11 manual   example  STA  CR     LAM Q X F4     Fi CAMAC status information   printed both as shown and    as a binary word       74    STORE  overlays and runs the storage routine    example     STO  CR    WAIT  STORE         FORMAT FILE    W  or WS  or    ANY NAME  CR      MAKE CHANGES NOW    SAVE NEW FORMAT    YES  CR     FILE NAME     ANY NAME  CR       COMMENT     ANY COMMENT  CR     if STO200 BAS is not already    present    W will use the Format file  presently in the workspace   WS will save  under a new    name if desired  and then use  the file presently in the  workspace  ANY NAME will   load a Format file into the  workspace from the system  disk    only if a new file is being    loaded from disk    using the same file name will    replace the old file    up to 57 characters    After this point  no more input is required from the opera     tor but the program will print several status messages as    it executes           74    overlays and runs the storage routine    STO  CR    WAIT  STORE      example      FORMAT FILE    W  or WS  or    ANY NAME  CR      MAKE CHANGES NOW    SAVE NEW FORMAT    YES  CR     FILE NAME     ANY NAME  CR       COMMENT     ANY COMMENT  CR     if STO200 BAS is not already    present    W will use the Format file  presently in the workspace   WS will save  under a new  name if desired  and then use  the file presently in the  workspace  ANY NAME will  
128. ution of SUBADDRESS command    execute    execute    DATAPOINTS command    the READ command  single data point    from 2264 digitizer     execute  execute  execute  execute  execute  execute  execute  execute  execute  execute  execute    execute    SHOT command   NAME command   the AUT  auto trigger  command  OVERLAY command  set OVERLAY flag   MULTIPLE command  set MULTIPLE flag   WIDTH command   CAMAC F code   ERASE command   SCALE command   PANEL command   V  2232 voltage  command    PARAMETER command  print parameter    file into workspace  put 4025 in form fillout    mode  see 4025 User s Manual  and allow operator    to modify and save parameter file    2000    2500  2900  2912    3000    5000    6000  7000    9000  9200    9300    3400    9500    9600    20005 to 20045    20050 to 20990       to 2005    to 2503  to 2907    to 3060    to 6140    to 8000    to 9050    to 9410    to 9520    to 9650    88    subroutine to separate upper and lower bytes  of data word returned by PEEK function   load 16 bit CSR into array B 1  to B 16   execute CRATE command   subroutine to calculate total CAMAC address  from crate number  station number  and sub   address  see 0     11 User s Manual    define functions used by storage routines  subroutine to reset  cycle through  the 2264  buffer memory   execute NEW command   subroutine for executing CAMAC F codes   using PEEK and           etc   entry point is 7900   execute INITIALIZE command   subroutine to prepare workspace to be sent
129. which allows the user to limit the range  in  memory  of the memory writing routines  This would assure that the area  of memory containing the BASIC language could not be modified  Another  useful routine would be one which checked to see if the hardware setup  corresponded to the information in the configuration file  This might  be done by executing a CAMAC command at each station where a module is  supposed to be and then checking the results  Any discrepancies could  be typed on the terminal    The storage routines were written in BASIC to simplify modifications  and debugging during their development  Now that the routines are some   what finalized  they could be translated into FORTRAN  The FORTRAN          guage would provide a faster  more structured program with increased  mathematical capabilities  but would increase the effort required to  make additions to the programs    The present data file format was designed to simplify the reading  out of data  In accomplishing this  the data have been stored in less  than optimal form and some redundancy has occurred  For example  the  parameter file is added to each data file but may contain the same in     formation for several shots in a row  The parameter information makes       83    up approximately 4 2 blocks of each data file  Substantial saving  in  disk space could result if some indexing scheme were incorporated which  allowed the parameter file to be stored only when its information is  changed  Another possibi
130. ystem disk  The  argument of this command DS1 79       needs to be updated each year  e g  DX1 80          The CATDIR BAS program takes the information from the temporary  file and transfers it to the CATALO G file on the data disk     LINES   PURPOSE    10 to 20 set characters C1  and B   calculate number    of entries that will fit in CATALO G    100 to 110 open the temporary directory file on system  disk  120 to 190 check to see if data disk has already been    cataloged  if so inform operator  200 to 210 move CATALO G file out of reserved position  220 to 240 check length of temporary file  abort if too  long for CATALO G  300 to 340 transfer information from the temporary file    to the CATALO G file and also to the terminal       350 to 370    400  1000    113    print error message if number of files in  CATALO G is different from that in the temporary  file   end of program   function to columnize printout  right    justified             114    02 2     80 COPY OF DX1SCATDIR BASr OPTION ILPRINT V1 BER    10                               0                    7    XEXUARNING      20 BsONMSINT BXKS12 21 42NREM   B  BLOCKS      CATALO G           ALSO    OPEN    LINE 220  100 OPEN  DXO iDIRECT TMP  FOR INPUT AS FILE 91   110            1  FOR INPUT AS FILE    2   120 INPUT  2 LS   130 IF 5  09 1 91 4      0          THEN 200   140 PRINT B  THIS DISK MAY HAVE BEEN CATALOGUED BEFORE      150 PRINT    THE FIRST LINE        015   IS       160 PRINT 1    170 PRINT    DO YOU S
    
Download Pdf Manuals
 
 
    
Related Search
 31295000046457 
    
Related Contents
SO Till Manual POS Store ops Store Operations  Addonics Technologies PUDDESP User's Manual  Dissipatore di condensa Condensation water dissipater Dissipateur  Palit NE5X56T01102F NVIDIA GeForce GTX 560 Ti 1GB graphics card  Owner`s Manual  XL Meter™ Pro  Manuel d`évaluation environnementale  Audiovox VBP3900 User's Manual    Copyright © All rights reserved. 
   Failed to retrieve file