Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide 305
Creating and Downloading Waveform Files
Programming Examples
' VISA COM I/O Library to download a waveform file to the signal
generator.
'
' The program downloads a file (the previously created ‘IQ_DataVB’
file) to the signal
' generator. Refer to the Programming Guide for information on
binary
' data requirements for file downloads. The waveform data
'IQ_DataVB' is
' downloaded to the signal generator's non-volatile memory(NVWFM)
' " /USER/WAVEFORM/IQ_DataVB". For volatile memory(WFM1) download to
the
' " /USER/BBG1/WAVEFORM/IQ_DataVB" directory.
'
' You must reference the Keysight VISA COM Resource Manager and VISA
COM 1.0 Type
' Library in your Visual Basic project in the Project/References
menu.
' The VISA COM 1.0 Type Library, corresponds to VISACOM.tlb and the
Keysight
' VISA COM Resource Manager, corresponds to AgtRM.DLL.
' The VISA COM 488.2 Formatted I/O 1.0, corresponds to the
BasicFormattedIO.dll
' Use a statement such as "Dim Instr As VisaComLib.FormattedIO488"
to
' create the formatted I/O reference and use
' "Set Instr = New VisaComLib.FormattedIO488" to create the actual
object.
'******************************************************************
**************
' IMPORTANT: Use the TCPIP address of your signal generator in the
rm.Open
' declaraion. If you are using the GPIB interface in your project
use "GPIB::19::INSTR"
' in the rm.Open declaration.
'******************************************************************
Private Sub Download_File()
' The following four lines declare IO objects and instantiate them.
Summary of Contents for X-Series
Page 4: ...4 ...
Page 10: ...10 Contents ...