Property (Read Only)
Value = SCPI.IEEE4882.LRN
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.
This command is available at the revision A.11.0x and above.
This command appears on the VBA editor with Auto_complete_Feature, however, this is not supported on VBA/COM.
Parameter |
Value |
Description |
Setting Data |
Data type |
Binary Type (Byte) |
Range |
- |
Preset value |
- |
Unit |
- |
Note |
If the specified file does not exist, an error occurs when executed and the object is ignored. |
No equivalent key is available on the front panel.
*LRN?
<binary><newline><^END>
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 E5071C
Age5071x.IO.Write SETData, NoofByte