beautypg.com

3 log, 4 statements, Ifisstopped – Teledyne LeCroy Sierra M122 User Manual User Manual

Page 275

background image

    

Sierra M122 SAS/SATA Protocol Analyzer User Manual

273

Scenario Batch Files

Teledyne  LeCroy

4.12.3

Log

Results of executable batch commands are saved automatically into a log file with user‐
specified name. The status of executable commands is shown in log area.

4.12.4

Statements

Statements can be conditional statements or non‐conditional statements.

IfIsStopped

Shows whether a scenario is already stopped or not.

Format

IfIsStopped (Serial Number, Target Port)

Parameters

Serial Number: Serial number of hardware

Target Port: Port number in port map

Example

IfIsStopped(ox01267, 1) Then

{

Beep (750, 300)

Run (ox01267," Detect AddressFrame Open", 5)

}

The value of second parameter is 5 and shows check stopping mode of combination of 
port number 1 and port number 3. 

After filling parameters from the Command Parameters Dialog, the program makes the IF‐
ELSE structure in the Script workspace. The ELSE statement is optional. To add an ELSE 
body, click Click here to add else body.