Remote Control
R&S
®
CMW500
183User Manual 1173.9463.02 ─ 06
// Execute the macro.
// Check whether the generator frequency has actually been changed.
// *****************************************************************************
SOURce:GPRF:GENerator:RFSettings:FREQuency?
*EMC ON
SetFrequency
SOURce:GPRF:GENerator:RFSettings:FREQuency?
// *****************************************************************************
// Delete the macro.
// Delete all macros in the active connection.
// Check whether all macros have been deleted (response: "").
// *****************************************************************************
*RMC 'SetFrequency'
*PMC
*LMC?
Macros with parameters
// *****************************************************************************
// Reset the instrument.
// Define a macro to set the GPRF generator frequency and level to arbitrary
// values using macro parameters.
// Execute the macro and check the results.
// *****************************************************************************
*RST
*DMC 'RF_Settings', 'SOURce:GPRF:GENerator:RFSettings:FREQuency $1; LEVel $2'
*EMC ON
SOURce:GPRF:GENerator:RFSettings:FREQuency?; LEVel?
RF_Settings 1 GHz,-10 dBm
SOURce:GPRF:GENerator:RFSettings:FREQuency?; LEVel?
Using macro files and block data format
// *****************************************************************************
// Store the macro to a file on the hard disk of the instrument.
// Delete the macro, check whether all macros have been deleted (response: "").
// *****************************************************************************
MMEMory:STORe:MACRo 'RF_Settings', 'D:/macros/RF_Settings.txt'
*PMC
*LMC?
// *****************************************************************************
// Re-load the macro contents from the macro file, assigning the old label.
// Query the contents.
// *****************************************************************************
MMEMory:LOAD:MACRo 'RF_Settings', 'D:/macros/RF_Settings.txt'
*GMC? 'RF_Settings'
*LMC?
// *****************************************************************************
Command Macros