Keysight E4980A/AL Precision LCR Meter 305
Sample Program
Save/Recall
Save/Recall
This application program saves into/recalls from the E4980A/AL’s internal flash
memory the status data by using the save/recall function.
The program of Example 9-9 is described below.
Configuration Assigns variables and enables error handling by the
subroutine named ErrorHandler
Open Instrument Assigns a USB address or GPIB address to the I/O bus. Also
sets the time for timeout.
SaveRecall Saves into or recalls from the E4980A/AL’s register 1 the
status data according to the contents of a specified cell. Also
confirms whether each process finishes using the *OPC?
query command.
Setup End Close the I/O bus.
ErrorProc Displays an error number when an error occurs.
Example 9-9 Save/Recall
Sub Example_4()
'===================================
' Configuration
'===================================
Dim defrm As Long 'Session to Default Resource
Manager
Dim AgtE4980A/AL As Long 'Session to instrument
Dim Result As String * 200
Const TimeOutTime = 30000
On Error GoTo ErrorHandler
'===================================
' Open Instrument
'===================================
ErrorCheck viOpenDefaultRM(defrm)
Call selectLCR(defrm, AgtE4980A/AL)