next up previous contents index
Next: HBOOK Tabular Overview Up: Global sections and Previous: Access to remote

Using PAW as a presenter on OS9 systems

 

                    The technique described in previous sections may also be used to access HBOOK histograms being filled by a monitoring task on OS9 systems from a standard PAW session running on a machine with the TCP/IP software.

      INDIRECT PAWC
      PROGRAM PRODUCE
*
*        Monitoring task MT1 in processor OP2.
*
      PARAMETER NWPAW=10000
      COMMON/PAWC/IPAWC(NWPAW)
*
      CALL HLIMIT(NWPAW)
*
*       Book histos.
*
      CALL HBOOK1(10,'TEST1$',50,-3.,3.,0.)
      CALL HBOOK1(20,'TEST2$',50,-3.,3.,0.)
*
*       Fill histos.
*
      NUMEVT=10000
      DO 20 I=1,NUMEVT
         DO 10 J=1,100
            CALL RANNOR(A,B)
            CALL HFILL(10,A,0.,1.)
            CALL HFILL(20,B,0.,1.)
 10      CONTINUE
 20   CONTINUE
*
 99   STOP
      END

Visualising histograms on OS9 modules from PAW

Example of how to access OS9 modules from PAW

PAW > rlogin O-OPAL01                            | connect to an OS9 machine
PAW > rshell module OP2/MT1                      | PAW server connects to OP2/MT1
                                                 | (Processor OP2, Monitoring Task MT1)
PAW > histo/plot 10                              | plot histogram 10
PAW > hrin 0                                     | read all histograms into //PAWC
PAW > Histo/File 1 local.dat 1024 N              | create a new file local.dat
                                                 | on the client machine
PAW > hrout 0                                    | save all histograms from //PAWC
                                                 | to the local file
PAW > rshell module OP3/MT2                      | PAW server connects to another
                                                 | OS9 monitoring task
PAW > Output 56 os9.listing                      | Change output file on client
PAW > rshell ldir                                | list all histograms in MT2
                                                 | on file os9.listing
PAW > Output -56                                 | Change output file to default (unit 6)
                                                 | file os9.listing is closed


Last update: Tue May 16 09:09:27 METDST 1995