address. You will then know the starting address , and (from the

NRAM:CRE < size> command) the length of the NRAM segment.

Example: Allocating an NRAM segment and locating it. This example shows how to allocate a small 128 byte NRAM segment. In addition, it shows how to determine the starting address of that segment.

define variables

10REAL Addr,Size

128 byte NRAM segment

20 OUTPUT 70900;"DIAG:NRAM:CRE 128"

reset the system

30 OUTPUT 70900;"DIAG:BOOT"

allow time for reset to begin

40WAIT 5

wait for self-test to complete

50ON TIMEOUT 7,.1 GOTO Complete

60Complete:B= SPOLL(70900) query starting addr

70OUTPUT 70900;"DIAG:NRAM:ADDR?" enter starting addr

80ENTER 70900;Addr print it

90PRINT USING "31X,""Addr= "",8D";Addr

4-8 Using the Mainframe

Page 96
Image 96
Agilent Technologies E1301B, E1300B, 75000 SERIES B Real Addr,Size, Output 70900DIAGNRAMCRE, Output 70900DIAGBOOT, Wait