SOURCEFILE

From ICE Enterprises
Jump to navigation Jump to search

Interactively input data from a FILE to a Midas file/pipe

<IN>        - Name of the input file
<OUT>       - Name of the output file/pipe
<START>     - Start offset into file
<DURATION>  - Length of buffer to play
<REDUCTION> - Thinning or Blocking factor
<ADDR>      - NOT IMPLEMENTED - Index or Abscissa indexing for <START> and <DURATION>
<SLIP>      - Slippage in data
<REFORMAT>  - NOT IMPLEMENTED - Optional (sometimes necessary for Blocking mode)

Keyword Only Parameters:
[STOP] - Element in file at which to stop

This routine is designed for interactive use in a piped macro and performs
the basic functions of a SAM output patch panel (only slower).  The buffer of
interest can be offset and lengthened/shortened interactively.  The device
can play in File mode, Oneshot, or Continuous (circular).  The routine comes
up by default in File mode and starts processing data as soon as the pipes
are up. 

The /REPLAY controls the startup mode of the routine as follows:

 /REPLAY=ONESHOT  - plays buffer once and quits (default)
 /REPLAY=WAITTOP  - waits at top of buffer
 /REPLAY=ONETOP   - plays buffer once and waits at the top again
 /REPLAY=CONTINUOUS  - plays buffer continuously

Messages:
  OPENFILE  - Open a new file
  CLOSEFILE - Close given file

Examples:

Switches:
  /REPLAY  - ONESHOT,WAITTOP,ONETOP,CONTINUOUS [DEF=ONESHOT]
  /TL      - The number of elements to be read each process loop [DEF=4096] 
  /VERBOSE - Turn on informational output