CalPwrMeterSetupMeasurement

Purpose

Sets the power meter measurement settings.

Syntax

CalPwrMeterSetupMeasurement (nChannel, dFrequency, enPwrMeterMeasureType, lAverageCount, plStatus)

Parameters

Name
Type
Comments
nChannel
SHORT
Select channel (0-based).
dFrequency
DOUBLE
Expected frequency of the measurement.
enPwrMeterMeasureType
LONG
The Row coordinate of the relay in the matrix to close:
0.      aPwrMeterMeasureAuto – Set Measure to Auto.
1.      aPwrMeterMeasureAverage – Set Measure to Average.
2.    aPwrMeterMeasureImmediate – Set Measure to Immediate.
lAverageCount
LONG
Specify the average count for repetitive measurement modes.
In Average mode, this specifies the number of measurements to be averaged before the measurement is complete.
plStatus
PLONG
Returned status: 0 on success, negative number on failure.

Comments

This function sets a channel’s measurement mode.

Example

The following example sets channel 1’s measurement settings with average count of 256:

 

LONG   lStatus;

 

CalPwrMeterSetupMeasurement (1, aPwrMeterMeasureAverage, 256, &lStatus);

 

See Also

CalPwrMeterGetInfo, CalPwrMeterMeasure, CalPwrMeterReset, CalPwrMeterGetError