beautypg.com

2 _ianalyzerevents::onstatusreport, Parameters, Ianalyzerevents::onstatusreport – Teledyne LeCroy Automation API for Teledyne LeCroy PETracer_PETrainer User Manual

Page 141

background image

Teledyne LeCroy

Automation API for PETracer/PETrainer

136

11.1.2 _IAnalyzerEvents::OnStatusReport


HRESULT OnStatusReport (

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

Fired 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

Subsystem sending event has the following values:

RECORDING_PROGRESS_REPORT ( 1 )

recording subsystem

GENERATION_PROGRESS_REPORT ( 2 )

generation subsystem

state

Current analyzer state;

has the following values:

If the subsystem is RECORDING_PROGRESS_REPORT

:

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_PREPARE_UPLOADING

( 4 ) Analyzer is

preparing data for upload

ANALYZERSTATE_PREPARE_RECORDING

( 5 ) Analyzer is

preparing for recording

If the subsystem is GENERATION_PROGRESS_REPORT

:

ANALYZERSTATE_GEN_IDLE ( 400 )

Generator is idle

ANALYZERSTATE_GEN_DOWLOADING ( 401 )

Generator is

downloading object code
ANALYZERSTATE_GEN_GENERATING ( 402 )

Generator is

working
ANALYZERSTATE_GEN_PAUSED ( 403 )

Generator is

paused

percent_done

Shows the progress of currently performing operation
If subsystem is RECORDING_PROGRESS_REPORT

:

When analyzer state is ANALYZERSTATE_IDLE, this parameter

is not applicable.

When analyzer state is ANALYZERSTATE_WAITING_TRIGGER

or ANALYZERSTATE_RECORDING_TRIGGERED, this parameter
shows analyzer memory utilization

When Analyzer state is ANALYZERSTATE_UPLOADING_DATA,

this parameter shows the percent of data uploaded.

When Analyzer state is ANALYZERSTATE_SAVING_DATA,

this parameter shows the percent of data saved.