
73M1866B/73M1966B FXOAPI User Guide UG_1x66B_046
36 Rev. 2.1
2.13 Current/Voltage Measurement APIs
2.13.1 M1x66_StartMeasureCurrent
Description
Start the line current measurement process. This API starts measuring the line current of the specified
channel at a sampling interval time of “sampleTime” with averaging count of “averageSampleCount”.
Prototype
int M1x66_StartMeasureCurrent (
M1x66_HANDLE channel,
unsigned int sampleTime,
unsigned int averageSampleCount );
Parameters
Data Type Name Description
Channel handle obtained from FXO open channel.
Time interval between two consecutive samples.
Sample count for average calculation.
Return Values
Data Type Description
M1x66_RET
M1x66_SUCCESS – Successfully started.
M1x66_FAILED – Failure.
2.13.2 M1x66_StartMeasureVoltage
Description
Start the line voltage measurement process.
Prototype
int M1x66_StartMeasureVoltage (
M1x66_HANDLE channel,
unsigned int sampleTime,
unsigned int averageSampleCount );
Parameters
Data Type Name Description
Channel handle obtained from FXO open channel.
Time interval between two consecutive samples.
Sample count for average calculation.
Return Values
Data Type Description
M1x66_RET
M1x66_SUCCESS – Successfully started.
M1x66_FAILED – Failure.
Comentarios a estos manuales