next up previous contents
Next: References Up: Software Previous: ast

ast_data

NAME

ast_data - generate an ASCII-file with eventdata for the AST to be downloaded with program ast.

SYNOPSIS

ast_data [ -n ] [ -s ] [ -p ]

DESCRIPTION

Generates eventdata for the AST in ASCII format; every event is delimited by a '@'; the '@' will be converted by the ast tool to the control token, required to mark the event endings; comments are preceeded by a '!'. Eventdata can be redirected to a file for subsequent use by the ast tool.

The eventdata is followed by a summary of the type of data generated; this information is always printed on the standard error output.

By default 1 event is generated with size 256 and an incrementing data pattern. Example: ast_data -n3 -s16
generates the following output on the screen:

! ==> Event #0
    0    1    2    3    4    5    6    7    8    9
   10   11   12   13   14    @
! ==> Event #1
    0    1    2    3    4    5    6    7    8    9
   10   11   12   13   14    @
! ==> Event #2
    0    1    2    3    4    5    6    7    8    9
   10   11   12   13   14    @

==> AST data generated:
  #evts   : 3
  evt size: 16
  tot size: 48
  pattern : incrementing

Example: ast_data -n2 -s20 -pw > tmp
generates the following output on the screen:

==> AST data generated:
  #evts   : 2
  evt size: 20
  tot size: 40
  pattern : walking bit
and a file named tmp, suitable for reading by the ast tool, containing the event data:
! ==> Event #0
    1    2    4    8   16   32   64  128    1    2
    4    8   16   32   64  128    1    2    4    @
! ==> Event #1
    1    2    4    8   16   32   64  128    1    2
    4    8   16   32   64  128    1    2    4    @

OPTIONS

The following options are available:
 -a24aaaa 	blablablablablablablablablablablabla

-n generate events (default: 1)

-s tex2html_wrap812

-p generate data pattern with being one of the following:

tex2html_wrap814 : incrementing value (0-255) (this is the default pattern)

tex2html_wrap816 : walking bit (0x01, 0x02, 0x04... 0x80, 0x01, etc.)

tex2html_wrap818 : 0xaa-0x55 pattern

FILES

On mic.nikhef.nl files can be found in directory /micro/n48/aorta/ast/make_data:
ast_data.c
the C source code.



Henk Boterenbrood
Thu Jun 20 12:54:18 MET DST 1996