beautypg.com

5 command line interface, 1 forth – Guralp Systems CMG-CD24 User Manual

Page 53

background image

Operator's Guide

5 Command line interface

You can connect to the internal software of the CD24 over its output

serial port and communicate with it.

To enter command mode from Scream!, right-click on the digitiser's
icon and select Terminal... from the menu that pops up. A window
will open, and once the CD24 and computer are communicating

properly you will see the prompt

ok

If you prefer, you can use a terminal program of your own (such as
minicom on Linux, or one of the programs detailed in section 7.5 on

page 108) to connect to the CD24.

Whilst you are in terminal mode, data transfer will be interrupted; the
CD24 may use its Flash memory as a temporary store, depending on

how you have configured it. Some commands, such as SET-TAPS,
require a reboot to take effect.

Güralp Enhanced Acquisition Modules (CMG-EAM) also allow you to

send commands direct to the CD24 using the command-line tools
data-terminal and adc-command. For more information, please

see the manual for the EAM.

If you have problems connecting to the digitiser's console, you should
check that the serial port's options and baud rate are set correctly in

Scream! or your terminal program. As supplied, the CD24 expects
connections at 19200 baud, with 8 data bits, no parity bit and 1 stop

bit. No flow control is used.

5.1 FORTH

The CD24 uses a FORTH-like interpreter to implement its features. To

issue a command in FORTH, you must supply the arguments before
the command, for example:

0 19200 BAUD

In FORTH, anything you enter is termed a word. New words (case

insensitive) are placed on a stack. Some words are known to the
system, and may represent commands; if a command finds itself at the

top of the stack (e.g. because it is the last thing you typed), they will
execute, remove themselves from the stack, and then remove further

items from the stack to use as arguments.

March 2011

53