next up previous
Next: Panic Section Up: Examples Previous: Adding a hardcopy

Adding a hardcopy device (MIDAS name and system name)

Suppose one wants to add the MIDAS device name mdevice to the system. which should point to the system name laserprinter.

The first step is the same as in the previous example: Add an extra line in the file AGLDEVS.DAT:

      laserprinter:pscript               # new device name

The second step would be to include the MIDAS name and system name in the file DEVICE.COM:

      mdevice :== laserprinter

Finally, in the procedures SENDPLOT.PRG and PLASSIGN.PRG a few lines should be included to recognize the new device. The addition should be done in the section ``MIDAS LOGICAL NAMES''. For this particular example these line should look like:

      ELSEIF P1(1:3) .EQ. "MDE" THEN    ! here for mdevice
         P1 = M$SYMBOL("MDEVICE")

In case of problems you could use the MIDAS command DEBUG/PROCEDURE. This enables you to execute the ASSIGN/GRAPHICS and the COPY/GRAPHICS command step by step and to find out where a device name is missed or misinterpreted.

Finally, whenever your modify your system please document this. E.g. add or modify some help documentation in the assigngrap.hlq, COPY_GRAP.HLQ, and the PRINTE.ALQ files in ['MIDASHOME'.95NOV .PRIM.HELP].



Rein Warmels
Wed Apr 24 15:22:51 MET DST 1996