Teledyne-lecroy Automation API for Bluetooth Analyzers Uživatelský manuál Strana 85

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 110
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 84
79
Automation API for CATC Bluetooth Analyzers
CATC Ver. 1.40
2.9.2 _IAnalyzerEvents::OnStatusReport
Fired when there is a change in analyzer's state or there is a change in progress (percent_done) of
analyzer's state
Parameters
subsystem- subsystem sending event has the following values:
RECORDING_PROGRESS_REPORT ( 1 ) – recording subsystem
BTANALYZER_SYNC ( 11 )- synchronization subsystem
state- current analyzer state; has the following values:
if 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
if subsystem is BTANALYZER_SYNC:
BT_ASR_SYNC_STATE_UNSYNCED_INQUIRING (-1 ) – unsynched or
inquiring
BT_ASR_SYNC_STATE_SYNCING ( 0 ) – synching
BT_ASR_SYNC_STATE_SYNCED ( 1 ) – synched
percent_done- shows the progress of currently performing operation,
( valid only if subsystem is RECORDING_PROGRESS_REPORT ):
when analyzer state is ANALYZERSTATE_IDLE this parameter is not appli-
cable
when analyzer state is ANALYZERSTATE_WAITING_TRIGGER or
ANALYZERSTATE_RECORDING_TRIGGERED
this parameter shows ana-
lyzer 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
Return values
Remarks
Make sure the event handlers have
__stdcall calling convention.
Example
VBScript:
<OBJECT
ID = Analyzer
CLASSID = "clsid:0B179BB3-DC61-11d4-9B71-000102566088" >
</OBJECT>
<P ALIGN=LEFT ID=StatusText></P>
HRESULT OnStatusReport (
[in] short subsystem,
[in] short state,
[in] long percent_done );
Zobrazit stránku 84
1 2 ... 80 81 82 83 84 85 86 87 88 89 90 ... 109 110

Komentáře k této Příručce

Žádné komentáře