Remote Operation

CALCulate Subsystem Commands

CALCulate[123456]:MEAN[:DATA]?

Returns the arithmetic mean of the trace associated with the subopcode of the CALCulate node. The points of the trace are summed in linear units and the sum is divided by the number of points. When the CALCulate:MEAN:RANge is ON, the mean is calculated over the upper and lower X-axis range limits. If the CALCulate:MEAN:RANge is OFF, the mean is calculated over the entire trace. Sending this query when the CALCulate:MEAN:STATe is OFF will generate a "Settings conflict" error. The MEAN calculation is performed at the end of sweep. Sending this query when the instrument is in the middle of a sweep will return the MEAN calculated for the previous sweep.

CALCulate[123456]:MEAN:RANGe:LOWer?

This query returns the lower X-axis limit for the trace mean range calculation.

The range used for the trace mean range is the same range used for the total power calculation, the marker search range, and the wavelength sweep range.

The return value is in meters, unless the span is set to zero, in which case the return value is in seconds.

CALCulate[123456]:MEAN:RANGe:LOWer:FREQuency <numeric_value>[HZKHZMHZGHZTHZ]

Sets the lower X-axis limit for the trace mean range calculation. Setting this value when CALCulate:MEAN:RANGe:STATe is OFF will automatically turn CALCulate:MEAN:RANGe:STATe ON.

The range used for the trace mean range is the same range used for the total power calculation, the marker search range, and the wavelength sweep range. Changing the range with this command will change all four ranges. Default units for the parameters are Hertz.

Sending this command when the instrument is in a zero span will generate a “Settings conflict” error.

4-62