beautypg.com

Initialize your api application, Initialize the application – Teledyne LeCroy Sierra SAS_SATA Protocol Analyzer STX API Reference Manual User Manual

Page 140

background image


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

Using Trainer 140

#import

"..\..\..\..\EXE\DBE.dll"

using

namespace

DBELib;

#import

"..\..\..\..\EXE\SASEngine.dll"

using

namespace

SASENGINELib;

#import

"..\\..\\..\\exe\\SASAutomation.tlb"

using

namespace

SasAutomationAPILib;

Add the SASAutomationSink class (SASAutomationSink.cpp + SASAutomationSink.h) from any

current API Example to your application

Initialize your API Application

To Initialize your Trainer API Application:

Set a valid path for the output file of your application

.

Declare required objects in the main class of your application

.

Create instances of the objects just declared in the main class of your application

.

Finalize the initialization by calling the InitializeSystem () function of SAS General
Service

.

Set a valid path for the output file of your application

Set the output file location to the \API folder of your installed SAS/SATA Protocol Suite or STX

Software, for example: C:\\Program Files\...\SAS_XX\API).
For reference, check the project settings page of any current API Example.