beautypg.com

D.3.2.1 examples of pattern matching – Triton Isis User Manual

Page 56

background image

June 2004 Isis® Sonar User's Manual, Volume 2

46

pressure or depth can be found at:
http://www.npl.co.uk/npl/acoustics/techguides/
soundseawater/content.html#PD

{c}

Conductivity in Siemens/meter

{tv}

Turbidity. This is the same as the | (“pipe” symbol) token.

{t}

Ocean tide (only if manual tide isn't set)

{v1}

Voltage value 1 (displayed in Window→Status and Control
→Towfish Status in +95 field). Voltage values are displayed but
not stored.

{v2}

Voltage value 2 (displayed in -95 field)

{v3}

Voltage value 3 (displayed in +15 field)

{v4}

Voltage value 4 (displayed in -15 field)

{v5}

Voltage value 5 (displayed in +5 field)

{v}

Velocity of sound in m/s (one-way travel). Isis defaults to 1500
m/s.

{w}

Water temperature (degrees C)

{y}

Yaw in degrees

|

(“pipe” symbol) Turbidity. This is the same as the {tv} token.

D.3.2.1 Examples of Pattern Matching

Given the hypothetical template string:

ap{pattern=compass}h

and the hypothetical input string:

altitude 38.3, pressure 93.535, diag code 9a8dc8339,

compass 173.44

Isis parses the aforementioned sample string by applying the
{pattern=input_string} template as follows:

1. Finds the first numeric character. In this case, it’s 3.

2. Assigns 38.3 to the a token, or auxiliary altitude.

Appendix D: Serial Interfaces