*LRN

Syntax

*LRN?

Description

This command gets the device setup query. This command is defined as "Learn Device Setup Query" in IEEE 488.2. The command returns instrument settings by binary block data (same as Save/Recall state file contents) with "SYSTem:SET " prefix.

  Example of use (VISA-COM)

 

Dim LRNData() As Byte, SETData() As Byte, NoofByte As Double

 '*** Get the LRN data as Binaray data

 Age4982.WriteString "*LRN?", True

 LRNData = Age4982.ReadIEEEBlock(BinaryType_UI1, False, True)

    

 '*** Save the LRN data in the file

Open "C:\LRN.dat" For Binary As #1

Put #1, , LRNData()

Close

    

MsgBox "Get Data"

   

'*** Recall the LRN data from the file

Open "C:\LRN.dat" For Binary As #1

NoofByte = LOF(1)

          ReDim SETData(NoofByte)

          Get #1, , SETData()

Close

    

 '*** Send the LRN data to E4982A

Age4982.IO.Write SETData, NoofByte

Query Response

<binary><newline><^END>

Equivalent Key

No equivalent key is available on the front panel.