Language Reference

MEM

MEM

Return amount of available internal memory.

Example Determine how many trace arrays can ￿t into available internal memory.

20

CLEAR

723

Initialize analyzer .

30

OUTPUT

723;"IP;"

De￿ne user-de￿ned variable equal to 0.

40

OUTPUT

723;"VARDEF

TEMP,0;"

50OUTPUT 723;"DIV TEMP,MEM,846;" Divide the number of available user-memory bytes by 846 and store the results in TEMP. (A 400-point trace occupies 846 bytes.)

60

OUTPUT

723;"INT TEMP,TEMP;"

Store the integer value of TEMP in TEMP.

70

OUTPUT

723;"MEM?;"

Query the amount of available internal

 

 

 

memory to the computer .

80

ENTER 723;N

Assign value to

N.

90

OUTPUT

723;"TEMP?;"

Send the value

of TEMP to computer .

100 ENTER 723;M

Assign value to M.

Description The MEM command computes the amount of unused internal memory. The amount of total internal memory available is dependent on the analyzer

con￿guration and the local-oscillator ￿rmware (ROM) version. MEM must be used as either a query or as a source in another analyzer command. Form a query by ending the MEM statement with a question mark (?). When used as a query, MEM sends the amount of unused memory to the computer. Use MEM as a source by incorporating the MEM statement into the source of any spectrum-analyzer command having prede￿ned function in its syntax diagram. When MEM is used as a source, the value of unused memory is used for operation by the command that contains MEM.

7-245