Retrieve a Macro
n
*GMC? Get Macro Contents
Query
This query gives a response containing
the definition of the macro you specified
when sending the query.
Example using the above defined
macro:
SEND→
*GMC?8‘LIMITMON’
READ←
#292:CALC:STAT
ON;:CALC:LIM:STAT ON;
:CALC:LIM:LOW:DATA
$1;STAT8ON;
:CALC:LIM:UPP:DATA
$2;STAT8ON’
n
*LMC? Learn Macro Query
This query gives a response containing
the labels of all the macros stored in the
Timer/Counter.
Example:
SEND→
*LMC?
READ←
“MYINPSETTING”,"LIMITMON
"
Now there are two macros in memory,
and they have the following labels:
“MYINPSETTING” and “LIMITMON”.
Introduction to SCPI
Macros 3-15