2 error checking, 3 log, 4 statements – Teledyne LeCroy Sierra M6-2 SAS_SATA Protocol Analyzer User Manual User Manual
Page 393: Ifisstopped

Sierra M6‐2 SAS/SATA Protocol Analyzer User Manual
391
Scenario Batch Files
Teledyne LeCroy
Note:
Before you run a Scenario Batch file that requests scenarios, you must download the scenarios
to the Scenarios box.
4.15.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.15.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.15.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)
}