beautypg.com

Open a saved initiator capture project – Teledyne LeCroy Sierra SAS_SATA Protocol Analyzer STX API Reference Manual User Manual

Page 76

background image


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

Using Initiator/Host Emulator API Functions 76

theApp.m_pIGeneralService->HalAnalyzerStop ();


To upload and create the sample, first create an instance of SerialSCSIExtraction.
(Refer to ATAPISample -> ATAPISampleView.cpp -> OnTimer ().)

ISerialSCSIExtractionPtr

IExtraction;

IExtraction.CreateInstance (

__uuidof

(SerialSCSIExtraction));


Next, set some extraction features, such as Speed and Links. To set the analyzer speed, use

get_AnalyzerSpeed () of Capture Project, put_AnalyzerSpeed () of Extraction.

m_pICaptureProject->get_AnalyzerSpeed (nIndex,
&eAnalyzerSpeed);

IExtraction->put_AnalyzerSpeed (nIndex, eAnalyzerSpeed);


To set the Analyzer link enable status, use GetLinkIsEnable () of Capture project and

SetAnalyzerLinkEnable () of Extraction.

m_pICaptureProject->GetLinkIsEnable (nIndex);

IExtraction->SetAnalyzerLinkEnable (nIndex/2,

m_pICatureProject -> GetProjectType (),
abLinkIsEnable [0], abLinkIsEnable [1]);


After that, upload and create the sample, by calling the DumpAndExtract () function of the

Extraction object with the sample file path string as its only parameter.

IExtraction->DumpAndExtract (m_pICaptureProject->GetOutputFile
());


Function Prototypes and Descriptions:

(Refer to

Run an Analyzer Capture Project

,

Stop an Analyzer Capture Project

, and

Upload and

create sample file

for prototypes and descriptions of all the methods involved in Run, Stop, and

Create-Sample functionalities.)