Tektronix TVS600 & TVS600A Series Computer Accessories User Manual


 
TVS600 & TVS600A Command Reference
A–1
Appendix A: Expression Syntax
The syntax for CALCulate expressions is defined in the following BNF
description (for meanings of BNF forms, see Table 1–2 BNF Symbols and
Meanings on page 1–7). Note that TVS600 models cannot use elements that refer
to TVS600A features only.
<statement> ::= expr“;”
<statement><statement>
/* epsilon */
<expr> ::= <statement><expr>
<factor>
<expr><binop><expr>
<expr><logop><expr>
<expr><relop><expr>
<lval><asgnop><expr>
<lval>“#=”<accumop>“(”<arg_list>“)”
<lval>“:=”<expr>
<expr>“..”<expr>
<expr>{“<?”“|”“>?”}<expr>
!<expr>
“{”<statement>“}”
/* epsilon */
factor ::= [–<number>|{+}<number>]{<unit>}
AATS
[CHAN1|CHAN2|CHAN3|CHAN4]{“[”<nrx>“]”}
<meas>
<parameter>
<ref>
“(”<expr>“)”
<lval> ::= <ref>|<parameter>
<meas> ::= <func>“(”<arg_list>“)”
<meas_func>“(”<m_arg_list>“)”
<arg_list> ::= <expr>{[, <expr>]...}
<m_arg_list> ::= <wmp_expr> {[, wmp_expr>]...}
<wmp_expr> ::= {WMP1:|WMP2:|WMP3:|WMP4:} <expr>
<parameter> ::= %1|%2|%3|%4|%5|%6|%7|%8|%9
<ref> ::= REF1|REF2|REF3|REF4|REF5|REF6|REF7|REF8|REF9|REF10|REF
“[”<nrx>“]”
<binop> ::= +|–|*|/
<asgnop> ::= +=|–=|*=|/=||=|&=|^=
<logop> ::= &|||^|AND|OR
<relop> ::= ==|!=|>|>=|<|<=|><|<>|EQ|NE|GT|GE|LT|LE|INSide|OUTside
<accumop> ::= AVERage|ENVelope|VECTor|STATistics
Expression Syntax