Open a saved initiator capture project, Modify an existing initiator capture project – Teledyne LeCroy Sierra SAS_SATA Protocol Analyzer STX API Reference Manual User Manual
Page 77
Sierra SAS/SATA Protocol Suite, STX Software API Reference Manual
Using Initiator/Host Emulator API Functions 77
Open a Saved Initiator Capture Project
To open a saved capture project, call the Open () function of the capture project object with File
path and Error code as IN and OUT parameters, respectively.
(Refer to ATAPISample -> ATAPISampleView.cpp -> OnFileOpen ().)
m_pICaptureProject->Open (bstrFileName, NULL, FALSE);
CSerialSCSICaptureProject::Open ()
Prototype
long Open (BSTR bstrFileName, IDataBlocks *pIDB, long bDoneConvertIfNeeded);
Usage
FALSE);
Inputs
BSTR bstrFileName: Path of the project file
IDataBlocks *pIDB: Pointer of DataBlocks that must be correct in
Analyzer/ Exerciser Project
Long bDoneConvertIfNeeded: If saved project is in X1, X2 or X4, and you want to
open in another type, sometimes you must delete some pattern or direction of a
pattern. If bDoneConvertIfNeeded is TRUE, this item will be deleted. Otherwise,
an error code is returned by the Open function.
Return Value If this method succeeds, the return value equals CEI_OK.
Otherwise, the return value equals to the status error code.
Description Call the Open () method to open a saved analyzer project.