The DIAGnostic:MEMory:ADDResses? command returns a list of
bit 2 is the value of the address counter for that segment. Thus, to obtain the memory address only, a divide by 4 (right shift of 2) of the
As an example, assume: ARM:COUN 5; SENS:SWE:POIN
Because of the ARM:COUN specified memory is divided into eight segments (Table
The ending address for each of the five segments can be calculated from the equation:
ending segment address = segment_number * 65536 - 1
This yields the following ending addresses for the five segments:
segment 1 = 65535 segment 2 = 131071 segment 3 = 196607 segment 4 = 262143 segment 5 = 327679
Assume you want to read the data from segment number 4. Then, the number of readings = 35 + 1 = 36 (padded to make divisable by 4). The first reading in the segment is at address:
first address = ending segment address - (number of readings - 1)
262143 - (36 - 1) = 262108
If the readings in the memory segment did not wrap around, the address 262108 and count 35 would be specified in the DIAGnostic:FETCh? command.
If, for example, readings in the segment did wrap around, then the starting address specified in the DIAGnostic:FETCh? command will not be the first address in the segment where a reading is stored. To determine the starting address, use the DIAGnostic:MEMory:ADDRess? command and get the 32 bits representing the 4th segment (this would be the 13th through 16th bytes in the block of data returned).
144 Understanding the HP E1429 Digitizer | Chapter 3 |