beautypg.com

2 _ianalyzerevents::onstatusreport, Ianalyzerevents::onstatusreport – Teledyne LeCroy UWBTracer Automation Manual User Manual

Page 79

background image

LeCroy

UWBTracer Automation API Reference Manual

Manual Version 3.02

75

7.1.2 _IAnalyzerEvents::OnStatusReport


HRESULT OnStatusReport (

[in] short subsystem,
[in] short state,
[in] long percent_done );

Fires when there is a change in the Analyzer's state or there is a change in progress (percent_done) of
the Analyzer's state.

Parameters

subsystem

Not used

state

Current analyzer state; EanalyzerState enumerator has the following
values:

ANALYZERSTATE_IDLE (-1 )

-

idle

ANALYZERSTATE_WAITING_TRIGGER ( 0 )

recording in progress,

analyzer is waiting for trigger

ANALYZERSTATE_RECORDING_TRIGGERED ( 1 )

recording in progress,

analyzer triggered

ANALYZERSTATE_UPLOADING_DATA ( 2 )

uploading in progress

ANALYZERSTATE_SAVING_DATA ( 3 )

saving data in progress

ANALYZERSTATE_GEN_IDLE (400) -

generation idle

ANALYZERSTATE_GEN_GENERATING (402) -

generating

ANALYZERSTATE_GEN_PAUSED (403) -

paused

percent_done

Shows the progress of currently performing operation.

When the analyzer state is

ANALYZERSTATE_IDLE,

ANALYZERSTATE_GEN_IDLE

, or ANALYZERSTATE_GEN_PAUSED,

this

parameter is not applicable.

When the analyzer state is ANALYZERSTATE_WAITING_TRIGGER or
ANALYZERSTATE_RECORDING_TRIGGERED

, this parameter shows analyzer

memory utilization.

When the analyzer state is ANALYZERSTATE_GEN_GENERATING, this
parameter shows completion status of the generation script.

When the analyzer state is

ANALYZERSTATE_UPLOADING_DATA

,

this

parameter shows the percent of data uploaded.

When the analyzer state is

ANALYZERSTATE_SAVING_DATA

,

this parameter

shows the percent of data saved.

Return values


Remarks

Make sure the event handlers have the

__stdcall

calling convention.