Hallo,
i have a L2063XA powersensor and want to mess a peak power. I can mess signal power in not pulsed mode, but for pulsed mode i get always an averaged result. Here is my C# code:
double GetPeakPowerValue()
{
double result;
try
{
_driver.System.Preset();
var peakChannel = (KtRFPowerMeterChannel)_driver.Channels.get_Item("A");
var peakMeasurement = _driver.Measurements2.get_Item2("2");
//set INIT:CONT ON
peakChannel.Trigger.ContinuousEnabled = true;
//Normalmode select
peakChannel.SensorMode = KtRFPowerMeterSensorModeEnum.KtRFPowerMeterSensorModeNormal;
//Averaging disable
peakChannel.Averaging.Enabled = false;
peakMeasurement.OffsetEnabled = false;
result = peakMeasurement.Read(5000);
int errorNum = -1;
string errorMsg = null;
_driver.Utility.ErrorQuery(ref errorNum, ref errorMsg);
if (errorNum != 0)
{
throw new InvalidOperationException("Invalid Operation on PowerSensor.");
}
}
catch
{
throw;
}
return result;
}
What must i do more?
This is an old question which may have been resolved. This information is to help anyone else that may run into an issue with programming the USB sensors.
Attached are the Users Guide and Programmers guide to help you with coding. After your correct coding, you still have issues, contact your nearest service center or contact the Keysight help desk at 1 800 829-4444, or click Contact Keysight at the bottom of this page.
Hope this helps,
Gary