User`s guide
4-94 Agilent E6432A Microwave Synthesizer User’s Guide
If an invalid start or stop frequency for the external leveling loop
configuration is passed to the function, the
ERR_ARG_OUT_OF_RANGE error flag is returned. This flag is also
returned if the functions are called with a detector point identifier out
of the valid range.
If the calibration functions are not called in the proper order, the
ERR_INVALID_EXT_DET_CAL_ORDER error is returned. The proper
order is defined by the loop indicator parameter that is sent to the
routine and used to configure the system for calibration, and the other
parameter is used to enter the power meter reading.
The following example code demonstrates the external detector
linearization calibration functions:
ViReal64 startDetFreqRangeHz, stopDetFreqRangeHz;
ViInt32 numDetCalPoints;
ViReal64 powerMeterReading;
HPE6432_GetNumExtDetCalPoints(
startDetFreqRangeHz,
stopDetFreqRangeHz,
&numDetCalPoints
);
for ( int loop=1; loop <= numDetCalPoints; loop++ ) {
HPE6432_SetupCalExtDetPoint(loop);
/* The customer supplies the ReadPowerMeter() function. */
ReadPowerMeter(&powerMeterReading);
HPE6432_EnterCalExtDetPowerMeterReading(
loop, powerMeterReading)
Parameter List
instrumentHandle
Variable Type ViSession
This is the ViSession handle that is obtained from the Initialize
function. The instrumentHandle identifies a particular instrument
session.