SOURCEICE

Manage acquisition or copy of ICE packets into a Midas file/pipe.

SOURCEICE - Manage acquisition or copy of ICE packets into a Midas file/pipe

<input file>	Name of the ICEPacket input address/file/pipe
<output file>	Name of the output file/pipe/socket
<format>	Data Format
<rate>		Data Rate

This routine reads data from an ICE Packet source, which may be a file or
pipe (for testing) but is usually a Unicast or Multicast port address. 

The Unicast format is:
  udp:192.168.0.1:7777

The Multicast format is:
  udp:192.168.0.1:7777/224.1.2.3

Where the first address and port are of the host network card to receive from.
The second address is the Multicast address to join to.

The expected format and rate are used to create the output file.

The transfer length /TL=n is used for output file writes.  
It must be a multiple of the incoming ICE packet size.

The /PKTHDR=option switch defines what to do with the packet header in the output stream.
The default option STRIP, removes the ICE packet headers from the output stream.
Other options are ATTACH, DETACH, or COPY which can be used to peel|merge the packet 
headers to|from separate .pkt files. Note that non-file output resources do not support
detached packet header files.

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

 /REPLAY=0   Stop mode  - bit bucket for input packets, no output
 /REPLAY=1   Once mode  - process the next packet
 /REPLAY=2   Continuous - process packets continuously (default piped)

In NeXtMidas, the /REPLAY=values can be specified by the item number or name.

Switches:
  /PKTHDR=opt   Defines what to do with the packet header (default=STRIP)
  /POLL=sec	Seconds to pause polling the card for new data 
  /MAXOUT=n	Maximum number of samples in output file (file-to-file autostop)
  /SDDS         Use SDDS Packet header format instead of ICE Packet headers
  /CHECK        Test the packet sequences for any drops