![Rohde & Schwarz CMW500 Series Скачать руководство пользователя страница 180](http://html1.mh-extra.com/html/rohde-and-schwarz/cmw500-series/cmw500-series_user-manual_1477718180.webp)
Remote Control
R&S
®
CMW500
180
User Manual 1173.9463.02 ─ 02
Meta Character
Meaning
?
Matches the preceding element zero or one time. Example: 'M[0-9][0-9]?' matches 'M1',
'M25', 'M0', 'M00', ...
+
Matches the preceding element one or more times. Example: 'TR[AB]+' matches 'TRA',
'TRB', 'TRABBBABA', ...
*
Matches the preceding element zero or more times. Example: 'A*B' matches 'B', 'AB',
'AAAAAAB', ...
()
Groupes the content for other operators. Example: 'A(BCD)?E' matches 'AE' and
'ABCDE'.
\
Interpret the next character literally, not as meta character. Example: '[A\-C]' matches
'A', '-' and 'C', while '[A-C]' matches 'A', 'B' and 'C'.
|
Alternation operator, matching the expression before or after the operator. Example:
'NOT|R' matches 'NOT' and 'NOR'.
!
Negation operator. The expression following the ! does not match. Example: '1!01'
matches '111', '121' etc. but not '101'.
Additionally character sets can be represented by abbreviations indicated in the following
table.
Abbreviation
Matches
\a
Any alpanumeric character ([a-zA-Z0-9])
\b
White space (blank)
\c
Any alphabetic character ([a-zA-Z])
\d
Any decimal digit ([0-9])
\h
Any hexadecimal digit ([a-fA-F0-9])
\w
A simple word ([a-zA-Z]+)
\z
An integer ([0-9]+)
6.7 Command Macros
A macro is a sequence of remote commands which can be referenced in a remote control
program. Macros are kept in the R&S CMW500's RAM while a remote connection is
active; therefore they are a means of saving transfer time and speed up the measure-
ment. The gain is most noticeable if the macros contain many commands and if they are
executed repeatedly. Macros are particularly suited for the configuration sections of a
program, e.g. in order to combine a group of settings which is repeated in a loop.
Macros must be defined at the beginning of a remote script. In general, they remain valid
until the active remote control connection is closed. Macros are not directly transferable
from one remote channel to another. It is possible though to save macros to files in order
to re-use them in other remote connections or sessions. It is also possible to use different
macros with the same name for different connections.
Command Macros