HP VXI manual Idn?, Lmc?, Lrn?

Page 30

Example *ESR?

Sends Standard Event Status Register

 

query.

*GMC? <name_string>

Get Macro Query. Returns arbitrary block response data which contains the command or command sequence defined by name_string. The command sequence will be prefixed with characters which indicate the number of characters that follow the prefix.

Example *GMC? ‘LIST’

Ask for definition of macro from *DMC

 

example.

If the prefix returned consisted of "#214", the 2 says to expect two character-counting digits. The 14 says that 14 characters of data follow. Had the returned macro been shorter, such as #15*EMC?, we would read this as 1 counting digit indicating 5 data characters.

*IDN?

Identity. Returns the device identity. The response consists of the following four fields (fields are separated by commas):

Manufacturer

Model Number

Serial Number (returns 0 if not available)

Firmware Revision (returns 0 if not available)

The *IDN? command returns something similar to the following for the

HP E1411B:

HEWLETT-PACKARD,E1411B,0,B,05.00

Example *IDN?

Queries identity.

*LMC?

Learn Macros Query. Returns a quoted string name for each currently defined macro. If more than one macro is defined, the quoted strings are separated by commas (,). If no macro is defined, then a quoted null string ("") is returned.

*LRN?

Learn query command. *LRN? causes the instrument to respond with a string of SCPI commands which define the instrument’s current state. Your application program can enter the *LRN? response data into a string variable, later to be sent back to the instrument to restore that configuration.

Example response from an HP E1326B voltmeter in the power-on state:

30 Command Reference

Chapter 3

Image 30
Contents Contents Comments Example QUEStionableEVENt? Printing History This Page Intentionally Left Blank Introduction Introduction Chapter About this Chapter General Status Register ModelCondition Register Transition Filter Event Register An Example SequencePage Required Status Groups Status Byte Register Standard Event Group Status Byte Bit DefinitionsStandard Operation Status Group Questionable Data Group Handling SRQs Using MAV to Determine When Data is Available Status System Programming ExamplesExample Program SRQ Icloseid Example Program Deverrmask Qryerrmask Chapter Programming the Status System Programming the Status System Chapter Command Reference OPERationENABle STATusOPERation CONDition? OPERationEVENt? OPERationENABle?PRESet QUEStionable CONDition?QUEStionableENABle QUEStionableENABle?QUEStionableEVENt? STATQUESEVEN? Common Command Reference CLSESE? EMC?ESE mask ESR?IDN? LMC?LRN? PMC OPCOPC? RSTSTB? SRE maskSRE? TST?WAI Command Reference Chapter