beautypg.com

Stop an analyzer capture project – Teledyne LeCroy Sierra SAS_SATA Protocol Analyzer STX API Reference Manual User Manual

Page 51

background image


Sierra SAS/SATA Protocol Suite, STX Software API Reference Manual

Using Analyzer API 51

CWnd::SetTimer ()
Prototype

UINT_PTR SetTimer (UINT_PTR nIDEvent, UINT nElapse,

Void (*) (HWND, UINT, UINT_PTR, DWORD) lpfnTimer );

Usage

SetTimer (, , NULL);

Inputs

UINT nIDEvent: Event index

UINT nElapse: Elapse/sleep time for Timer check-up

(Gap time between each interval)

Return Value None
Description Call the SetTimer () method to set a timer to check the running status of the

hardware at regular intervals based on the elapse time specified.

::OnTimer ()
Prototype

void OnTimer (UINT nIDEvent);

Usage

Automatic method call with the use of SetTimer () function. No need to call

explicitly.

Inputs

UINT nIDEvent: Event Index

Return Value None
Description Declare and implement this routine to handle the hardware running status

conditions.

Stop an Analyzer Capture Project

To stop running hardware, kill the timer first by calling the KillTimer () function with the same

event index, and then call the HalAnalyzerStop () function of the SAS General Service Object to

finally bring the hardware to a halt.

(Refer to TestCaptureProject -> TestCaptureProjectView.cpp ->
OnTimer

().)


KillTimer (IDT_RUN);

theApp.m_pIGeneralService->HalAnalyzerStop ();