SCPI.IEEE4882.LRN

Object type

Property (Read-only)

Syntax

Cont = SCPI.IEEE4882.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.

The returned data is the same as the contents of state file which can be saved by the SCPI.MMEMory.STORe.STATe. Therefore, the returned data contents is changed according to the setting of SCPI.MMEMory.STORe.STYPe.

Variable

Parameter

Value

Description

Setting Data

Data type

Binary Type (Byte)

Range

-

Preset Value

-

Unit

-

Resolution

-

Examples

'To write LRN data
Dim TempWrite() As Byte
Open "C:\LRN.dat" For Binary As #1
TempWrite() = SCPI.IEEE4882.LRN
Put #1, , TempWrite()
Close #1

 

To save/get the E5072A state for COM, use SCPI.MMEMory.STORe.STATe and SCPI.MMEMory.LOAD.STATe.

Related objects

SCPI.MMEMory.LOAD.STATe

SCPI.MMEMory.STORe.STATe

SCPI.MMEMory.STORe.STYPe

Equivalent key

No equivalent key is available on the front panel.

Equivalent SCPI command

Syntax

*LRN?

Query response

<binary><newline><^END>

Example of use (VISA-COM)

 

Dim LRNData() As Byte, SETData() As Byte, NoofByte As Double
 '*** Get the LRN data as Binaray data
 Age507x.WriteString "*LRN?", True
 LRNData = Age507x.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 E5061B
Age507x.IO.Write SETData, NoofByte