I want to log with a time stamp the last 30 values. I was thinking of using a data block and with incrementing pointers to enter the records. The value is a real number and the time stamp is a DT type. I add 4 to the pointer for the next real value and 8 for the next time stamp. So I have a block of 30 real numbers followed by a block of 30 date time values.
p1 = value pointer
p2 = DT pointer
for each record p1 = p1+4 p2 = p2+8
So the data block address looks like DBx.DBD[p1] for the real values. Is the address for the DT value P#DBx.DBX[p2].0 ?
will this work and is there a better way to do this?
p1 = value pointer
p2 = DT pointer
for each record p1 = p1+4 p2 = p2+8
So the data block address looks like DBx.DBD[p1] for the real values. Is the address for the DT value P#DBx.DBX[p2].0 ?
will this work and is there a better way to do this?