LeCroy Corporation
Trainer Script Enhancements
412
Sierra M6
‐
2 SAS/SATA Protocol Analyzer User Manual
Timer
Trainer script syntax allows using some timers. You can start a timer anywhere. The timer
current value is loadable on variable to be used in expressions and conditions on this
expression. There are four timers, named A, B, C, and D.
Starting
timer
(setting timer value to zero) syntax is:
CLEAR_TIMER_A
CLEAR_TIMER_B
CLEAR_TIMER_C
CLEAR_TIMER_D
Loading
timer
current
value
in
variables:
@varName1 =TIMER_A
@varName1 =TIMER_B
@varName1 =TIMER_C
@varName1 =TIMER_D
PATTERN Counter
Trainer script syntax allows you to use counters on a number of defined events in
generation settings.
Syntax
for
loading
counters
in
variables
is:
@varName1 = COUNT_REC_RESOURCE_OUTPUT_A
@varName1 = COUNT_REC_RESOURCE_OUTPUT_B
@varName1 = COUNT_REC_RESOURCE_OUTPUT_C
@varName1 = COUNT_REC_RESOURCE_OUTPUT_D
@varName1 = COUNT_REC_RESOURCE_OUTPUT_E
@varName1 = COUNT_REC_RESOURCE_OUTPUT_F
Syntax
for
clearing
(resetting)
counters
is:
CLEAR_REC_RESOURCE_OUTPUT_A
CLEAR_REC_RESOURCE_OUTPUT_B
CLEAR_REC_RESOURCE_OUTPUT_C
CLEAR_REC_RESOURCE_OUTPUT_D
CLEAR_REC_RESOURCE_OUTPUT_E
CLEAR_REC_RESOURCE_OUTPUT_F
Procedure Definition
Procedures allow creating simple syntaxes for complex reusable parts in scripts. You can
write such code once as a procedure and use everywhere required.
Procedure
definition
syntax
is:
procedure
procedureName
{
...
}
Calling
procedure
syntax
is:
Call
procedureName