Metrohm tiamo 1.1 Manual User Manual

Page 601

Advertising
background image

Commands

573

Comparison

. If this answer is not received within the

Timeout

defined in the

command the command is cancelled.

Poll

The character string defined in

Command

(optional) will be sent to the de-

vice. The answer of the device is expected within the

Timeout

defined for

the device settings and evaluated. This action will be repeated until the an-
swer of the device is identical to the regular expression in

Comparison

. If this

answer is not received within the

Timeout

defined in the command the

command is cancelled.

Command

250 characters, [ 'empty' ]

Character string to be sent to the device.

Note

All ASCII characters can be entered with its two-digit hex code after backslash
(e.g.

\1B

=

Escape

).

Variable

Method variables

Selection of an existing method variable. The received data for the

Actions

Read

,

Wait for

and

Poll

will be saved in this method variable which must be

defined in the

START

command and is not allowed to be assigned to a sys-

tem variable.

Note

It is possible to create several indexed variables (e.g.

Input1

,

Input2

, …) to save

the character substrings produced by regular expressions into the different vari-
ables.

Example

Variable

=

MV.Input1

Comparison

=

(\d+\.\d+),(\d+\.\d+)

Two measured values separated by a semicolon are filtered out of the received
character string and saved in the two variables

MV.Input1

and

MV.Input2

.

Comparison

100 characters, [ 'empty' ]

Entry of a character string which should be compared to the data received
by one of the

Actions

Read

,

Wait for a

nd

Poll

. In this field so-called Regular

Expressions can be entered. You can use these exactly defined search
patterns to interpret the received character strings and save contents from
this strings in a method variable. Regular Expressions are widely used in

computer science (operating systems UNIX or LINUX, s script languages
PERL, etc.) and are standardized to a great extent. In tiamo Extended
Regular Expressions
according to Java 2 Platform SE v1.4.2 can be
use (details see e.g. http://en.wikipedia.org/wiki/Regular_expression).

Advertising