beautypg.com

9 macros – Guralp Systems Shout User Manual

Page 12

background image

Fetching ShoutRecordDB.pdb... OK
[root@unix cgcf]#

Once you have the file use the palm2gcf utility to convert the PDB file to the standard GCF block

format. ANSI C Source code for palm2gcf is available and binaries for the following platforms are
available: Alpha OSF/1, ix86 Linux, Alpha Linux, Win32/Windows 95/98/NT/Me/2000/XP, SunOS
4, Solaris, and various versions of IRIX.

C:\tmp> palm2gcf C:\Palm\User\Backup\ShoutRecordDB.pdb out.gcf
File c:/Palm/User/Backup/ShoutRecordDB.PDB contains 303 blocks total 128552 bytes
Block

1: WO1524 S109N2 100 sps 200 samples time 01:48:35 21/Oct/2001

....
Block

302: WO1524 S109M7

4 sps 200 samples time 02:11:32 21/Oct/2001

All blocks processed
GCF stream is in out.gcf
C:\tmp>

The GCF file produced can now be viewed or replayed in other programs such as ‘Scream’.

3.9

Macros

It is convenient to group a set of commands together that put an instrument into a known state. Shout
supports such macros. Shout looks for such macros in two places: in a pre-installed database of macros
called ‘ShoutMSDB’ and in the memos of the standard Palm Memo Pad application. The format of
the macros is compatible with the Windows Multiset program. The first line of the macro should be
‘ok-1’, the next line should start with a ‘\’ followed by text describing the macro. The subsequent lines
then contain commands that are sent to the device to be configured. Place exactly one macro in each
memo and remove any blank lines before the ok-1. An example macro is shown below:

ok-1
\ DM24/3 default configuration
1 sensor-type
2 sync-src ! sync-src backup!
2 hr-cycle
200 100 20 4 samples/sec
set-config
0007,0000
4700
0 0 triggered
1 0 triggered
2 0 triggered
3 0 triggered
3 1 bandpass
255 triggers
1 1 1 STA
10 10 10 LTA
2 2 2 RATIOS
10 pre-trig 20 post-trig
0 9600 baud
7 stopbits

Multiset files can either be entered by hand into the Palm Pilot, or pasted into the Memo pad application
of your Palm Desktop software and thence downloaded to the Palm Pilot. If you use the windows Palm
Desktop you can establish a permanent link between files on your disk and entries in the Memo Pad
application.

12