/// <summary>
 /// Obtains the results of the carrier frequency measurement in the S/A mode.
 /// </summary>
 /// <param name="s"></param>
 /// <returns><cfreq>::=<NRf> is the measured value of the carrier frequency in Hz.</returns>
 public static string ReadSpectrumCHP(SpectrumMeterModel s)
 {
     string res = String.Empty;
     try { res = s.WriteCommandRes(READ_SPECTRUM_CHP); }
     catch (Exception e) { Log.Error(_logTarget + "Get READ_SPECTRUM_CHP: " + e.ToString(), e); }
     return res;
 }
 /// <summary>
 /// Selects and runs the measurement item in the S/A (spectrum analysis) mode. The query version of this command returns the current measurement item.
 /// </summary>
 /// <param name="s"></param>
 /// <returns></returns>
 public static string GetMeas(SpectrumMeterModel s)
 {
     string res = String.Empty;
     try { res = s.WriteCommandRes(MEAS + "?"); }
     catch (Exception e) { Log.Error(_logTarget + "Get MEAS: " + e.ToString(), e); }
     return res;
 }
 /// <summary>
 /// Determines whether to perform the resolution bandwidth (RBW) process
 /// </summary>
 /// <param name="s"></param>
 /// <returns>OFF or 0 specifies that the RBW process is not performed so that a spectrum immediately after the FFT process is displayed on screen.
 /// ON or 1 specifies that the RBW process is performed.</returns>
 public static string GetRBWState(SpectrumMeterModel s)
 {
     string res = String.Empty;
     try { res = s.WriteCommandRes(RBW_STATE); }
     catch (Exception e) { Log.Error(_logTarget + "Get RBW_STATE: " + e.ToString(), e); }
     return res;
 }
 /// <summary>
 /// Determines whether to use the continuous mode to acquire the input signal
 /// OFF or 0 specifies that the single mode, rather than the continuous mode, is used for data acquisition. To initiate the acquisition, use the :INITiate[:IMMediate]
 /// To stop the acquisition because the trigger is not generated in single mode, send the following command: :INITiate:CONTinuous OFF
 /// ON or 1 initiates data acquisition in the continuous mode.
 /// To stop the acquisition in the continuous mode, send the following command::INITiate:CONTinuous OFF
 /// NOTE. When the analyzer receives a :FETCh command while operating in the continuous mode, it returns an execution error. If you want to run a :FETCh, use the :INITiate[:IMMediate] command.
 /// </summary>
 /// <param name="s"></param>
 /// <returns>OFF or 0 = single mode, ON or 1 = continuous mode</returns>
 public static string GetInitCont(SpectrumMeterModel s)
 {
     string res = String.Empty;
     try { res = s.WriteCommandRes(INIT_CONT + "?"); }
     catch (Exception e) { Log.Error(_logTarget + "Get INIT_CONT: " + e.ToString(), e); }
     return res;
 }
 /// <summary>
 /// Selects or queries the measurement mode
 /// NOTE. If you want to change the measurement mode, stop the data acquisition with the :INITiate:CONTinuous OFF command.
 /// </summary>
 /// <param name="s"></param>
 /// <returns></returns>
 public static string GetInstrumentSelect(SpectrumMeterModel s)
 {
     string res = String.Empty;
     try { res = s.WriteCommandRes(INSTRUMENT_SELECT + "?"); }
     catch (Exception e) { Log.Error(_logTarget + "Get INSTRUMENT_SELECT: " + e.ToString(), e); }
     return res;
 }
 /// <summary>
 /// Selects the channel table. The query command returns the selected channel table.
 /// </summary>
 /// <param name="s"></param>
 /// <returns>specifies a channel table. 
 /// The table name is represented with the communication standard name followed by “-FL” (forward link), “-RL” (reverse link), “-UL” (uplink), or “-DL” (downlink).</returns>
 public static string GetFreqChanCatSelected(SpectrumMeterModel s)
 {
     string res = String.Empty;
     try { res = s.WriteCommandRes(FREQ_CHAN_TAB_SEL + "?"); }
     catch (Exception e) { Log.Error(_logTarget + "Get FREQ_CHAN_TAB_SEL: " + e.ToString(), e); }
     return res;
 }
 /// <summary>
 /// Sets or queries the start frequency.
 /// </summary>
 /// <param name="s"></param>
 /// <returns>Specifies the stop frequency. For the setting range, refer to Table 2--52 on page 2--428</returns>
 public static string GetFreqStop(SpectrumMeterModel s)
 {
     string res = String.Empty;
     try { res = s.WriteCommandRes(FREQ_STOP + "?"); }
     catch (Exception e) { Log.Error(_logTarget + "Get FREQ_STOP: " + e.ToString(), e); }
     return res;
 }
 //{ BH3A | BH3B | BH4A | BH4B | BLACkman | HAMMing | HANNing | PARZen | ROSenfield | WELCh | SLOBe | SCUBed | ST4T | FLATtop | RECT }
 /// <summary>
 /// Selects or queries the FFT window function. This command is valid when [:SENSe]:SPECtrum:BANDwidth|:BWIDth:STATe is OFF.
 /// </summary>
 /// <param name="s"></param>
 /// <returns>{ BH3A | BH3B | BH4A | BH4B | BLACkman | HAMMing | HANNing | PARZen | ROSenfield | WELCh | SLOBe | SCUBed | ST4T | FLATtop | RECT }</returns>
 public static string GetFFTWindowType(SpectrumMeterModel s)
 {
     string res = String.Empty;
     try { res = s.WriteCommandRes(FFT_WINDOW_TYPE + "?"); }
     catch (Exception e) { Log.Error(_logTarget + "Get FFT_WINDOW_TYPE: " + e.ToString(), e); }
     return res;
 }
 /// <summary>
 /// Sets or queries the step size (amount per click by which the up and down keys change a setting value) of the center frequency when [:SENSe]:FREQuency:CENTer:STEP:AUTO is OFF.
 /// Note: doesn't affect frontpanel
 /// </summary>
 /// <param name="s"></param>
 /// <returns>the step size of the center frequency</returns>
 public static string GetFreqCenterStepAutoIncr(SpectrumMeterModel s)
 {
     string res = String.Empty;
     try { res = s.WriteCommandRes(STEP_AUTO_INCR + "?"); }
     catch (Exception e) { Log.Error(_logTarget + "Get STEP_AUTO_INCR: " + e.ToString(), e); }
     return res;
 }
 /// <summary>
 /// Selects or queries the filter for the channel power measurement
 /// Sets or queries the roll-off rate of the filter for the channel power measurement when you have selected either NYQuist (Nyquist filter) or RNYQuist (Root Nyquist filter) in the [:SENSe]:CHPower:FILTer:TYPE command
 /// </summary>
 /// <param name="s"></param>
 /// <returns>Range: 0.0001 to 1</returns>
 public static string GetCHPRollOff(SpectrumMeterModel s)
 {
     string res = String.Empty;
     try { res = s.WriteCommandRes(CHP_ROLLOFF + "?"); }
     catch (Exception e) { Log.Error(_logTarget + "Get CHP_ROLLOFF: " + e.ToString(), e); }
     return res;
 }
 /// <summary>
 /// Determines whether to enable the extended resolution that eliminates the limit on the number of FFT points (it is normally limited internally).
 /// ON or 1 allows you to set the number of FFT points up to 65536. Use the [:SENSe]:SPECtrum:FFT:LENGth command to set the number.
 /// OFF or 0 disables the extended resolution. The number of FFT points is limited internally.
 /// </summary>
 /// <param name="s"></param>
 /// <returns></returns>
 public static string GetExtended(SpectrumMeterModel s)
 {
     string res = String.Empty;
     try { res = s.WriteCommandRes(FFT_EXTENDED); }
     catch (Exception e) { Log.Error(_logTarget + "Get FFT_EXTENDED: " + e.ToString(), e); }
     return res;
 }
 /// <summary>
 /// Selects or queries the filter for the channel power measurement
 /// </summary>
 /// <param name="s"></param>
 /// <returns>RECTangle selects the rectangular filter. 
 /// GAUSsian selects the Gaussian filter.
 /// NYQuist selects the Nyquist filter (default).
 /// RNYQuist selects the Root Nyquist filter.</returns>
 public static string GetCHPFilterType(SpectrumMeterModel s)
 {
     string res = String.Empty;
     try { res = s.WriteCommandRes(CHP_FILTER_TYPE + "?"); }
     catch (Exception e) { Log.Error(_logTarget + "Get CHP_FILTER_TYPE: " + e.ToString(), e); }
     return res;
 }
 /// <summary>
 /// Sets or queries the channel bandwidth for the channel power measurement (seeFigure 2--18).
 /// </summary>
 /// <param name="s"></param>
 /// <returns>specifies the channel bandwidth for the channel power measurement. Range: (Bin bandwidth)×8 to full span [Hz]</returns>
 public static string GetChannelBand(SpectrumMeterModel s)
 {
     string res = String.Empty;
     try { res = s.WriteCommandRes(CHP_BANDWIDTH + "?"); }
     catch (Exception e) { Log.Error(_logTarget + "Get CHP_BANDWIDTH: " + e.ToString(), e); }
     return res;
 }
 /// <summary>
 /// Sets or queries the vertical, or amplitude, scale (per division) in the spectrum view.
 /// </summary>
 /// <param name="s"></param>
 /// <returns>specifies the horizontal scale in the spectrum view. Range: 0 to 10 dB/div.</returns>
 public static string GetAmpVertScale(SpectrumMeterModel s)
 {
     string res = String.Empty;
     try { res = s.WriteCommandRes(AMP_VERT_SCALE + "?"); }
     catch (Exception e) { Log.Error(_logTarget + "Get AMP_VERT_SCALE: " + e.ToString(), e); }
     return res;
 }
 /// <summary>
 /// Selects or queries the mixer level.
 /// NOTE. To set the mixer level, you must have selected On in the :INPut:ATTenuation:AUTO command.
 /// </summary>
 /// <param name="s"></param>
 /// <returns>specifies the mixer level. The valid settings depend on the measurement frequency band as shown in Table 2--42.</returns>
 public static string GetAmpMixerLvl(SpectrumMeterModel s)
 {
     string res = String.Empty;
     try { res = s.WriteCommandRes(AMP_MIX_LVL + "?"); }
     catch (Exception e) { Log.Error(_logTarget + "Get AMP_MIX_LVL: " + e.ToString(), e); }
     return res;
 }
 /// <summary>
 /// When you have selected OFF or 0 in the :INPut:ATTenuation:AUTO command, use this command to set the input attenuation. The query version of this command returns the input attenuation setting.
 /// </summary>
 /// <param name="s"></param>
 /// <returns>specifies the input attenuation. The valid settings depend on the measurement frequency band as shown in Table 2--41.</returns>
 public static string GetAmplRefAtt(SpectrumMeterModel s)
 {
     string res = String.Empty;
     try { res = s.WriteCommandRes(AMP_RF_ATT_DB + "?"); }
     catch (Exception e) { Log.Error(_logTarget + "Get AMP_RF_ATT_DB: " + e.ToString(), e); }
     return res;
 }