2 error checking, 3 log, 4 statements – Teledyne LeCroy Sierra M124 User Manual User Manual
Page 278: Ifisstopped

Teledyne LeCroy
Scenario Batch Files
276
Sierra M124 SAS/SATA Protocol Analyzer User Manual
4.12.2
Error Checking
The Script Workspace shows errors by red color. The program reports all errors in the log
file.
If you use a script from other InFusion hardware, it may cause an error, for example,
mismatch in hardware Mac addresses, or scenarios that are not already in current
hardware.
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.