![Rohde & Schwarz CMW500 Series User Manual Download Page 182](http://html1.mh-extra.com/html/rohde-and-schwarz/cmw500-series/cmw500-series_user-manual_1477718182.webp)
Remote Control
R&S
®
CMW500
182
User Manual 1173.9463.02 ─ 02
*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 macro file on the R&S CMW's hard disk.
// 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?
// Re-define the macro using block data format. Check and store the macro
*DMC 'RF_Settings', #0SOURce:GPRF:GENerator:RFSettings:FREQuency $1; LEVel $2
*GMC? 'RF_Settings'
MMEMory:STORe:MACRo 'RF_Settings', 'D:/macros/RF_Settings.txt'
6.8 Response Buffers
A response buffer is a region of memory in the R&S CMW500's RAM used to store device
responses, in particular measurement data, which the R&S CMW500 generates while
executing queries. If no buffer is enabled, a query in a remote script suspends program
execution until the controller has retrieved the response. The main purpose of response
buffers is to avoid these delays. Results are stored while program execution continues
and can be read at the end of the program.
Response Buffers