Api examples, Test capture project, General – Teledyne LeCroy Sierra SAS_SATA Protocol Analyzer STX API Reference Manual User Manual
Page 959: Specification

Sierra SAS/SATA Protocol Suite, STX Software API Reference Manual
959
API Examples
Some examples for using SAS/SATA Protocol Suite, STX API are in the APIExample\VC folder of
the software. These examples have been implemented with Microsoft
®
Visual C++™
.
You can
open and run them with Microsoft Visual C++. Trainer module API test program is located in the
APIExamples\TrainerAPI folder.
NOTE: Before running API examples, ensure that the SAS/SATA Protocol Suite, STX software is
installed on your host machine and that you have run the SAS/SATA Protocol Suite, STX
software at least one time on your host machine.
NOTE: Update API examples for ability to compile under MSDN 2010.
Run Microsoft Visual C++ and open the dsw file of an API sample, for example,
SampleViewer.dsw, and select ReBuild All (from the Build menu). Press the Run button to run
the example. For more information about each API example, see the sections below.
Test Capture Project
You can capture and trigger.
General
This example is a simple capture project to set items in capture and trigger, set trigger position,
set sample file size, run it, and create a sample file.
This application requires attachment to a board. You must make sure that your board is
connected to your system by USB or TCP.
Specification
• In the first window, enter device ID of board (that is written on hardware case) in
hexadecimal format (for example, 000E85000197), interface (USB or TCP) and product
(SAS).
• Project is included below items:
o
Trigger Items: Lists all patterns that could be added in trig item.
o
Capture Items: Lists all patterns that could be added in capture item.
o
Memory setting: Defines trigger position in memory and partial memory size.
o
Create Sample: Shows path of created sample.
o
Analyzer Speed: Shows speed of all ports for a project.
o
Run and Stop button: Runs a project to get a sample or stops project at a time.
• If no pattern(s) are added in trig items, trig strategy is snapshot.
• If no pattern(s) are added in capture items, capture strategy is capturing everything.