2 ptracevar( ) : parser trace variable, Ptracevar( ) : parser trace variable, Ptracevar in – Teledyne LeCroy UWBTrainer Exerciser Script Language User Manual
Page 109

LeCroy Corporation
UWBTrainer Exerciser - Generation Script Language Reference Manual
101
10.20.2 PTraceVar( ) : Parser Trace Variable
Format
PTraceVar(
Parser Trace Variable outputs the values of the supplied comma-separated variables. Numeric
variables are output in decimal and hex format. Packet variables are output in byte streams (hex).
This primitive does not accept constants or data patterns, which will generate parse errors.
Note: Numeric variables are DWORDS.
Example
51:
frame
GenericData
52: {
53: DATA : *
54: }
55: GenericData $XYZ { DATA = {
00 11 00 11 00 11 00 11
} }
56: global_var =
7
57:
Main
58: {
59: local_var =
12
60: PTraceVar ( global_var, local_var, $XYZ )
61:
Send
$XYZ
#Send $XYZ with the following data for the instance.
62: {
63: Data = {
AA BB CC DD
}
64: }
65: PTraceVar ( $XYZ )
66:
# Modify the value of $XYZ.
67: $XYZ { DATA = {
EE FF 00 11
global_var local_var } }
68: local_var =
777777
69: PTraceVar ( $XYZ, local_var )
70:
Send
$XYZ
# Send $XYZ.
71: PTraceVar ( $XYZ )
72: }
Output Window:
- Parsing started: File: C:\Sample_PTraceVar.uwbg. Operation Starts at time 09:29:17 AM -
Parsing... c:\sample_ptracevar.uwbg
GLOBAL_VAR = 7 (hex: 0x7)
Å PTraceVar( global_var, … ) from line 60
LOCAL_VAR = 12 (hex: 0xC)
Å PTraceVar( …, local_var, … ) from line 60
$XYZ = {00 11 00 11 00 11 00 11} - 8 byte(s)
Å PTraceVar( …, $XYZ ) from line 60
$XYZ = {00 11 00 11 00 11 00 11} - 8 byte(s)
Å PTraceVar( $XYZ ) from line 67
$XYZ = {EE FF 00 11 07 0C} - 6 byte(s)
Å PTraceVar( $XYZ, … ) from line 69
LOCAL_VAR = 777777 (hex: 0xBDE31)
Å PTraceVar( …, local_var ) from line 69
$XYZ = {EE FF 00 11 07 0C} - 6 byte(s)
Å PTraceVar( $XYZ ) from line 71
Parsing is done... C:\Sample_PTraceVar.uwbg - 0 error(s)
C:\Sample_PTraceVar.uwbg - Generation Blocks : 1, Total number of instructions : 2
- Parsing Finished: File: C:\Sample_PTraceVar.uwbg. Operation ends at time 09:29:17 AM -