h52961
s 00010/00008/00043
d D 1.4 83/03/29 13:09:34 mjb 4 3
c fixed existing data transfer to show and allow 16 values to be passed
e
s 00000/00000/00051
d D 1.3 83/02/23 11:57:55 mjb 3 2
c g
e
s 00001/00007/00050
d D 1.2 83/01/26 16:10:28 mjb 2 1
c fixed for new data menu with no labels (downsized) etc.
e
s 00057/00000/00000
d D 1.1 83/01/20 11:09:14 tes 1 0
c date and time created 83/01/20 11:09:14 by tes
e
u
tes
mjb
U
t
T
I 1
D 4
subroutine cgdatt (page)
E 4
I 4
subroutine cgdatt (page, inum)
E 4
########################################################################
#                                                                      #
#          THIS MATERIAL IS CONFIDENTIAL AND IS FURNISHED UNDER        #
#          A WRITTEN LICENSE AGREEMENT.  IT MAY NOT BE USED,           #
#          COPIED OR DISCLOSED TO OTHERS EXCEPT IN ACCORDANCE          #
#          WITH THE TERMS OF THAT AGREEMENT.                           #
#                                                                      #
#          COPYRIGHT (C) 1982 GRAPHIC SOFTWARE SYSTEMS INC.            #
#          ALL RIGHTS RESERVED.                                        #
#                                                                      #
#     Function: Put current graph data for graph data menu             #
#               into the data buffer for data display                  #
#                                                                      #
#     Input Parameters:                                                #
D 4
#            page - (integer) page of menu to get data from            #
E 4
I 4
#            page - page of menu to get data from                      #
#            inum - number of data points to display  (15 or 16)       #
E 4
#                                                                      #
#     Output Parameters:                                               #
#            none                                                      #
#                                                                      #
#     Routines Called:                                                 #
#            qputa - put alpha data to memory                          #
#            qputd - put decimal data to memory                        #
#            qputi - put integer data to memory                        #
#                                                                      #
########################################################################
D 4
integer page
E 4
I 4
integer page, inum
E 4

integer i, item, j, start, end

include(`gphcom')

D 4
   start = (page-1)*15 + 1
   end = start + 14
E 4
I 4
   start = (page-1)*inum + 1
   end = start + inum - 1
E 4

   call putnum (1, start, end)

D 2
   i = (start-1)*4 + 1
   do item = 1, 15 {             
      call qputa (item, bglabl(i)) # current data labels (15 at time)
      i = i + 4
      }

E 2
   i = (start-1)*5 + 1
   j = 1
D 2
   do item = 16, 90 {
E 2
I 2
D 4
   do item = 1, 75 {
E 2
      if (j > 15) {                # skip to next curve data 
E 4
I 4
   end = inum * 5
   do item = 1, end {
      if (j > inum) {              # skip to next curve data 
E 4
	 j = 1
D 4
	 i = i + 300
E 4
I 4
	 i = i + (375 - (inum * 5))
E 4
	 }
      call qputd (item, bgdta1(i)) # current curve data
      i = i + 5
      j = j + 1
      }

return
end
E 1
